- Joined
- 6 October 2011
- Posts
- 107
- Reactions
- 126
I have seen the following article http://systemtradersuccess.com/rotational-trading-a-simple-but-powerful-concept/
I am using a trial of the Amibroker charting software to see whether I can support my trading and have been investigating some trading systems to see how they work - objective to do some paper trading as well as backtesting.
The Rotaional Trading system in the above is developed by Frank Hassler. He has posted the following code
However when I run this afl I get stuck at
I have tried to google to find code for "cbt_midlevel.afl".
Any help will be appreciated.
I am using a trial of the Amibroker charting software to see whether I can support my trading and have been investigating some trading systems to see how they work - objective to do some paper trading as well as backtesting.
The Rotaional Trading system in the above is developed by Frank Hassler. He has posted the following code
Code:
SetCustomBacktestProc(“formulas\\include\\cbt_midlevel.afl”,True);
SetOption(“CommissionAmount”,0.0);
SetOption(“MaxOpenshort”,0);
SetOption(“MaxOpenLong”,5);
SetOption(“MaxOpenPositions”,5);
SetPositionSize( 20, spsPercentOfEquity);
SetTradeDelays(0,0,0,0);
SetBacktestMode(backtestRotational);
EnableRotationalTrading() ;
idx = Foreign(“QQQQ”,”Close”);
score = TSI();
Score = IIf(idx>MA(idx,200) OR idx>MA(idx,30),score,0);
PositionScore = IIf(Year()>=2001 AND DayOfWeek()==2,score,scoreNoRotate);
However when I run this afl I get stuck at
Code:
SetCustomBacktestProc(“formulas\\include\\cbt_midlevel.afl”,True);
I have tried to google to find code for "cbt_midlevel.afl".
Any help will be appreciated.