hi afl experts
I have a simple formula.
I need to position the buy or sell arrows 2 bars later than what it is now.
can you help with the code please
===========================
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
MA10 = MA( C,10);
MA20 = MA( C,20);
Plot(MA10,"MA 10",colorGreen,styleThick);
Plot(MA20,"MA 20",colorRed,styleThick);
buy =cross(ma10,ma20);
sell = cross(ma20,ma10);
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorYellow ), 0, IIf( Buy, Low, High ) );
//==============
i need the buy sell arrows to appear after 2 bars from where it is now.
thanks in advance
I have a simple formula.
I need to position the buy or sell arrows 2 bars later than what it is now.
can you help with the code please
===========================
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
MA10 = MA( C,10);
MA20 = MA( C,20);
Plot(MA10,"MA 10",colorGreen,styleThick);
Plot(MA20,"MA 20",colorRed,styleThick);
buy =cross(ma10,ma20);
sell = cross(ma20,ma10);
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorYellow ), 0, IIf( Buy, Low, High ) );
//==============
i need the buy sell arrows to appear after 2 bars from where it is now.
thanks in advance
Last edited: