Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
incorrect order fills (back testing)
Collapse
X
-
incorrect order fills (back testing)
why is it that when i enter protective stop via SetStopLoss() I'm getting incorrectly stopped out? example: xyz closes at 25.00 on a 5-min bar, i have order to go long at 26.00 via EnterLongStop(26.00,"long") and a stop loss order via SetStopLoss(CalculationMode.Price,25.50) if the market "opens@ 25.50 continues higher without returning to this level for day and reaching a intra-high of 28.00. On back tested results I'll show a fill at 26.00 and a stop loss at 25.50 even though the market traded at 25.50 prior to my EnterLongStop(26,"long") being executed and never returned back to this level! I wouldn't have had an open position when the market traded at 25.50 so therefore it's impossible for me to had been stopped out!Last edited by d.allen101; 11-13-2009, 02:16 PM.Tags: None
-
When you are backtesting you do not have intrabar granularity. You have no information on whether or not price retraced back down to that price and it could have very well done so. As such, if the price exists on the bar, it will stop you out to prevent overstating of your performance results.Josh P.NinjaTrader Customer Service
-
so in order to avoid this i would have to use multi-time frames? continue on generating the signal in the higher time frame i.e. 5-mins and execute the trades in lower time frame i.e. 1 min? so, if i add 1 bars and use 5 min bars as my primary bars and enter all orders in the lower time frame i.e. EnterLongStop(1,1,"long") and SetStopLoss("long",CalculationMode.Price,26.00,tru e) this should work fine?Last edited by d.allen101; 11-13-2009, 03:15 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
56 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
143 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
160 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
96 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
276 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment