+91-0000000000

}

Monday – Friday : 9:00 AM – 6:30 PM

%B AD 1Oscillator 535_1070 % BAND

An Oscillator 535_1070 % BAND in Amibroker AFL likely represents an indicator measuring the percentage deviation of an oscillator with periods of 535 and 1070 from its moving average. This aids in identifying overbought or oversold conditions in the market using Amibroker data feed.

/
_SECTION_BEGIN("5-35 OSCILLATOR");
A2 = MA(C,5);
B2 = MA(C,35);
D2 = A2-B2;



XPLUS=IIf(D2>0,D2,0);
XMINUS=IIf(D2<0,D2,0);



PD=periods = Param( "Periods", 15, 1, 200, 1 );

Y=EMA(XPLUS,PD);
Z=EMA(XMINUS,PD);

DIFF=Param( "DIFF", 0.01, 0.01, 10, 1 );

YP=Y+HHV(Y,50)*DIFF;
YM=Y-HHV(Y,50)*DIFF;


ZP=Z+HHV(Y,50)*DIFF;
ZM=Z-HHV(Y,50)*DIFF;


PlotOHLC( YP, YP, YM , YM , "",colorYellow, styleCloud | styleNoLabel);
PlotOHLC( ZP, ZP, ZM , ZM , "",colorYellow, styleCloud | styleNoLabel);





Colorm=IIf(D2>Ref(D2,-1),colorRed,colorDarkRed);
Plot( D2, "535", Colorm, styleHistogram|styleNoLabel );
PlotOHLC( 0, D2, 0 , 0 , "535",Colorm, styleCloud | styleNoLabel);



//////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
A3 = MA(C,10);
B3 = MA(C,70);
D3 = A3-B3;


Colorm=IIf(D3>Ref(D3,-1),colorPaleBlue,colorBlue);
Plot( D3, "1070", Colorm, styleHistogram|styleNoLabel );



PlotOHLC( 0, D3, 0 , 0 , "1070",Colorm, styleCloud | styleNoLabel);


_SECTION_END();

Open chat
1
Hi, how can I help you?