Monday/Tuesday Trade In Nasdaq (Amibroker And Tradestation Code)

The strategy in plain English:

 

  1. Today is either Monday or Tuesday.
  2. Internal Bar Strength (IBS) is 0.15 or below.
  3. If both criteria 1 and 2 are fulfilled, go long QQQ at the close.
  4. Exit at close if today’s close is higher than the close of yesterday.

 

 

Click here for the original article.

 

Amibroker code:

 

setOption(“holdminbars”,1);

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

 

Buy=( DayOfWeek()==1 OR DayOfWeek()==2 ) AND ibs<0.15;

buyPrice= Close;

Sell= C>Ref(H,-1);

sellPrice= Close ;

 

 

 

Tradestation code:

 

If (dayofweek(date)=1 or dayofweek(date)=2)
and IFF((H-L)<>0,((C-L))/(H-L),1) <= 0.15
then buy this bar at close;
If c>h[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.