Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get Instrument Commission in indicator code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Get Instrument Commission in indicator code

    OK, this is not the usual "How do I apply commissions" query.

    I am trying to pull the commission as set by the account's commission template in my indicator for the instrument on the chart (don't ask why !!). Tried using AccountItem.Commission... but that does not return the right thing, and in any case is generic. I figure there must be a way to pull what is applied at the master instrument level...so eg where commission for ES may be different than commission for say LB or whatever.

    Any pointers?

    Regards,

    #2
    Hello tgn55,

    I'm not aware of any methods to pull the commissions from a template from code. An unsupported way would be reading the xml file and parsing the information to pull the commissions out. However, this would not specify which commission template is applied to a specific account.

    But you can get the commission amount applied to an execution.
    https://ninjatrader.com/support/foru...267#post735267
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    62 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    40 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    21 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    23 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    51 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X