ATR1 MID Indicator

Login or Register

Please login or register in order to view and post in the Forum.

2 posts / 0 new
Last post
benjaminlarsson
Last seen: 4 years 8 months ago
Joined: 10/13/2017 - 07:07
ATR1 MID Indicator

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.

0
cpayne
Last seen: 1 year 8 months ago
Joined: 03/30/2009 - 00:00
ATR Midpoint

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.