Hi, I have the following code to plot UP/DOWN arrows for BUY/SELL. My question is how do I assign a layer number so that the arrows only show up when layer number 2 is selected?
I created a layer called "2" and it does not work. Buy=Cross(MACD(), Signal()); Sell=Cross(Signal(), MACD()); shape = Buy * shapeUpArrow + Sell * shapeDownArrow; Plot( Close, "Price", colorBlack, styleCandle ); PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 2, IIf( Buy, Low, High ) );
