Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnBarUpdate and live/backfill data

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

    OnBarUpdate and live/backfill data

    Hi, say, I want to send myself an email when SMA crossover on bar update, I notice that it is also called when I'm enabling the strategy while Ninja is backfilling the data when the conditions are met. That's mean I'm getting a lot of emails from this.

    Is it possible to distinguish backtest/backfill data vs live running data/strategy?

    Many thanks!

    #2
    Thanks for the post here lawrence124, you could work with Historical here to work only on live seen data for your script :

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    25 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    115 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    69 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    225 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    411 views
    0 likes
    Last Post CaptainJack  
    Working...
    X