Chart Label for Highest Bearish Candle on 5 minute chart


Category:
0
0

One more question..is it possible to have the highest red candle’s high of the 5 minute chart as a chart label.not just the previous..thanks!!!!!!!!! youre the best!!!

Marked as spam
Posted by (Questions: 4, Answers: 5)
Asked on December 14, 2019 4:22 pm
54 views
0
Private answer

Here is a link to your previous request. Which I am including here because we are going to use that code for this one.

https://www.hahn-tech.com/ans/chart-label-for-bearish-candle-on-5-minute-chart/

I'll just add one line of code to reset the high each time there is a new day of trading.

def redCandle = close < open;
def newDay = GetDay() <> GetDay()[1];
def targetHigh = if newDay then high else if high > targetHigh[1] and redCandle then high else targetHigh[1];
AddLabel(yes, Concat("Red Candle High: ", targetHigh), Color.WHITE);

The code grabs the high of the first new candle of the day. If that candle happens to be green and also happens to be the high of the day then that is the high the code will report. Otherwise it will grab the highest red candle high of each day.

Marked as spam
Posted by (Questions: 37, Answers: 4084)
Answered on December 24, 2019 3:30 pm