Login Page - Create Account

Support Board


Date/Time: Sun, 08 Sep 2024 01:35:24 +0000



[Programming Help] - Changing the order size dynamicaly in ACSIL automated trading

View Count: 628

[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?

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account