Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Getting the Commission for an Instrument
Updated January 28, 2012
trending_up
3,390 views
thumb_up
4 thanks given
group
1 followers
forum
6 posts
attach_file
0 attachments
Getting the Commission for an Instrument
January 26th, 2012, 09:59 PM
Atkinson, NH USA
Market Wizard
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395
Hi all,
I have seen it done before. I am trying to find the reference to the commission for the current instrument within a strategy. I think it is out of the Instrument.xxx methods, but can't seem to find it. Does anyone know off hand?
Thanks,
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
January 26th, 2012, 11:22 PM
Manta, Ecuador
Site Administrator Developer Swing Trader
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,470 since Jun 2009
Thanks Given: 33,249
Thanks Received: 101,673
NJAMC
Hi all,
I have seen it done before. I am trying to find the reference to the commission for the current instrument within a strategy. I think it is out of the Instrument.xxx methods, but can't seem to find it. Does anyone know off hand?
Thanks,
Can't recall exactly, but check intellisense on Master.Instrument, it is there.
Mike
January 27th, 2012, 03:47 PM
Atkinson, NH USA
Market Wizard
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395
Big Mike
Can't recall exactly, but check intellisense on Master.Instrument, it is there.
Mike
Thanks Mike!
I did a little hunting in that area and found this:
Instrument.MasterInstrument.Commission
I will test it later, but this looks like the right one!
January 27th, 2012, 03:50 PM
Manta, Ecuador
Site Administrator Developer Swing Trader
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,470 since Jun 2009
Thanks Given: 33,249
Thanks Received: 101,673
NJAMC
Thanks Mike!
I did a little hunting in that area and found this:
Instrument.MasterInstrument.Commission
I will test it later, but this looks like the right one!
There you go. I was a little off, it's been a while and memory isn't so good it seems
Mike
January 27th, 2012, 03:55 PM
Atkinson, NH USA
Market Wizard
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395
Big Mike
There you go. I was a little off, it's been a while and memory isn't so good it seems
Mike
You still had a clue where to look... MasterInstrument is the key....
Thanks again,
January 27th, 2012, 09:52 PM
Atkinson, NH USA
Market Wizard
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395
Wow,
After fooling around with the "Instrument." for about 2 hours, I think I figured out how to get the commission. It seems to be this:
Instrument.MasterInstrument.GetCommission(1,Instrument.MasterInstrument.Commission.ProviderCommissions[0].Provider)
Ouch.... I figured I would put it here in case anyone (probably me) needs to find this value again!
This is the one way commission, double it for round trip. Set the "1" to the number of contracts for futures.
Last Updated on January 27, 2012