I'm currently working on a costume strategy, I'm wondering why checking or not checking the "fill limit orders on touch" option leads to different results in my strategy analyzer. I'm using only market orders and a SetProfitTarget() and a SetStopLoss() in my code, do they get executed as limit orders ?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Fill limit orders on touch
Collapse
X
-
Fill limit orders on touch
Hello,
I'm currently working on a costume strategy, I'm wondering why checking or not checking the "fill limit orders on touch" option leads to different results in my strategy analyzer. I'm using only market orders and a SetProfitTarget() and a SetStopLoss() in my code, do they get executed as limit orders ?Tags: None
-
Hello aimuux,
Thank you for your post.
This setting determines if the strategy will use a more liberal fill algorithm for back-testing purposes only. Changing this setting will determine how orders fill which will change the results.
The default behavior of the strategy's fill algorithm is to fill a limit order once price has penetrated the limit price. However, this behavior can be changed by setting IsFillLimitOnTouch to true, in which case the strategy's fill algorithm will consider a limit order filled once price has reached the limit price, but does not necessarily need to trade through the limit price
A profit target is considered a limit order.
Please let us know if you have any further questions.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
43 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
21 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
30 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
50 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment