NexusFi: Find Your Edge


Home Menu

 





Get executions trades from the indicator.


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Taddypole with 10 posts (1 thanks)
    2. looks_two shodson with 5 posts (1 thanks)
    3. looks_3 aquarius with 2 posts (1 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
      Best Posters
    1. looks_one gregid with 1 thanks per post
    2. looks_two aquarius with 0.5 thanks per post
    3. looks_3 shodson with 0.2 thanks per post
    4. looks_4 Taddypole with 0.1 thanks per post
    1. trending_up 5,981 views
    2. thumb_up 4 thanks given
    3. group 7 followers
    1. forum 21 posts
    2. attach_file 9 attachments




 
Search this Thread

Get executions trades from the indicator.

  #21 (permalink)
 Jaba 
Austin TX
 
Experience: Intermediate
Platform: SaintGobain Crystal Ball
Trading: 6E
Posts: 81 since Oct 2010
Thanks Given: 103
Thanks Received: 134


Taddypole View Post
Last night I was looking at the trace file and found what I think will work. I was troubled because "ExecutionUpdateEventArgs" didn't have what I was looking for. But in the trace file I found there was another ExecutionUpdateEventArgs which is ExecutionUpdateEventArgs2. Refer to the attachment. It has the "Position" parameter that I want. Triggering on that even I will get the latest position information for the instrument I'm interested in.

I tried to add the code but during the compile I get an error. Does anyone know how to get "ExecutionUpdateEventArgs2" ?

regards,
taddypole...

There is no ExecutionUpdateEventArgs2. It is just the way NT writes to the trace log file.
You can get the Position from e.Execution.Position

If you want to find what other objects and data the ExecutionUpdateEventArgs object contains, in the event handler just type "e." without quotes, then press control+space, and you'll see the list of the objects.
I hope it helps
Jaba

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
Deepmoney LLM
Elite Quantitative GenAI/LLM
Build trailing stop for micro index(s)
Psychology and Money Management
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
ZombieSqueeze
Platforms and Indicators
 
  #22 (permalink)
 Taddypole 
Phoenix, Arizona
 
Experience: Advanced
Platform: Ninja Trader
Trading: Oil
Posts: 54 since Jul 2009
Thanks Given: 1
Thanks Received: 7

Thanks Jaba,

I didn't get the ExecutionUpdateEventArgs2 working since this is unrecognized which then does not allow doing the "e." exercise.

But with enough searching I did find what I was looking for.

In the attachment, I have found out how to get all the position information I want by account, instrument and position.

Its just a sample program where I worked out all the logic i needed for my more complex indicator.

regards,
taddypole...

Attached Files
Elite Membership required to download: SampleAccountAccess.cs
Reply With Quote
Thanked by:




Last Updated on July 23, 2015


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts