Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit at 3-Target Levels

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

    Exit at 3-Target Levels

    Hello,
    Can Anyone help me how can i SELL my shares at 3-different levels.
    example : i purchased 200 shares @ 50
    i want to add to my automated strategy
    as target1: 100 @54, target2: 50 @56, & target3: 50 @57.
    and if only target 1 is achieved, i wanna exit with remaining 100 shares on trailing stop loss.
    or if target 1 and 2 is achieved and didn't reached 3rd target i wanna exit on trailing stop loss with remaining 50 shares.

    #2
    Hello Dev1005, and thank you for your question.

    The settings in the attached picture for NT8 (slate grey, left) and NT7 (light grey, right) will allow you to set up the ATM strategy you described. Please let us know if there are any other ways we can help.
    Attached Files
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      thanks but
      i think i didn't stated clearly, well i asked in coding

      protected override void Initialize()
      {
      SetProfitTarget("", CalculationMode.Price, 5);

      HERE I WANT 3-TARGET WITH TRAILING STOP LOSS and NUMBER OF SHARES in 3 different target
      }


      protected override void OnBarUpdate()
      {
      if(condition){
      EnterLong("");
      }
      }
      or should I Link SuperDOM with charts??
      Last edited by Dev1005; 11-18-2016, 02:39 PM.

      Comment


        #4
        My mistake. This can be accomplished using trade signals and an EntriesPerDirection equal to the number of stages you would like. I am attaching a strategy in which this is done. You will want to review the EnterLong, SetProfitTarget, and SetStopLoss documentation for trade signals, and the EntriesPerDirection documentation. Please let us know if there are any other ways we can help.




        Attached Files
        Last edited by NinjaTrader_JessicaP; 11-18-2016, 02:44 PM.
        Jessica P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        639 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        366 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        569 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        572 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X