Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Auto trail 1 step breakeven Stop Loss

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

    Auto trail 1 step breakeven Stop Loss

    Hello, how can I programm a Stop loss what trails automatic until its breakeven and then no trail anymore?

    #2
    Hello Uregon,

    A good starting point would be to view both of the samples in the following forum post:



    These samples demonstrate both concepts you are asking about individually.

    For what you are asking you would need to combine both concepts.

    To keep trailing until the break even would require checking the trailing condition in addition to the opposite of the breakeven condition. In the break even sample it shows how to check if the price is greater than the average price before doing a break even. Your trailing condition would need to make sure the price is less than the average price to work. Once the price moves past the break even price that would stop the trailing condition from working.

    Those samples also demonstrate a few core concepts such as how to calculate prices for orders, re submitting orders to keep them alive, trailing/breakeven and using variables to control which Sets are currently being used.

    Comment

    Latest Posts

    Collapse

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