Announcement

Collapse
No announcement yet.

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?

    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.

        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.

            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.

                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 Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  571 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  331 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  101 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  549 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  549 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X