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

    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 rajendrasubedi2023, Today, 09:50 AM
        2 responses
        14 views
        0 likes
        Last Post rajendrasubedi2023  
        Started by geddyisodin, Today, 05:20 AM
        4 responses
        28 views
        0 likes
        Last Post geddyisodin  
        Started by geotrades1, Today, 10:02 AM
        2 responses
        8 views
        0 likes
        Last Post geotrades1  
        Started by ender_wiggum, Today, 09:50 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by bmartz, Today, 09:30 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Erick  
        Working...
        X