Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Orders being executed outside the chart when backtesting
Collapse
X
-
Orders being executed outside the chart when backtesting
I was trying to figure out why my back testing results were so different from my live results, then I noticed a lot of my backtest positions are being opened outside of the chart (usually 3-4 pips below the low of the candle). I provided a screen shot for example. I am just opening up long positions using Ask data, so I wouldn't think it would be a spread issue. Any ideas or suggestions?
ThanksTags: None
-
Look in the execution tab. Did the trade really happen at 3:01? or 2:40 ?Originally posted by smoky1930 View PostI was trying to figure out why my back testing results were so different from my live results, then I noticed a lot of my backtest positions are being opened outside of the chart (usually 3-4 pips below the low of the candle). I provided a screen shot for example. I am just opening up long positions using Ask data, so I wouldn't think it would be a spread issue. Any ideas or suggestions?
Thanks
Comment
-
Thank you for the response,Originally posted by NinjaTrader_PatrickH View PostHello smoky1930,
Thank you for your post and welcome to the NinjaTrader Support Forum!
What order type is used for these entries?
In the Strategy Analyzer parameters for the test what is your Historical Fill Type and Slippage set to?
I look forward to your response.
They are market orders. Fill type is set to default, and slippage is set to 0.
According to the executions, it did really happen at 3:00.Originally posted by sledge View PostLook in the execution tab. Did the trade really happen at 3:01? or 2:40 ?
Comment
-
I'm looking at ThinkOrSwim onDemand for AUD/NZD at this hour 03:00 and examining the ASK price.Originally posted by smoky1930 View PostThank you for the response,
They are market orders. Fill type is set to default, and slippage is set to 0.
According to the executions, it did really happen at 3:00.
It looks to me like your ninja CHART is off 1 hour for whatever reason.
The 02:00am should be 03:00am, and your trades would make sense.
I'm in EST timezone. Do you have daylight savings time turned on/off on your local PC?
Comment
-
-
The bid price at 03:00 am is 1.0786, which is off your chart at 02:00am.Originally posted by smoky1930 View PostOn a hunch, I added a DrawLine from the high to low on each bar, and here is what I got. This is very strange, it is almost like our orders are being executed on the bid price, but the chart is showing the ask price.
Comment
-
I can't seem to find how to do that, could you point me in the direction?Originally posted by sledge View PostThe trade belongs on the chart over here.
Or your chart needs shifted +1
I did try changing my timezone to eastern and rebuilding my historical data, and while I am seeing the executions in different locations now, I am still seeing the same phenomena.
Thanks
Comment
-
Hello smoky1930,
Thank you for your response.
You are correct, executions to sell are at Bid and executions to buy are at Ask. I am not sure what is occurring here on your charts, but your system time should match your data from your data feed provider. Can you send your database file to support[at]ninjatrader[dot]com with 'ATTN: Patrick - 1080870' in the subject line?
You can do this by going to the Control Center-> Help-> Mail to Support-> ensure the Database option is enabled.
Comment
-
Originally posted by NinjaTrader_PatrickH View PostHello smoky1930,
Thank you for your response.
You are correct, executions to sell are at Bid and executions to buy are at Ask. I am not sure what is occurring here on your charts, but your system time should match your data from your data feed provider. Can you send your database file to support[at]ninjatrader[dot]com with 'ATTN: Patrick - 1080870' in the subject line?
You can do this by going to the Control Center-> Help-> Mail to Support-> ensure the Database option is enabled.
I sent the database, Thank you.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
574 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment