Rsi Bar afl covertion

#22
Dear Johnny,

Yesterday i got some good experience in 1hr time frame with adx+rsi+macd
and Auto-adaptive Ergotic Candlestick Oscillator give some good results.

Thanks johnny sir but still i struggled profit booking and exit
 

johnnypareek

Well-Known Member
#26
Hi Anand23983...

Could u plz post the afl here?


HTML:
_SECTION_BEGIN("Vol-Trend");
uptrend=PDI(20)>MDI(10)AND Signal(29)<MACD(13);
downtrend=MDI(10)>PDI(20)AND Signal(29)>MACD(13);

Plot( 20, /* defines the height of the ribbon in percent of pane width */"",
IIf( uptrend, colorGreen, IIf( downtrend, colorRed, 0 )), /* choose color */
styleOwnScale|styleHistogram+styleThick|styleNoLab el, -0.5, 100 );
Plot( 21,"",colorBlack,styleOwnScale|styleArea|styleNoLa bel,-0.5, 100 );

uptrend=PDI()>MDI() AND MACD()>Signal() AND (ADX()>20);
downtrend=MDI()>PDI() AND Signal()>MACD();
_SECTION_END();
here it is bro
 

Bewinner

Well-Known Member
#28
Hi Johnnybro Thanx for the afl but if we want to change the MACD as specified by u..then would the code be like below for macd-8-17-8 and 13-34-8?

HTML:
uptrend=PDI(20)>MDI(10)AND Signal(17)<MACD(8);
downtrend=MDI(10)>PDI(20)AND Signal(17)>MACD(8);
Or

HTML:
uptrend=PDI(20)>MDI(10)AND Signal(34)<MACD(13);
downtrend=MDI(10)>PDI(20)AND Signal(34)>MACD(13);
 

johnnypareek

Well-Known Member
#30
Hello Johhny,

Well gr8 afl..

Would u please help to make..Macd-ADX Ribbon for Buy - Sell - Neutral portion in 3 part?
HTML:
uptrend= Signal(18)<MACD(7);
downtrend= Signal(18)>MACD(7);
PRSI=adx(8)>25 ;
NRSI=RSI(14)<45 ;
Plot( 2, /* defines the height of the ribbon in percent of pane width */"ribbon",
IIf( uptrend and prsi, colorGreen, IIf( downtrend and nrsi, colorRed, yellow )), /* choose color */
styleOwnScale|styleArea|styleNoLabel, -0.5, 100 );

paste this in that afl please change value as per ur requirment or like in that afl
 

Similar threads