Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy: Move stop to break even + n pips

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

    Strategy: Move stop to break even + n pips

    Hi,

    I followed instructions in this thread to modify a stop loss to break even when n pips unrealized profit:


    This works perfectly fine. I can't though figure out how to move the stop to break even + n pips (example break even + 2 pips). Could anyone help me in the right direction?

    Thanks in advance!

    br,
    Chris

    EDIT: Excuse my stupidity, as simple as this:

    SetStopLoss(CalculationMode.Price, Position.AveragePrice +1 * TickSize);
    Last edited by suroot; 08-02-2017, 07:03 AM.

    #2
    Hello,

    Thank you for the post.

    I am reviewing your inquiry and will be back with a reply shortly.

    I look forward to assisting further.

    Comment


      #3
      Hi,

      Thanks - but there is no need, since I figured it out and marked thread as solved with the answer to my question below.

      br,
      Chris

      Comment


        #4
        Can you please post how you did this Suroot?

        I am trying to figure out how to do this as well.

        Comment


          #5
          Hello Rogue_Two,

          suroot updated his original post with the answer to his question.

          SetStopLoss(CalculationMode.Price, Position.AveragePrice +1 * TickSize);
          Please let me know if I can clear anything up for you.

          Comment


            #6
            Thanks Chris.

            In this case is Position.AveragePrice the entry price of a position?

            Comment


              #7
              Hello Rogue_Two,

              That is correct. Documentation on this property can be found here:

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Mindset, 04-21-2026, 06:46 AM
              0 responses
              90 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by M4ndoo, 04-20-2026, 05:21 PM
              0 responses
              135 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
              120 views
              0 likes
              Last Post cmoran13  
              Started by PaulMohn, 04-10-2026, 11:11 AM
              0 responses
              69 views
              0 likes
              Last Post PaulMohn  
              Working...
              X