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 RaddiFX, Yesterday, 11:57 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Marco  
      Started by Tonofit, Today, 12:00 AM
      0 responses
      4 views
      0 likes
      Last Post Tonofit
      by Tonofit
       
      Started by ck6libra, Yesterday, 11:20 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by witipica, Yesterday, 10:02 PM
      1 response
      16 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Started by rtwave, Yesterday, 09:52 PM
      0 responses
      9 views
      0 likes
      Last Post rtwave
      by rtwave
       
      Working...
      X