The Turnaround Tuesday Trading Strategy (Amibroker And Tradestation Code)

The original article can be found here.

 

The strategy in plain English:

 

  1. Today is Monday.
  2. The close must be lower than the open.
  3. The IBS must be below 0.2.
  4. If 1-3 are true, then enter at the close.
  5. Sell at Tuesday’s close.

Amibroker code:

 

ibs=(C-L)/(H-L) ;

setOption(“holdminbars”,1);

Buy= DayOfWeek()==1 AND C<O AND ibs<0.2 ;

buyPrice=Close;
Sell= Close>0 ; //force exit next day
sellPrice=Close ;

 

Tradestation code:

 

If dayofweek(date)=1
and c < o
and IFF((H-L)<>0,((C-L))/(H-L),1)< 0.2
then buy this bar at close;
If dayofweek(date)=2 then sell this bar at close;

 

Disclaimer: 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.