Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to make a limit order that follows price.

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

    How to make a limit order that follows price.

    How to make a limit order that follows price:
    EX: the price is 19100.00
    I place a sell limit order at 19098.00 and if the price goes up by X ticks then the order also goes up by X ticks. On the other hand, if the price falls, the order does not move and is executed.
    vice versa for buy order.
    THANKS

    #2
    Hello Tim-c,

    The logic for this behavior would be the same as trailing stop but using a buy limit order instead of a sell stop order.

    Set a variable to hold the next trigger price (number of ticks from average price, or last trail price), set a variable to hold the current limit price (number of ticks below entry price or last trail price). If the close price is greater than the next trigger price, set the next trigger price variable to the close price plus the number of ticks the trigger should occur, and set the limit price variable to close minus the number of ticks the limit should be below the market price.

    Below are links to examples that demonstrate this logic with a sell stop order. The logic would remain the same, but order type would be a buy limit order.

    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    132 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X