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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          72 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          39 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          63 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          63 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          53 views
          0 likes
          Last Post CarlTrading  
          Working...
          X