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 DannyP96, 05-18-2026, 02:38 PM
          1 response
          27 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          117 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          69 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          226 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          417 views
          0 likes
          Last Post CaptainJack  
          Working...
          X