Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninja script is not executing on live market or market replay

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

    Ninja script is not executing on live market or market replay

    Hello, I have a script that I ran in backtest and it produced results. However when I enable the strategy on live data or market replay, it still shows the trades it would have taken previously, but from that point on it does not enter any positions.
    The strategy is set to calculate OnPriceChange, using Cumulative Delta, Donchian Channel, and Volume as indicators. All the logic is set under OnMarketData, and I am not using OnBarUpdate in this case. I also use High, Low and Close values.
    Could you please help me? What could make the code run in backtest but not in live data. Thanks for the help in advance

    #2
    Hello, thanks for writing in. The best tool to use to debug this is the Print command. This will show you why a strategy is not running by printing out the data the strategy is reading:



    The reason a strategy might take trades on a backtest but not live data are numerous, it comes down to analyzing if your entry conditions are becoming true and checking if entry methods are actually being reached in code.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    93 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    138 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    123 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    73 views
    0 likes
    Last Post PaulMohn  
    Working...
    X