• 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 Brillo, Today, 07:04 PM
    0 responses
    4 views
    0 likes
    Last Post Brillo
    by Brillo
     
    Started by ttodua, Today, 01:12 AM
    2 responses
    20 views
    0 likes
    Last Post ttodua
    by ttodua
     
    Started by kujista, Today, 02:57 PM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by henord, Today, 02:40 PM
    6 responses
    31 views
    0 likes
    Last Post NinjaTrader_RyanS  
    Started by Johnny Santiago, Today, 01:57 PM
    1 response
    19 views
    0 likes
    Last Post NinjaTrader_RyanS  
    Working...
    X