I am having problems with this most basic bit of coding. I am trying to compare conditions between various bars previous to the current bar. I tried the following and it plots price bars but not any of the Sells.
Plot( C, "Close", ParamColor("Color", colorBlack ), styleBar | ParamStyle("Style") | GetPriceStyle() );
Sell = (C-4 > C-1) AND (C-2 > C-4) AND (C-3 > C-2) AND (C-5 > C-3);
IIf( (Sell),PlotShapes(shapeDownArrow*Sell,colorRed),0);
Any ideas where I'm going wrong?
Plot( C, "Close", ParamColor("Color", colorBlack ), styleBar | ParamStyle("Style") | GetPriceStyle() );
Sell = (C-4 > C-1) AND (C-2 > C-4) AND (C-3 > C-2) AND (C-5 > C-3);
IIf( (Sell),PlotShapes(shapeDownArrow*Sell,colorRed),0);
Any ideas where I'm going wrong?