Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PriorDayOHLC.PriorOpen with multiple instruments on a chart

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

    PriorDayOHLC.PriorOpen with multiple instruments on a chart

    I am trying to retrieve the open for each of 2 instruments on a chart. I am using the following code which compiles OK but gives me a index when run:

    prevopen1 = PriorDayOHLC(Opens[0]).PriorOpen[0];
    prevopen2 = PriorDayOHLC(Opens[1]).PriorOpen[0];

    How can I retrieve the open for 2 instruments on a chart?

    Thank you.
    Last edited by Drummer; 04-19-2012, 09:50 AM.

    #2
    Hello Drummer,
    Thanks for your post.

    Unfortunately there is no supported function to access the 2nd bars series on a chart.

    Multi-series scrips need to follow normal multi-series conventions.

    Please let me know if I can assist you any further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      thank you.

      Is there any way to get the previous session high/low of an indicator?

      Comment


        #4
        Hello Drummer,
        Unfortunately there are no native indicators to get the priors sessions high low for an indicator however you can build a custom indicator for it. The basic concept and working should be similar to to the PriorDayOHLC indicator.

        Please let me me know if I can assist you any further.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Unsuitable, Today, 07:26 PM
        0 responses
        1 view
        0 likes
        Last Post Unsuitable  
        Started by jvanelli, Today, 06:36 PM
        2 responses
        9 views
        0 likes
        Last Post NinjaTrader_EricB  
        Started by twitch251, Today, 05:14 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_ShawnB  
        Started by robforee2, Today, 05:07 PM
        0 responses
        4 views
        0 likes
        Last Post robforee2  
        Started by blar58, Today, 03:16 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Melissa  
        Working...
        X