I belive this should be pretty simple to do but i'm strugeling to code this indicator, any help would be apriciated!!
Basicly i wanna do a 50% line on the chart of the developing 1day ATR on the intradaychart.
Basicly: If we closed yesterday on 1000 & the next day open at 2000 the line should be on 1500 the price later (same) day moves to 2500 the line moves to 1750.
In this chart: https://www.linnsoft.com/charts/atr-1-mid-es
I used this syntax:
(SMAX(SESST_HI, SESST_PCL) + SMIN(SESST_LO, SESST_PCL))/2
where SESST_HI is the high of current session (developing). SESST_PCL is previous close. SESST_LO is the low of current session (developing). So we take the max of current high and previous close, and we add the min of current low and previous close, and take average of 2. Let me know if that gives you what you're after.