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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    37 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    18 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    25 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    34 views
    0 likes
    Last Post CarlTrading  
    Working...
    X