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

OnExecution

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

    OnExecution

    Hi,

    I would like to know all the possible values for execution.Name inside the OnExecution eventhandler.

    I know there is:

    - stop loss
    - profit target

    But for example when I close some order manually, what is the value then?

    #2
    siroki, the strategy OnExecution() would not be triggered for a manual order - it would be deailing with execution tied to this strategy instance only. What scenario are you trying to pickup?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks for your reply.

      I'm running a strategy but sometimes I want to intervene and manually shift TP or SL or even close the order. I want to set some variables in that case.

      Maybe use the OnPositionUpdate?

      Comment


        #4
        But then you would modify a strategy generated order? The change will be applied (even-though we don't recommend that approach and intervening with NS strategy orders), though you would not get feedback that it was a manual interaction.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Yes at some point I want to intervene with a NT generated order strategy. Example: when central bank news is unexpectedly released and the prices moves in the opposite direction.

          Maybe in thise case I would have to look into the unmanaged approach?

          Comment


            #6
            Understand, yes either that or call ATM strategy template for real-time execution then. This way you could directly work the script started ATM strategy on your order entry interfaces.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Oh, but I'm not closing the position directly in my broker. I'm already using the ATM to intervene! So back to my first question Can I use OnExecution with ATM and if so what is the execution.Name for CLOSE in ATM?

              Comment


                #8
                Ok then you're good on the manually modifying the orders, but the ATM's would not have the more advanced method feedback either.
                BertrandNinjaTrader Customer Service

                Comment


                  #9
                  Ok well. Then I guess I just have to intervene and turn off the strategy for that day. Thanks for your help.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by algospoke, Today, 06:40 PM
                  0 responses
                  10 views
                  0 likes
                  Last Post algospoke  
                  Started by maybeimnotrader, Today, 05:46 PM
                  0 responses
                  8 views
                  0 likes
                  Last Post maybeimnotrader  
                  Started by quantismo, Today, 05:13 PM
                  0 responses
                  7 views
                  0 likes
                  Last Post quantismo  
                  Started by AttiM, 02-14-2024, 05:20 PM
                  8 responses
                  169 views
                  0 likes
                  Last Post jeronymite  
                  Started by cre8able, Today, 04:22 PM
                  0 responses
                  10 views
                  0 likes
                  Last Post cre8able  
                  Working...
                  X