Hi codejunkie, I have tickdata, tick size is 0.05, rangebars of 5 points are properly plotted. Attaching screenshot. I am unable to figure out. Any changes involved in ver 6.30?
Plot( C, "Close", colorDefault, styleCandle);
mfast = Optimize( "MACD Fast", 12, 8, 16, 1 );
mslow = Optimize("MACD Slow", 26, 17, 30, 1 );
sigavg = Optimize( "Signal average", 9, 2, 20, 1 );
Buy = Cover = Cross( MACD( mfast, mslow ) , Signal( mfast, mslow, sigavg ) );
Sell = Short = Cross( Signal( mfast, mslow, sigavg ), MACD( mfast, mslow ) );
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell, Buy);
Short = ExRem(Short ,Cover);
Cover = ExRem(Cover,Short);
//###################################### PLOTS AND SHAPES #############################################
PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorTurquoise, 0, L, Offset=-60);
PlotShapes(IIf(sell, shapeSmallDownTriangle, shapeNone),colorTurquoise, 0,H, Offset=-60);
PlotShapes(IIf(Cover, shapeSmallUpTriangle, shapeNone),colorYellow, 0, L, Offset=-45);
PlotShapes(IIf(short, shapeDownArrow, shapeNone),colorYellow, 0,H, Offset=-45);