Join our facebook group for Amibroker afl code discussion https://www.facebook.com/groups/603980776889348

Support Resistance Based Accurate Signals


How to use Support Resistance Based Accurate Signals Amibroker afl?

Support Resistance Based Accurate Signals show accurate almost all the time. This afl shows only support and resistance lines and buy sell arrow however Support Resistance Based Accurate Signals afl can be combined with any other afl for clear picture. This afl can be use in any time frame. Use RSI, MACD Or stochastic oscillator with Support Resistance Based Accurate Signals afl for more accurate signals.


Support Resistance Based Accurate Signals
Support Resistance Based Accurate Signals


//www.aflcode.com

_SECTION_BEGIN("Shiree count back");

// User defined parameters.

GraphXSpace = 10; //defines how much extra space should be added above and below graph line (in percent).


PH= ValueWhen((Ref(H,-2) > Ref(H, -4)) AND (Ref(H,-2) > Ref(H, -3)) AND (Ref(H,-2) > Ref(H, -1)) AND (Ref(H,-2) > H), Ref(H,-2));

PL= ValueWhen((Ref(L,-2) <= Ref(L, -4))AND (Ref(L,-2) <= Ref(L, -3))AND (Ref(L,-2) <= Ref(L, -1)) AND 
(Ref(L,-2) <= L), Ref(L,-2));

Plot(Ref(PH,2), "UpPivot", ParamColor("UpPivot Color",colorRed), styleDashed);
Plot(Ref(PL,2), "DownPivot",ParamColor("DownPivot Color",colorGreen), styleDashed);
Buy = C> PH;

Sell = C< PL;

Buy = ExRem(Buy,Sell);
Sell= ExRem(Sell,Buy);

Short = Sell;
Cover = Buy;

Short=ExRem(Short,Cover);
Cover=ExRem(Cover,Short);

shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ),0, IIf( Buy, Low, High ) );


_SECTION_END();

Previous
Next Post »