please make this afl

Abhi1284

Active Member
#1
1. 5-period Exponential Moving Average (EMA 5) applied to the Close.

2. 12-period Exponential Moving Average (EMA 12) applied to the

Close.

3. 21-period RSI (RSI 21)

Entry Rules for Long Trades:

Its simple. We enter a long trade when EMA 5 crosses EMA 12 to the

upside AND our RSI 21 > 50.

Entry Rules for Short Trades:

Enter short when EMA 5 crosses EMA 12 to the downside.

AND RSI 21 < 50.

Stop loss = 10 20 points depending on the volatility of the INDEX

pair. For more volatile pair, like BANKNIFTY, stop loss = 30 POINTS. For less

volatile pair, like NIFTY, use stop loss of 20 pips.

Timeframe: 5 MIN OR 15 MIN

Exit Rules for Long Trades:

Exit the trade when EMA 5 crosses back below EMA 12

Or when RSI 21 < 50.

Or when price stalls at major resistance, trendline, pivot points,

Fibonacci projection target.

Or when bearish engulfing patterns or inverted hammer patterns form.

Exit Rules for Short Trades:

Exit our short trade when EMA 5 crosses above EMA 12

OR RSI 21 > 50
 
#2
hi
you better use RSI(5) if you use for intraday.
==================
EMA5=EMA(C,5);
EMA12 = EMA(C,12);
barcolor = IIF(RSI(5)>50,COLORBLUE,IIF(RSI(5)<50,COLORRED,COLORGREY50));
PLOT(C,"C",barcolor,stylebar);
PLOT(EMA5,"EMA5",COLORGREEN,STYLETHICK);
PLOT(EMA12,"EMA12",COLORRED,STYLETHICK);
=========================
choose timEframe you need and check
if bar is blue,it means Rsi5 is above 50.
CHEERS
 

johnnypareek

Well-Known Member
#3
hi,

Here is for R&D ;)

HTML:
fast=Optimize("Fast",5,3,22,1);
slow=Optimize("Slow",12,5,42,1);
RSIp=Optimize("RSIp",21,3,42,1);


EMA5=EMA(C,fast);
EMA12 = EMA(C,slow);
barcolor = IIf(RSI(RSIp)>50,colorBlue,IIf(RSI(RSIp)<50,colorRed,colorGrey50));
//Plot(C,"C",barcolor,styleBar);
_SECTION_BEGIN("Price");

GraphXSpace=5;
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", barcolor, styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();


Plot(EMA5,"EMA5",colorGreen,styleThick);
Plot(EMA12,"EMA12",colorRed,styleThick);
Buy=EMA5>EMA12 AND RSI(RSIp)>50;
Sell=EMA5<EMA12 OR RSI(RSIp)<50;// OR C<EMA12;
Short=EMA5<EMA12 AND RSI(RSIp)<50;
Cover=EMA5>EMA12 OR RSI(RSIp)>50;// OR C>EMA12;
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
Short=ExRem(Short,Cover);
Cover=ExRem(Cover,Short);
PlotShapes(IIf(Buy==1, shapeUpArrow , shapeNone), colorGreen, 0,Low, Offset=-20);
PlotShapes(IIf(Short==1, shapeDownArrow, shapeNone), colorRed, 0,High, Offset=-20);
PlotShapes(IIf(Cover, shapeHollowCircle, shapeNone),colorGreen, 0,Close,0);
enjoy
johnny
 

Abhi1284

Active Member
#4
hi,

Here is for R&D ;)

HTML:
fast=Optimize("Fast",5,3,22,1);
slow=Optimize("Slow",12,5,42,1);
RSIp=Optimize("RSIp",21,3,42,1);


EMA5=EMA(C,fast);
EMA12 = EMA(C,slow);
barcolor = IIf(RSI(RSIp)>50,colorBlue,IIf(RSI(RSIp)<50,colorRed,colorGrey50));
//Plot(C,"C",barcolor,styleBar);
_SECTION_BEGIN("Price");

GraphXSpace=5;
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", barcolor, styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();


Plot(EMA5,"EMA5",colorGreen,styleThick);
Plot(EMA12,"EMA12",colorRed,styleThick);
Buy=EMA5>EMA12 AND RSI(RSIp)>50;
Sell=EMA5<EMA12 OR RSI(RSIp)<50;// OR C<EMA12;
Short=EMA5<EMA12 AND RSI(RSIp)<50;
Cover=EMA5>EMA12 OR RSI(RSIp)>50;// OR C>EMA12;
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
Short=ExRem(Short,Cover);
Cover=ExRem(Cover,Short);
PlotShapes(IIf(Buy==1, shapeUpArrow , shapeNone), colorGreen, 0,Low, Offset=-20);
PlotShapes(IIf(Short==1, shapeDownArrow, shapeNone), colorRed, 0,High, Offset=-20);
PlotShapes(IIf(Cover, shapeHollowCircle, shapeNone),colorGreen, 0,Close,0);
enjoy
johnny
THANX johnny
i have one more query. if u have good strategy for nest pulse auto trading please write here for profitable trading for new traders
 
Last edited:

Similar threads