The Friday Seasonality in USO (oil) (Amibroker And Tradestation Code)
The strategy in plain English:
Buy on the close of a Thursday if USO falls at least 0.75 times the 25 day average of the H-L (high minus low) and exit on Friday’s close:
- Calculate the 25-day average range of the high minus the low (H-L).
- Today is Thursday.
- If the close today (Thursday) is lower than at least 0.75 of the average in number 1, then go long at the close.
- Exit at the close on Friday
(This strategy doesn’t work anymore.)
Click here for the original article.
Amibroker code:
range=MA((H-L),25);
Buy= DayOfWeek()==4 AND ( Ref(C,-1) – Close ) > ( Ref(range,-1)*0.75);
buyPrice= Close;
Sell= C>0 ; // forced exit
sellPrice= Close ;
Tradestation code:
If close <= close[1] – 0.75*average(range,25) And
dayofweek(date)=4
then buy this bar at close;
If marketposition=1 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.
