Need Help - Please

#1
logic for buy entry :

one minute EMA(90) crossing over one minute EMA(390) ( meaning the previous minute ema 90 is less than ema 390) and the ema(90) should also be greater than ema(150)

logic for buy exit :

one minute EMA(90) > EMA(390) and the ema(90) < ema(150).

logic for sell entry :

one minute EMA(90) cutting down one minute EMA(390) ( meaning the previous minute ema 90 is greater than ema 390) and the ema(90) should also be less than ema(150)

logic for sell exit :

one minute EMA(90) < EMA(390) and the ema(90) > ema(150).


Source :
Credits to Vijay Venkataswamy
 
#5
Hi here is the afl.
HTML:
//========================================================================
//use 1 minute chart
EMA90 =EMA(C,90);
EMA390 =EMA(C,390);
EMA150 =EMA(C,150);
//Buy =blue EMA90 above EMA390 red and ema90>ema150 black, exit buy when blue ema90<ema150 black
Buy =Cross(EMA90,EMA390) AND EMA90>EMA150 ;
EXITBUY = EMA90>EMA390 AND EMA90<EMA150 ;
Sell = Cross(EMA390,EMA90) AND EMA90<EMA150 ;
SellEXIT = EMA90<EMA390 AND EMA90>EMA150 ;

Plot(EMA90,"ema90",colorBlue,styleThick);
Plot(EMA390,"ema390",colorRed,styleThick);
Plot(EMA150,"ema150",colorBlack,styleThick);
Plot(C,"c",Colorcycle,styleCandle);
Cldcolor = IIf(EMA90>EMA390 AND EMA90>EMA150,colorPaleGreen,IIf(EMA90>EMA390 AND EMA90<EMA150,colorDarkRed,IIf(EMA90<EMA390 AND EMA90<EMA150,colorYellow,IIf(EMA90<EMA390 AND EMA90>EMA150,colorPaleGreen, colorGrey50))));
PlotOHLC(EMA90,EMA90,EMA150,EMA150," ",Cldcolor,styleCloud);
 

Similar threads

Broker Special Offers

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

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