Using Lower Chart To Plot Arrows On Upper Chart
So I have some code that looks like this:
The declare lower makes it so the arrows appear in the lower area. How can I plot the arrows on the chart itself like right under the bars for buy signals and above for sell signals?
Second question, is there a way to make it show the buy signal only if the status has changed? Like if the previous values are still a buy don't display another up arrow? So it doesn't display a line of buy arrows.
So I have some code that looks like this:
Code:
declare lower;
plot UpSignal = if c1 + c2 + c3 + c4 + c5 == 5 THEN 1 else Double.Nan;
UpSignal.SetDefaultColor(Color.GREEN);
UpSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
The declare lower makes it so the arrows appear in the lower area. How can I plot the arrows on the chart itself like right under the bars for buy signals and above for sell signals?
Second question, is there a way to make it show the buy signal only if the status has changed? Like if the previous values are still a buy don't display another up arrow? So it doesn't display a line of buy arrows.
Last edited by a moderator: