Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

YADQ (yet another dumb question)

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

    YADQ (yet another dumb question)

    Ok, so I can set CalculateOnBarClose to false to have ninjascript raise an OnBarUpdate for each tick, right? I can check the Historical flag to see if the bar is closed. Great. Now I want to get the value of tick of the current bar. There are High, Low, Open and Close collections for each bar but I don't see a Tick collection. How to tell what the "current" bar is trading at on a given call to OnBarUpdate?
    Thanks ... Ed

    #2
    Ed,

    If you use Close[0], it will get the last traded price in this scenario. When the update comes in the Close[0] will get updated to the last traded price.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Very cool. Non-obvious, but cool. I'm on my way until the next dumb question!
      Thanks again ... Ed

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      131 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      74 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      117 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      111 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      89 views
      0 likes
      Last Post CarlTrading  
      Working...
      X