Dear all,
To prevent profit is reinvested in next trades, I use the following instructions:
SetOption("InitialEquity", 50000);
SetOption("MaxOpenPositions", 10);
PositionSize = 5000;
in this way not more than the starting 50000$ will be used.
But if multitrade is active:
SetBacktestMode( backtestRegularRawMulti );
more than 10 trades can be started because more trades for each position (symbol) are allowed.
How can I limit equity invested to the starting amount?
thank you
Cippo
To prevent profit is reinvested in next trades, I use the following instructions:
SetOption("InitialEquity", 50000);
SetOption("MaxOpenPositions", 10);
PositionSize = 5000;
in this way not more than the starting 50000$ will be used.
But if multitrade is active:
SetBacktestMode( backtestRegularRawMulti );
more than 10 trades can be started because more trades for each position (symbol) are allowed.
How can I limit equity invested to the starting amount?
thank you
Cippo
Last edited: