Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

"OnExecutionUpdate()" "OnPositionUpdate()" functionality for indicator domain ?

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

    "OnExecutionUpdate()" "OnPositionUpdate()" functionality for indicator domain ?

    Hello NT8:

    I would like to create an indicator that writes to a text file the details of any order entry I invoke manually on a chart(using ATM strategies). Is there equivalent functionality of "OnExecutionUpdate()" "OnPositionUpdate()" that I can use from within an indicator ?

    (Its a little murky if I try to do the same thing with a strategy. For example, I notice when I manually close all positions, the strategy is disabled. Also the above functions do not seem to be called within the strategy if I manually invoke a position within the chart using chart trader. Hope this is not too confusing what I am trying to clarify)


    From OnpositionUpdate() DOCUMENTATION:
    ----------------------------------------------------------------------
    Notes:

    •You will NOT receive position updates for manually placed orders, or orders managed by other strategies (including any ATM strategies) in OnPositionUpdate(). The Account class contains a pre-built event handler (PositionUpdate) which can be used to filter position updates on a specified account.




    Last edited by pvtrader; 10-06-2020, 06:54 PM.

    #2
    On closer examination I think I can achieve what I want to do with "PositionUpdate" and "OrderUpdate"

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Option Whisperer, Today, 09:55 AM
    0 responses
    2 views
    0 likes
    Last Post Option Whisperer  
    Started by geddyisodin, 04-25-2024, 05:20 AM
    8 responses
    58 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by halgo_boulder, 04-20-2024, 08:44 AM
    2 responses
    21 views
    0 likes
    Last Post halgo_boulder  
    Started by mishhh, 05-25-2010, 08:54 AM
    19 responses
    6,189 views
    0 likes
    Last Post rene69851  
    Started by gwenael, Today, 09:29 AM
    0 responses
    5 views
    0 likes
    Last Post gwenael
    by gwenael
     
    Working...
    X