Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Price of Open () at 9:30

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

    Price of Open () at 9:30

    In the strategy, I need to get the price of Open () at the opening of the stock exchange at 9:30. How can I do this?

    #2
    Hello Kostiantyn,

    Thanks for your post.

    You can compare the bar close time to 9:30 and then save the open price of the bar. For example:

    if (ToTime(Time[0]) == 93000)
    {
    myOpenPrice = Open[0]; // save open price at 9:30 into double variable myOpenPrice
    }


    Reference: http://ninjatrader.com/support/helpG...us/?totime.htm
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by hfwiley, Today, 03:02 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Melissa  
      Started by pdennis, Today, 02:34 PM
      0 responses
      8 views
      0 likes
      Last Post pdennis
      by pdennis
       
      Started by WeyldFalcon, Today, 02:07 PM
      0 responses
      7 views
      0 likes
      Last Post WeyldFalcon  
      Started by tonynt, Today, 01:47 PM
      3 responses
      15 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by WesFoster, Today, 12:39 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Dennis  
      Working...
      X