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 NullPointStrategies, Today, 05:17 AM
    0 responses
    53 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X