Modified SH's 315 Strategy by Santhosh2010

#1
Just i modified the SH's 315 Strategy for " avoid the whipsaws "

Kindly watch both charts And just understand this new logic.n Enjoy the trades.:clap:






PHP:
_SECTION_BEGIN("MA Cross");

//Modified SH's 315 Strategy by Santhosh2010
// Traderji id :Santhosh2010

e1=EMA(C,3);
e2=EMA(H,15);
e3=EMA(L,15);

Plot(e1,"",colorYellow,styleDashed |styleThick);
Plot(e2,"",colorLightYellow,styleDots );
Plot(e3,"",colorLightYellow,styleDots );

b1=Cross(e1,e2);
s1=Cross(e3,e1);
Buysetup=Flip(b1,s1);
Shortsetup=Flip(s1,b1);
trend=IIf(BarsSince(Buysetup)<BarsSince(Shortsetup ),1,0);
Col=IIf(trend==1,colorGreen,4);
SetBarFillColor(Col);
Plot(C,"Close",Col,64);

_SECTION_END();
 
#5
How to identify market trend ?

CMP if trade above the band "market is in uptrend, viceversa short.

when CMP if its trade between the band "Market is in consolidation base (Range bound) "

 

VJAY

Well-Known Member
#7
Dear santhosh,
Thanks for the modified version of 315 ....can you please add if bar close inside 15 h-L then colour of bar change to yelllow or other colour.....
 
#9
_SECTION_BEGIN("MA Cross");

//Modified SH's 315 Strategy by Santhosh2010
// Traderji id :Santhosh2010

e1=EMA(C,3);
e2=EMA(H,15);
e3=EMA(L,15);

Plot(e1,"",colorYellow,styleDashed |styleThick);
Plot(e2,"",colorLightYellow,styleDots );
Plot(e3,"",colorLightYellow,styleDots );

b1=Cross(e1,e2);
s1=Cross(e3,e1);
Buysetup=Flip(b1,s1);
Shortsetup=Flip(s1,b1);
trend=IIf(BarsSince(Buysetup)<BarsSince(Shortsetup ),1,0);
Col=IIf(trend==1,colorGreen,4);
SetBarFillColor(Col);
Plot(C,"Close",Col,64);

_SECTION_END();
============
Please convert this code in METASTOCK format.

If not please give equivalent of:
Flip(array1,array2) in METASTOCK format.
 

Similar threads

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

Name:Phone:
Email:City:
State:
Are you a day trader?