• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Scaling out of position

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

    Scaling out of position

    I would like to program the logic below using Strategy Builder:

    If Initial profit target is made, sell half the position.
    For rest of the position, enter an ( Order cancel Order ) order where
    first order for new profit at higher level
    second order is for new stop where stop is moved up to my breakeven level.
    Execution of one order should cancel another order.

    Example:
    Enter long at ES 1950 with 2 contracts with stop 1948
    Limit sell on 1 contract at 1952
    Enter two new order for remaining contract:
    Limit sell at 1954 or
    Stop sell at 1950

    Is this possible in Strategy builder?

    #2
    Hello myrx100,

    Thank you for your post.

    An order submission condition based on the fill of another order would require using OnExecution() and this would require unlocking the code. For information on OnExecution() please visit the following link: http://www.ninjatrader.com/support/h...nexecution.htm
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      Thanks for answer. I am not ready to program in C# yet, I only know Java.
      In the mean time, is it possible to invoke this method from Strategy builder wizard?

      Comment


        #4
        myrx100,

        The OnExecution() method is not available in the Strategy Wizard
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cassiano_sanches, Today, 07:37 PM
        0 responses
        6 views
        0 likes
        Last Post cassiano_sanches  
        Started by terminatorT1000, Today, 06:40 PM
        0 responses
        5 views
        0 likes
        Last Post terminatorT1000  
        Started by Giudiver, Today, 04:29 PM
        0 responses
        7 views
        0 likes
        Last Post Giudiver  
        Started by mlarocco, 03-03-2018, 03:54 PM
        12 responses
        1,299 views
        0 likes
        Last Post SawDr
        by SawDr
         
        Started by TakingStock12, Today, 04:05 PM
        2 responses
        15 views
        0 likes
        Last Post NinjaTrader_ShawnB  
        Working...
        X