Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Line Break Strategy
Collapse
X
-
Line Break Strategy
When backtesting a strategy on a linebreak chart, I have added a minute data series of the same instrument to get correct price fills. When running live and comparing against the backtest, the results are very similar (same number of trades, same direction), however, the trades occur a couple minutes (2-10) later.Tags: None
-
Hello samish18,
When you say the same values what specifically are you checking? Because you are testing forward in time you can't compare that directly with a historical bar to know the logic happened identically as it previously did, you could still check if your entry condition is becoming true and print the bar time at the time of the entry to see when it was physically submitted. That would be the best way to know if the delay of a few bars would be expected or not, you should be able to see the specific time the condition became true to compare with the chart. If the printed time matches the chart time then the strategy was performing as directed.
Comment
-
Hello samish18,
Are you printing that specifically when the condition became true? it would not be helpful to print that for every bar in this situation because you say there is a delay, you would need to isolate the 1 specific bar where the condition was true and print that time. Does that match the time the order is displayed on the chart?
Comment
-
Hello samish18,
If the time when the condition was true matches the execution that means that the order is being displayed correctly and is not delayed, the order was submitted and filled shortly after. Historically you should see the executions on the bar following the primary bar close based on how fill processing works and the time that the order will have in relation to the primary bar times.
Comment
-
Hello samish18,
Based on the information you have given that means the condition was true later. If the time you printed from the condition matches the chart there is no delay of bars, that was the bar where the condition happened. If that is different from the backtest that means the condition is happening on a different bar in the backtest.
This could also relate to the order type being used, if you are using a order like a limit to enter that will have to wait for the active market to reach that price to fill which could cause a delay in fill but that will be reflected in the print, You would see the print happened at a earlier time than the fill of the execution. From your description it sounds like the condition time matched the fill time so there was no delay in filling.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
53 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
130 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
70 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment