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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        80 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 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
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X