Hello,
I am using one AFL code for EMA crossover on EOD charts, Its working fine on EOD, but not on Intraday charts, I want to use it on Intraday charts. I tried to make changes but not succeed.
Please find below mentioned AFL:-
x = EMA(Close,5);
y = EMA(Close,13);
Buy=Cross(x,y);
PlotShapes(shapeUpArrow*Buy,colorGreen);
Sell=Cross(y,x);
PlotShapes(shapeDownArrow*Sell,colorRed);
Plot(EMA(Close,5),"",colorBrightGreen,styleLine);
Plot(EMA(Close,13),"",colorRed,styleLine);
AlertIf( Buy, "SOUND C:\\Windows\\Media\\notify.wav", "Audio alert", 2 );
AlertIf( Sell, "SOUND C:\\Windows\\Media\\chord.wav", "Audio alert", 2 );
XR=(EMA(Close,5) * (2 / 6 - 1) - EMA(Close,13) * (2 / 11 - 1)) / (2 / 6 - 2 / 11);
Title = Name() + " " + Date()+" " + EncodeColor( colorBlue ) +"5/13 EMA " +EncodeColor( colorBlack )
+ " O " + O + " H " + H + " L " + L + " C "+ C + "\n";
Kindly modify this AFL to use it on Intraday charts.
Regards,
TT
I am using one AFL code for EMA crossover on EOD charts, Its working fine on EOD, but not on Intraday charts, I want to use it on Intraday charts. I tried to make changes but not succeed.
Please find below mentioned AFL:-
x = EMA(Close,5);
y = EMA(Close,13);
Buy=Cross(x,y);
PlotShapes(shapeUpArrow*Buy,colorGreen);
Sell=Cross(y,x);
PlotShapes(shapeDownArrow*Sell,colorRed);
Plot(EMA(Close,5),"",colorBrightGreen,styleLine);
Plot(EMA(Close,13),"",colorRed,styleLine);
AlertIf( Buy, "SOUND C:\\Windows\\Media\\notify.wav", "Audio alert", 2 );
AlertIf( Sell, "SOUND C:\\Windows\\Media\\chord.wav", "Audio alert", 2 );
XR=(EMA(Close,5) * (2 / 6 - 1) - EMA(Close,13) * (2 / 11 - 1)) / (2 / 6 - 2 / 11);
Title = Name() + " " + Date()+" " + EncodeColor( colorBlue ) +"5/13 EMA " +EncodeColor( colorBlack )
+ " O " + O + " H " + H + " L " + L + " C "+ C + "\n";
Kindly modify this AFL to use it on Intraday charts.
Regards,
TT