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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    161 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    81 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    125 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    206 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    184 views
    0 likes
    Last Post CarlTrading  
    Working...
    X