Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

variable stoploss

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

    #16
    Are you sure ? I have a couple old strategy in version 6 in which I used this method to change my profit target. Did something changed in version 7 ?

    And another thing, this profit target will be changing throughout the trading day. So I am looking to have a dynamic Target and stop.
    Last edited by trader413; 06-27-2011, 10:19 AM.

    Comment


      #17
      Tony, you would see that the value generated by this code would not make much sense :

      Value=0,00150152142480075

      You could for example use the price value and then enter the close + / - your ATR as an offset.

      Comment


        #18
        Bertrand, thank you for your reply. Could you please shortly write this one line? I have no idea what you mean.

        Thanks
        Tony

        Comment


          #19
          Tony, for example consider this snippet for longs as a starting point :

          double currAtr = ATR(14)[0];
          SetStopLoss(CalculationMode.Price, Close[0] - 3 * currAtr);

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          85 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          48 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          29 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          32 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          67 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X