Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Replay - Historical Data - Orders ignored?

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

    Market Replay - Historical Data - Orders ignored?

    I'm trying to test a strategy in Playback mode, but using Historical Data rather than Market Replay (it's faster)

    I have a simple long entry that is being ignored... actually I've tried two different ways... and both are being ignored. Not sure why?

    For both methods I get same results, no order appearing.'

    I'm trying this:
    EnterLongStopLimit(1,GetCurrentAsk(),GetCurrentAsk (),"");

    and this:
    EnterLong("");

    This is using a strategy that calculates OnBarUPdate not on each tick.

    I've already reset my database.

    Any suggestions?


    #2
    Hello halgo_boulder,

    You likely will need to use prints to see what part of your entry condition is not becoming true in that use case. The EnterLongStopLimit can be expired if not filled within the bar where the method was called, if a bar elapses and it has not filled it will expire unless your entry condition was still true and calls EnterLongStopLimit again to keep it alive. The EnterLong submits a market order which would fill immediately, if that is not being seen that indicates the entry condition was not true.

    We have a guide linked below that goes over using prints and also TraceOrders to see how your strategy is working.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X