Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 andrewtrades, Today, 04:57 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        5 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        7 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X