Show 50% level as a marker on candles

Hi Optuma
I’m looking for a script that will show the 50% level of each bar’s range. I’ve done a script search with no matching results and I can’t find this option in bar properties. I want to be able to display this marker primarily on daily bars, but have no idea where to start so any help would be appreciated.

Hi Tonia,

You could use a Show Plot set to use (HIGH()+LOW())/2, or you can apply 1 period moving average using HL Average and it will draw at the mid-point of each candle:

Capture

If you want to know when the close is above the mid-point use the BARTYPES() function in a Show Bar or scan:

BARTYPES().CloseAboveMid

Capture

Many thanks for your help Darren. I’ll see which option works best for what I need. You’ve been very helpful.