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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        81 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        41 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        66 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X