Get executions trades from the indicator. (Page 3) - NinjaTrader Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

Get executions trades from the indicator.
Started:April 23rd, 2015 (03:38 PM) by Sevas Views / Replies:1,197 / 21
Last Reply:July 23rd, 2015 (12:20 AM) Attachments:9

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Get executions trades from the indicator.

Old July 22nd, 2015, 07:09 PM   #21 (permalink)
Elite Member
Austin TX
Futures Experience: Intermediate
Platform: SaintGobain Crystal Ball
Favorite Futures: 6E
Posts: 74 since Oct 2010
Thanks: 101 given, 121 received

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" ?


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

Reply With Quote

Old July 23rd, 2015, 12:20 AM   #22 (permalink)
Elite Member
Phoenix, Arizona
Futures Experience: Advanced
Platform: Ninja Trader
Favorite Futures: Oil
Posts: 52 since Jul 2009
Thanks: 1 given, 6 received

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.


Attached Files
Register to download File Type: cs SampleAccountAccess.cs (14.7 KB, 12 views)
Reply With Quote
The following user says Thank You to Taddypole for this post:

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Get executions trades from the indicator.

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proper Sequence of Executions arashf EasyLanguage Programming 4 September 24th, 2014 11:35 PM
Input executions into NinjaTrader Camdo NinjaTrader 3 May 4th, 2014 05:48 PM
All days executions alexbbfg NinjaTrader Programming 1 January 18th, 2014 11:45 AM
Import Executions into NT7 Fadi NinjaTrader 5 December 8th, 2013 09:25 AM
Why do executions appear to be diff related to bars after NT restart DabaDave Traders Hideout 2 June 15th, 2010 02:26 PM

All times are GMT -4. The time now is 07:41 PM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-24 in 0.08 seconds with 20 queries on phoenix via your IP