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 Kensonprib, 04-28-2021, 10:11 AM
    5 responses
    191 views
    0 likes
    Last Post Hasadafa  
    Started by GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,230 views
    0 likes
    Last Post xiinteractive  
    Started by andrewtrades, Today, 04:57 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    7 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    441 views
    0 likes
    Last Post Delerium  
    Working...
    X