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 NullPointStrategies, Today, 05:17 AM
              0 responses
              43 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              124 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              65 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              42 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              46 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X