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

Getting Opening Price

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

    Getting Opening Price

    Hi,

    Is it possible to get in the middle of a trading day the opening price for that day, so I can calculate the % move from the open?

    Tx in advance!

    #2
    Hello,

    Thanks for the forum post.

    Yes the best way to do this is to get the indicator value from the following indicator.




    Let me know if I can be of further assistance.

    Comment


      #3
      Originally posted by NinjaTrader_Brett View Post
      Hello,

      Thanks for the forum post.

      Yes the best way to do this is to get the indicator value from the following indicator.




      Let me know if I can be of further assistance.

      I tried

      CurrentDayOHL().Opens[1][0];

      Did not work

      Comment


        #4
        Hello calhawk01,

        Thank you for your post.

        You need to use this syntax: CurrentDayOHL(IDataSeries input).CurrentOpen[int barsAgo]

        So it would be CurrentDayOHL(BarsArray[1]).CurrentOpen[0].

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by alifarahani, Today, 09:40 AM
        6 responses
        38 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        18 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by Kaledus, Today, 01:29 PM
        5 responses
        15 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Waxavi, Today, 02:00 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by gentlebenthebear, Today, 01:30 AM
        3 responses
        17 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X