Get executions trades from the indicator. - NinjaTrader Programming | futures io social day trading
futures io futures trading


Get executions trades from the indicator.
Updated: Views / Replies:1,761 / 21
Created: by Sevas Attachments:9

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 9  
 
Thread Tools Search this Thread
 

Get executions trades from the indicator.

  #11 (permalink)
 Vendor: www.probabletrades.com 
OC, California, USA
 
Futures Experience: Advanced
Platform: IB/TWS, NinjaTrader, thinkorswim
Favorite Futures: stocks, options, futures, VIX
 
shodson's Avatar
 
Posts: 1,859 since Jun 2009
Thanks: 480 given, 3,254 received

put a "var" in front of the "account = " on line 3463. you have to declare that account is a variable before you start trying to use it. that should make the other problems go away

Reply With Quote
 
  #12 (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 Shodson,

but I still get a few compile errors. See attachment.

thank you,
taddypole...

Attached Thumbnails
Get executions trades from the indicator.-complieerrors2.jpg  
Reply With Quote
 
  #13 (permalink)
Elite Member
Phoenix, Arizona
 
Futures Experience: Advanced
Platform: Ninja Trader
Favorite Futures: Oil
 
Posts: 52 since Jul 2009
Thanks: 1 given, 6 received


Added the EventHandlers.. I think that's what they are...and cleared up the previous compile errors. But now one of the EventHandlers seems to have a syntax problem. See attached....

regards,
taddypole...

Attached Thumbnails
Get executions trades from the indicator.-complieerrors3.jpg  
Reply With Quote
 
  #14 (permalink)
Elite Member
Monterrey, Mexico
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: Treasuries
 
aquarius's Avatar
 
Posts: 22 since Nov 2012
Thanks: 5 given, 69 received

remove prints to troubleshoot ...


Taddypole View Post
Added the EventHandlers.. I think that's what they are...and cleared up the previous compile errors. But now one of the EventHandlers seems to have a syntax problem. See attached....

regards,
taddypole...

You can quick-try commenting out lines 5826 and 5832 (from your attached image..) or just simply remove the Print statements there...

Reply With Quote
 
  #15 (permalink)
Elite Member
Phoenix, Arizona
 
Futures Experience: Advanced
Platform: Ninja Trader
Favorite Futures: Oil
 
Posts: 52 since Jul 2009
Thanks: 1 given, 6 received

Ok... kind of got all that working enough to find out the "MarketPosition" is not the parameter that I want. It does something strange. When I enter long... MarketPosition is "Long". that's good. But when I close that position, MarketPosition says "Short". And when I'm flat, there are no more MarketPosition updates using PositionUpdate.

So I'm back to looking at Executions and focusing on "Position" in the most recent Execution update. The Positiion parameter is numerical and represents a negative or positive number for short or long and zero if flat. But I need to select the most recent execution from the collection and still not sure how to do that.

I've been looking at LinQ methods but no idea which syntax to use.

regards,
taddypole...

Attached Thumbnails
Get executions trades from the indicator.-executionpositioninformation.jpg   Get executions trades from the indicator.-codeforposition.jpg  
Reply With Quote
 
  #16 (permalink)
 Vendor: www.probabletrades.com 
OC, California, USA
 
Futures Experience: Advanced
Platform: IB/TWS, NinjaTrader, thinkorswim
Favorite Futures: stocks, options, futures, VIX
 
shodson's Avatar
 
Posts: 1,859 since Jun 2009
Thanks: 480 given, 3,254 received


Taddypole View Post
Thanks Shodson,

but I still get a few compile errors. See attachment.

thank you,
taddypole...

It's too hard to help you because you're too inexperienced with programming. You should learn C# and some object-oriented programming before trying to get good at Ninjascript.

C# Fundamentals for Absolute Beginners

Reply With Quote
 
  #17 (permalink)
Elite Member
Melbourne
 
Futures Experience: None
Platform: NinjaTrader
Broker/Data: Amp/CQG
Favorite Futures: •/$
 
shuglu's Avatar
 
Posts: 65 since Jul 2012
Thanks: 288 given, 84 received

https://futures.io/elite-circle/32667-chartminder-chart-trade-journaling.html

Reply With Quote
 
  #18 (permalink)
Elite Member
Phoenix, Arizona
 
Futures Experience: Advanced
Platform: Ninja Trader
Favorite Futures: Oil
 
Posts: 52 since Jul 2009
Thanks: 1 given, 6 received


shodson View Post
It's too hard to help you because you're too inexperienced with programming. You should learn C# and some object-oriented programming before trying to get good at Ninjascript.

C# Fundamentals for Absolute Beginners

I really appreciate your help Shodson, but just to let you know, I'm not a complete beginner. I've been learning C# since I first started working with NinjaTrader 3 years ago. I've learned a lot, but being in an unsupported area of NinjaScript makes this part more difficult. Ive done a few things with collections before but they are not second nature to me. I just need bread crumbs to keep my going the the right direction.

regards,
taddypole...

Reply With Quote
 
  #19 (permalink)
Elite Member
Phoenix, Arizona
 
Futures Experience: Advanced
Platform: Ninja Trader
Favorite Futures: Oil
 
Posts: 52 since Jul 2009
Thanks: 1 given, 6 received



ShuGlu,

Thanks for the great reference. That will help a lot.

regards,
taddypole...

Reply With Quote
 
  #20 (permalink)
Elite Member
Phoenix, Arizona
 
Futures Experience: Advanced
Platform: Ninja Trader
Favorite Futures: Oil
 
Posts: 52 since Jul 2009
Thanks: 1 given, 6 received


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...

Attached Thumbnails
Get executions trades from the indicator.-executionupdateeventargs2.jpg   Get executions trades from the indicator.-tracewithexecutionupdateeventargs2.jpg  
Reply With Quote

Reply



futures io > > > > > 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)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

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


All times are GMT -4. The time now is 03:12 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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 2017-12-11 in 0.12 seconds with 20 queries on phoenix via your IP 54.226.172.30