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

Callback for Trades on a specific account

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

    Callback for Trades on a specific account

    Hello everyone,

    I am looking for a way to detect all trades going through one account and send e.g. an email with the specifics of the trade (entry / exit, ticks,...). Could this be done from an Indicator or an AddOn?

    Thank you all in advance.

    Kind regards,
    Victor

    #2
    Hello Devside_Victor,

    Thank you for your inquiry.

    To do this in an indicator you will need to subscribe to an account. After that is set up, you can get an Execution collection from the Account object. With the execution collection you can create "Trades", comprising of one entry execution and one exit execution. There isn't an overall TradeCollection for the account itself - that would only be available for strategies, so you'd have to pair up entries and exits on your own. If you simply want information on an execution sent, that'd be simpler. I've attached an example of emailing execution information to a configured Email Share Service.

    https://ninjatrader.com/support/help...ount_class.htm

    https://ninjatrader.com/support/help...executions.htm

    https://ninjatrader.com/support/help.../nt8/share.htm

    https://ninjatrader.com/support/foru...il-smtp-setups

    Please let us know if we may be of further assistance to you.
    Attached Files
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Hello Kate,

      Thank you very much.

      The attached indicator is exactly what I wanted.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ezrollin, Yesterday, 09:01 PM
      1 response
      18 views
      0 likes
      Last Post ezrollin  
      Started by FutTrader9000, Yesterday, 06:20 PM
      0 responses
      29 views
      0 likes
      Last Post FutTrader9000  
      Started by junkone, Yesterday, 05:48 PM
      0 responses
      23 views
      0 likes
      Last Post junkone
      by junkone
       
      Started by Futurestrader00, Yesterday, 05:10 PM
      1 response
      29 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by Gerik, 03-08-2021, 01:25 AM
      5 responses
      49 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Working...
      X