• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 genbrain9, Today, 10:30 PM
    0 responses
    3 views
    0 likes
    Last Post genbrain9  
    Started by lonechaos, Today, 07:02 PM
    0 responses
    11 views
    0 likes
    Last Post lonechaos  
    Started by YellingOption, Today, 03:25 PM
    0 responses
    17 views
    0 likes
    Last Post YellingOption  
    Started by 7robert, Today, 03:08 PM
    2 responses
    23 views
    0 likes
    Last Post 7robert
    by 7robert
     
    Started by ManTrader, Today, 03:00 PM
    2 responses
    9 views
    0 likes
    Last Post ManTrader  
    Working...
    X