Pls convert to afl

mohan.sic

Well-Known Member
#1
Dear experts, pls try this in afl syntax form:

X = lowest close

Y = Value of rsi(14) at the point of X.

Buy = close > lowest close AND rsi(14) < Y

pls give the entire afl.

Thx in advance..

rgds,
mohan.
 
#2
try this...

X = BarsSince(LLV(C,250));//Period = 250 Days approx 1 trading year
Y = Ref(RSI(14),(-1*X));

Buy = (C>X) AND (RSI(14)<Y);

_SECTION_BEGIN("Mohan");

SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );

PlotShapes(shapeUpArrow * Buy, colorGreen,0,L,-12);

_SECTION_END();
 
Last edited:
#6
Hello Mohan,

try this afl...

Periods = Param("Periods",20,2,200);
X = LLVBars(C,Periods);
Y = Ref(RSI(14),(-1*X));

Buy = (C>X) AND (RSI(14)<Y);

_SECTION_BEGIN("Mohan");

SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );

PlotShapes(shapeUpArrow * Buy, colorGreen,0,L,-12);

_SECTION_END();

//change the parameter according to ur need

Regards

Manish
 
#7
try this...

X = BarsSince(LLV(C,250));//Period = 250 Days approx 1 trading year
Y = Ref(RSI(14),(-1*X));

Buy = (C>X) AND (RSI(14)<Y);

_SECTION_BEGIN("Mohan");

SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );

PlotShapes(shapeUpArrow * Buy, colorGreen,0,L,-12);

_SECTION_END();


Hi Manish...Above mention AFL for EOD??????
i have applied but have not received Buy signal or UP arrow in graph...

Can u just give me AFL...in which i can get signal where RSI cross the 30%.

Please help yaar
 

Similar threads