Announcement

Collapse
No announcement yet.

Prev days' high and low ?

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

  • Prev days' high and low ?

    How would I best determine the high and low of the previous 4 days??

    TIA

  • #2
    bfry,

    You know most of my tricks, so this will sound familiar, anyways here goes.

    Setup a seperate advanced chart with a custom time template set to the desired trading hours. obtain the values desired using high(), low() as required for the number of days. Then save them to a file or global variable. I would probably save them to a file, adding them to the file, then in the efs doing the analysis, open the file and query for the last 4 days if in RT. If backtesting, find the previous 4 days from that date. When adding information to the file, you will have to ensure you do not keep adding the same day to the file, and all you do is overwrite the last day.

    Hopefully someone has some easier way, I am interested.

    Regards,

    Comment


    • #3
      Whenever I see a request for hi/lo I think of Donchian Channels.

      Just use the number of bars which span 4 days, based on the time interval you use.

      In the trivial case of 4 daily bars, use a Donchian 4.

      Comment


      • #4
        Thanks Dave for a simpler solution!

        Comment


        • #5
          bfry5282
          You may also want to look at the efs posted by JasonK in this thread.
          Alex

          Comment

          Working...
          X