Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Stop doesn`t work through backtesting
Collapse
X
-
Hello vitaleg,
For checking strategy order submission issues, please view TraceOrders output. Add this line to Initialize method:
TraceOrders = true;
Then, view output through Tools > Output window.
Currently there's not enough information to determine why those orders did not fill. As a start please let us know how they are defined and the series you are backtesting against.Ryan M.NinjaTrader Customer Service
-
You're submitting your stop loss order at .05 as mode price. This submits a stop loss order at .05.
If you intened to submit them at .05 from entry price you may need to adjust this to calculation mode ticks and use a value of 5.
Also, set ExitOnClose = false to prevent closing at the end of the day.Last edited by NinjaTrader_RyanM1; 08-16-2010, 02:49 PM.Ryan M.NinjaTrader Customer Service
Comment
-
You can't perform this type of math in the strategy wizard. You'd have to work with code directly, and then understand that this type of statement couldn't be set in the Initialize method.
You would have to work closely with this reference sample:
That will help you set an initial value when flat and then a different value(based off range) when you are in a position.Ryan M.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, Yesterday, 09:41 PM
|
1 response
21 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, Today, 02:41 AM
|
0 responses
7 views
0 likes
|
Last Post
by CarlTrading
Today, 02:41 AM
|
||
|
Started by CaptainJack, Yesterday, 11:44 PM
|
0 responses
18 views
1 like
|
Last Post
by CaptainJack
Yesterday, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
35 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
33 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|


Comment