Below is a trail from santosh for avoiding whipsaw trades in 3 15 strategy
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:
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();
Last edited: