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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        57 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        78 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        39 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        101 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        61 views
        0 likes
        Last Post PaulMohn  
        Working...
        X