NexusFi: Find Your Edge


Home Menu

 





Getting the Commission for an Instrument


Discussion in NinjaTrader

Updated
    1. trending_up 4,190 views
    2. thumb_up 4 thanks given
    3. group 1 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,959 since Dec 2010
Thanks Given: 3,055
Thanks Received: 2,414

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,


Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: [wiki=NT-Local-Order-Manager-LOM-Guide][/wiki]
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Building a free browser DOM/SMC simulator - need some ad …
Platforms and Indicators
What we know about Binances $6.3bn hack - BBC News
Cryptocurrency
AI for Traders — Agents, Memory, Tools & Real-Worl …
Elite Quantitative GenAI/LLM
My Rant with AMP Futures
Trading Reviews and Vendors
No book, only a stair: journaling fills where price move …
Cryptocurrency
 
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 R.I.P. 1977-2026 
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,599



NJAMC View Post
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




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,959 since Dec 2010
Thanks Given: 3,055
Thanks Received: 2,414


Big Mike View Post
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!


Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: [wiki=NT-Local-Order-Manager-LOM-Guide][/wiki]
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #5 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 R.I.P. 1977-2026 
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,599


NJAMC View Post
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




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #6 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,959 since Dec 2010
Thanks Given: 3,055
Thanks Received: 2,414


Big Mike View Post
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,


Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: [wiki=NT-Local-Order-Manager-LOM-Guide][/wiki]
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #7 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,959 since Dec 2010
Thanks Given: 3,055
Thanks Received: 2,414

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.


Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: [wiki=NT-Local-Order-Manager-LOM-Guide][/wiki]
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:




Last Updated on January 27, 2012


© 2026 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 - Downloads - Top
no new posts