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 CarlTrading, Yesterday, 09:41 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    31 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    30 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    34 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    19 views
    0 likes
    Last Post CaptainJack  
    Working...
    X