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 jxs_xrj, 01-12-2020, 09:49 AM
                  5 responses
                  3,289 views
                  1 like
                  Last Post jgualdronc  
                  Started by Touch-Ups, Today, 10:36 AM
                  0 responses
                  5 views
                  0 likes
                  Last Post Touch-Ups  
                  Started by geddyisodin, 04-25-2024, 05:20 AM
                  8 responses
                  61 views
                  0 likes
                  Last Post NinjaTrader_Gaby  
                  Started by Option Whisperer, Today, 09:55 AM
                  0 responses
                  5 views
                  0 likes
                  Last Post Option Whisperer  
                  Started by halgo_boulder, 04-20-2024, 08:44 AM
                  2 responses
                  24 views
                  0 likes
                  Last Post halgo_boulder  
                  Working...
                  X