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.
      BertrandNinjaTrader Customer Service

      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);
          BertrandNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by rhyminkevin, Today, 04:58 PM
          4 responses
          52 views
          0 likes
          Last Post dp8282
          by dp8282
           
          Started by iceman2018, Today, 05:07 PM
          0 responses
          5 views
          0 likes
          Last Post iceman2018  
          Started by lightsun47, Today, 03:51 PM
          0 responses
          7 views
          0 likes
          Last Post lightsun47  
          Started by 00nevest, Today, 02:27 PM
          1 response
          14 views
          0 likes
          Last Post 00nevest  
          Started by futtrader, 04-21-2024, 01:50 AM
          4 responses
          50 views
          0 likes
          Last Post futtrader  
          Working...
          X