Announcement

Collapse
No announcement yet.

Midpoint or point of control

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Midpoint or point of control

    Does anyone know how I can calculate the midpoint of the intraday range as the day progresses? Basically, the midpoint from the high-low of days range.

  • #2
    Re: Midpoint or point of control

    scorps10
    There are a number of ways you can do that.
    A very simple one would be to modify the existing Todays Close efs [which is in the OHLC folder of Formulas] and replace the following line of code (line 29)
    xClose = close(inv("D"));
    with
    xClose = hl2(inv("D"));
    and save the script with a new name. This way instead of returning the daily Close the efs will return the midpoint between the daily High and Low
    Another [even simpler] solution that requires no coding is to use the customDonchian efs [which is in the EFS2 Custom folder of Formulas] and set the Interval parameter of the efs to D (or d for daily) and the Length parameter to 1.
    The middle plot will be the midpoint of the day's range while the upper and lower bands will be the daily High and Low
    Alex


    Originally posted by scorps10
    Does anyone know how I can calculate the midpoint of the intraday range as the day progresses? Basically, the midpoint from the high-low of days range.

    Comment


    • #3
      Thanks Alex. Worked perfectly.

      Comment


      • #4
        scorps10
        You are most welcome
        Alex


        Originally posted by scorps10
        Thanks Alex. Worked perfectly.

        Comment

        Working...
        X