Hello,

according to the documentation for SetPositionSize( size, method ) ,
size cannot be greater than 1000 when express as a percetage of equity.
This means that account margins less than 10% are not fully used, and
position can never be greater than 10 times the equity.
Is there a way to get around this?
I tried to get the previous bar equity using foreign and use
method=spsshare with shares=equity/price*Leverage but it doesn t work.
I can customize backtesting and change signal.size but I would like to
know a simpler solution for fast coding.

Thanks

Ly

Reply via email to