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 iradielt, Today, 10:06 PM
        0 responses
        2 views
        0 likes
        Last Post iradielt  
        Started by gbajaj, Today, 03:35 PM
        2 responses
        11 views
        0 likes
        Last Post gbajaj
        by gbajaj
         
        Started by space_trader, Today, 03:19 PM
        2 responses
        8 views
        0 likes
        Last Post space_trader  
        Started by max1ci6, Today, 02:02 AM
        4 responses
        28 views
        0 likes
        Last Post joromero  
        Started by Johnny, Today, 02:38 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Tyler  
        Working...
        X