Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PriorDayOHLC().PriorHigh for getting High and Low of 2 days ago

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

    PriorDayOHLC().PriorHigh for getting High and Low of 2 days ago

    Hello,

    I'm trying to get High and Low of 2 days ago with PriorDayOHLC().PriorHigh[x];
    I used 1 or 2 instead of x but receiving always the High and Low of today.
    I've tried also to use index to the last bar number of the previous session but no luck!

    Can you please help me to find out ?

    Thanks,
    Nima

    #2
    this indicator find highestHigh and lowestLow values of multiple days and draw a diamond on those bars.
    Attached Files

    Comment


      #3
      Hello njafarynia,

      Thank you for your note.

      The simplest way would be to add a Daily data series to the chart and simply get the High and Low of 2 bars ago on that series. I'm attaching a simple example script that illustrates.

      Please let us know if we may be of further assistance to you.

      Attached Files

      Comment


        #4
        Thanks for both replies, I've decide to go with Kate W. reply and it works.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        578 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X