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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    75 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    146 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    79 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    50 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    54 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X