Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Real Time Trades vs not real time.

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

    Real Time Trades vs not real time.

    Im running into an issue where live trading doesnt line up with historical trades. When I load a strategy, Im seeing one result from previous trades that would have been taken but when its the strat is running and it catches a trade in real time, the result is completely different. Photos below are of the same trade but the first one is when i caught it real time, i reloaded the strategy and the second pic is what it shows now.

    Realtime trades (First picture), the condition is met and the short trades are taken at the top of the bar and exited at the top of a bar.

    Historical trades (Second Picture), the condition is met and the short takes place at the top of the bar and exit at bottom of a bar.

    I ideally want the second result if possible. The strat is set to onbarclose. Can someone help me understand what is going on, and is there a way to get the disired result with live trading as historical?

    Click image for larger version

Name:	image.png
Views:	116
Size:	78.3 KB
ID:	1237597Click image for larger version

Name:	image.png
Views:	106
Size:	62.9 KB
ID:	1237598​​​
    Attached Files

    #2
    Hello amigatlin,

    From the image it looks like you may be using a renko, if so that won't be accurate toward realtime when backtesting. Renko require realtime data to correctly build bars so the backtest will be different. You can use the playback connection to forward test renko which would provide more accurate results compared to realtime.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    80 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X