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 alifarahani, Today, 09:40 AM
          3 responses
          15 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by RookieTrader, Today, 09:37 AM
          4 responses
          18 views
          0 likes
          Last Post RookieTrader  
          Started by PaulMohn, Today, 12:36 PM
          0 responses
          5 views
          0 likes
          Last Post PaulMohn  
          Started by love2code2trade, 04-17-2024, 01:45 PM
          4 responses
          40 views
          0 likes
          Last Post love2code2trade  
          Started by junkone, Today, 11:37 AM
          3 responses
          26 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X