I want to use SetBacktestMode( backtestRotational ) for my realtime 1 minute trading.
But I don’t know how to do that in amibroker.
I only know that I should select “wait for backfill”.
Do it wait all symbols for backfill when I select “wait for backfill”?
If I use the code below, how to modify the code for realtime trading?
Should I place the ibc.PlaceOrder(“MSFT”, “BUY”, 100, “MKT”, 0, 0, “DAY”, False ); in the end of code?
Thank you very much.
SetOption("InitialEquity", 100000);
SetOption("MaxOpenPositions",5);
SetOption("CommissionMode", 3); //count hand cost by how much future
SetOption("CommissionAmount", 0.005); //one future hand cost 50 dollars
SetBacktestMode( backtestRotational );
SetOption("AllowPositionShrinking", True );
//The number of issues to hold at a time
NumberHeld=5;//Optimize("NumberHeld",1,1,10,2);
//Allocate funds equally among all issues
PositionSize = -100/(NumberHeld);
SetOption("WorstRankHeld",5);
LookBack =76;//Optimize("LookBack ",76,10,200,2);
Score = ROC(C,LookBack);
PositionScore = Score;