Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 samish18, Yesterday, 08:31 AM
        3 responses
        14 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by funk10101, Yesterday, 09:43 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by TheWhiteDragon, 01-21-2019, 12:44 PM
        5 responses
        551 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by rtwave, 04-12-2024, 09:30 AM
        5 responses
        37 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by funk10101, Today, 12:02 AM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Working...
        X