Mark first bar of trading session if close less than open


Category:
0
0

Hi

I would like to request a chart study that would plot 1 down arrow on top of the first 1Hour bar when CurrentClose < CurrentOpen and show in the last 30 days. I have attached an example below.

Thank you

 

 

Marked as spam
Posted by (Questions: 12, Answers: 1)
Asked on August 20, 2020 4:59 am
92 views
0
Private answer

The original title of your question has been changed. The title you entered "Need Help plotting down arrow on top of bar" could describe any one of a hundred different posts in this forum. We need to be more specific than this. A quick search of the forum will reveal many of examples showing "how to plot a down arrow on top of a bar".

You said you included an example but I did not see any attachments or screenshots included with your post. But I understand you would like to have a down arrow plotted on the first bar of each trading session but only if that bar is red (close < open).

def newDay = GetDay() <> GetDay()[1];
plot signal = newDay and close < open;
signal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);

That code must be applied to a chart that has extended hours turned off.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on August 20, 2020 9:22 am