I use same afl to run separately tickers(SPY, TLT, QQQ).
I want to invest all InitialEquity in the beginning for one ticker.
Some tickers can invest all, but some just invest a part of InitialEquity.
I don’t know why? Is there anything wrong in my afl?
Could I attach the backtest result?
The afl attached below:
SetOption("InitialEquity", 100000);
// Position Quantity: max number of positions
PosQty = 1;//Param( "Number of Positions", 4, 1, 4, 1) ;
SetPositionSize( 100 / PosQty, spsPercentOfEquity );
SetOption("MaxOpenPositions", PosQty );
SetOption("CommissionMode", 3); //count hand cost by how much future
SetOption("CommissionAmount", 0.01); //one future hand cost 50 dollars
// the last one allows slightly shrinking pos size to accommodate for commissions.
// only required if you turned it off in the settings
SetOption("AllowPositionShrinking", True );
Buy = 1; // buy and hold
Sell = 0;
Thank you.