Need this AFL seniors help me ..


Well-Known Member
to bstar
bro where u r geting error just put // b4 line
e.g //dfdfdnfdkfndk
afl will work fine
Wrong way of advice when no verify the error yourself. Make thing worst.
This problem again cause by the originator put in posting.
Not putting in <code>..</code> issue

_SECTION_BEGIN("Kill The Operator MACD");
SetChartBkColor(ParamColor("Panel color ",colorBlack));
r1 = Param( "Fast avg", 12, 2, 200, 1 );
r2 = Param( "Slow avg", 26, 2, 200, 1 );
r3 = Param( "Signal avg", 9, 2, 200, 1 );
Plot( ml = MACD(r1, r2), StrFormat(_SECTION_NAME()+"(%g,%g)", r1, r2), ParamColor("MACD color", colorRed ), ParamStyle("MACD style") );
Plot( sl = Signal(r1,r2,r3), "Signal" + _PARAM_VALUES(), ParamColor("Signal color", colorBlue ), ParamStyle("Signal style") );
Histogram_color = IIf( ml-sl > 0, colorBlue, colorRed);
Plot( ml-sl, "MACD Histogram", Histogram_color, styleNoTitle | ParamStyle("Histogram style", styleHistogram | styleThick | styleNoLabel, maskHistogram ) );
Title = EncodeColor(colorWhite)+ "Kill The Operator MACD";

x = ml;
y = sl;

AlertIf( Buy, "SOUND C:\\Windows\\Media\\notify.wav", "Audio alert", 2 );
AlertIf( Sell, "SOUND C:\\Windows\\Media\\chord.wav", "Audio alert", 2 );


_SECTION_BEGIN("Trend Filters");
//--modified by Kelvinhand
procedure PlotRMORibbon(tf, Level, ColorUP, ColorDN, ColorNT)

SwTrd1 =100 * (Close - ((MA(C,2)+
MA(MA(MA(C,2),2),2) +
MA(MA(MA(MA(C,2),2),2),2) +
MA(MA(MA(MA(MA(C,2),2),2),2),2) +
MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2) +
MA(MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2), 2),2)+
MA(MA(MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2), 2),2),2),2))

RMO= EMA(SwTrd1,34);



RibbonColor=IIf(TimeFrameExpand(Bull_Trend,tf),colorUp, IIf(TimeFrameExpand(Bear_Trend,tf),ColorDn, ColorNT));

Plot(Level, "ribbon"+tf, RibbonColor, styleOwnScale|styleArea|styleNoLabel, -0.5,100,0, -1);


PlotRMORibbon(in15Minute,  2,colorBlue, colorRed,colorBlack);
PlotRMORibbon(10*in1Minute,4,colorBlue, colorRed,colorBlack);
PlotRMORibbon(Interval(),  6,colorBlue, colorRed,colorBlack);
Last edited:
sukhinder sir this code is perfect for intra trade in 30 mnts chart but it give 2-3 signal extra non trend pls adjust perameters for mor accurate


Well-Known Member
Dear friends,
I need to print out for every 30mins close price for wholedays chart of every stock and commodity. How can I take the print out from amibroker?
Please anybody help me for that afl,to print in paper. I tried my level best but getting day's O H L C not for every 30mins close price.

please..... please...... please
Dear Firsttrade at-least to did some help .. thanks for that ..

Plz some body correct that error and post .. ll be use full for all ...............
or else if anybody having any other best AFL plz share ..
friends i m not programer but doing this way only ribbon is not coming the main lines r coming which as per me r imp so i post the solution i hav done the same
i just try to help bewenner bro its easy to laugh but difficult to help some body atleast i tried frm my side

Similar threads

Broker Special Offers

Intraday Higher Leverage

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

Are you a day trader?