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 MarionCron, Yesterday, 11:43 PM
      0 responses
      2 views
      0 likes
      Last Post MarionCron  
      Started by kaywai, Yesterday, 11:20 PM
      0 responses
      1 view
      0 likes
      Last Post kaywai
      by kaywai
       
      Started by JodieThur, Yesterday, 11:11 PM
      0 responses
      2 views
      0 likes
      Last Post JodieThur  
      Started by cryfgg, Yesterday, 06:01 PM
      0 responses
      18 views
      0 likes
      Last Post cryfgg
      by cryfgg
       
      Started by Tremblinghandtrader, Yesterday, 04:56 PM
      0 responses
      34 views
      0 likes
      Last Post Tremblinghandtrader  
      Working...
      X