Support Board
Date/Time: Sat, 11 Jan 2025 22:17:01 +0000
Post From: Changing the order size dynamicaly in ACSIL automated trading
[2017-01-09 17:01:30] |
Guilherme - Posts: 66 |
I'm trying to incremente the order size every time I get a winning trade in a row, and move it back to 1 when I get a losing trade. I'm having a hard time trying to code it. I thought about geting the last trade entry with sc.GetTradeListEntry and check the ClosedProfitLoss. But there is times when the trade is not already closed. And if it is closed and I incremente the order size, it would incremente multiple times, since the function is called multiple times. Am I in the right path to solve it? Any hint?
|