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 timmbbo, Today, 08:59 AM
        1 response
        2 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by KennyK, 05-29-2017, 02:02 AM
        2 responses
        1,279 views
        0 likes
        Last Post marcus2300  
        Started by fernandobr, Today, 09:11 AM
        0 responses
        0 views
        0 likes
        Last Post fernandobr  
        Started by itrader46, Today, 09:04 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by bmartz, 03-12-2024, 06:12 AM
        5 responses
        33 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Working...
        X