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 pel11, Today, 06:44 PM
        0 responses
        2 views
        0 likes
        Last Post pel11
        by pel11
         
        Started by traderbot, Today, 06:40 PM
        0 responses
        4 views
        0 likes
        Last Post traderbot  
        Started by CCLQMT, Today, 05:31 PM
        0 responses
        8 views
        0 likes
        Last Post CCLQMT
        by CCLQMT
         
        Started by yodaler, Today, 03:17 PM
        2 responses
        12 views
        0 likes
        Last Post yodaler
        by yodaler
         
        Started by tatir, Today, 03:09 PM
        2 responses
        19 views
        0 likes
        Last Post tatir
        by tatir
         
        Working...
        X