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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      574 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      333 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X