Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Fill limit orders on touch

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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 ?

    #2
    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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    48 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X