Big Moves On Mondays (Amibroker And Tradestation code)
The strategy in plain English:
- Calculate a 25 day average of (h-l).
- Today is Monday.
- Close today must be at least lower than (from Friday) 0.25 of average in number 1.
- (c-l)/(h-l), the IBS, must be lower than 0.3.
- If conditions in 2, 3, and 4 are met, go long at the close.
- Exit on Fridays close.
Click here to see the original article.
Amibroker code:
ibs=(C-L)/(H-L) ;
range=MA((H-L),25);
Buy= DayOfWeek()==1 AND (Ref(C,-1) – Close) >range*0.25 AND ibs<0.3;
buyPrice=Close;
Sell= DayOfWeek()==5;
sellPrice=Close ;
Tradestation code:
If close < close[1] – 0.25*average(range,25)
and dayofweek(date)=1
and IFF((H-L)<>0,((C-L))/(H-L),1)< 0.3
then buy this bar at close;
If dayofweek(date)=5 then sell this bar at close;
Disclosure: We are not financial advisors. Please do your own due diligence and investment research or consult a financial professional. All articles are our opinions – they are not suggestions to buy or sell any securities.
