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 space_trader, Today, 12:52 AM
      0 responses
      5 views
      0 likes
      Last Post space_trader  
      Started by soon123, Today, 12:18 AM
      0 responses
      5 views
      0 likes
      Last Post soon123
      by soon123
       
      Started by AxelrodWins, Yesterday, 07:07 PM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_Marco  
      Started by StockJock, Yesterday, 11:05 PM
      0 responses
      13 views
      0 likes
      Last Post StockJock  
      Started by jc.am, Yesterday, 07:59 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_EricB  
      Working...
      X