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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      173 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      328 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      252 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      354 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      181 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X