Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Commissions

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

    Commissions

    I have a strategy that I would like to use for both stocks and futures. These have different commissions. Ideally, I'd like to get the program to get the commission fee, and make sure that the position made a profit before exiting. Can this be done, or I just have to hard code the commission fee?

    I'm using TD Ameritrade.

    #2
    Hello CriticalMind,

    Thanks for your post.

    While this is undocumented you can obtain commissions via:

    Instrument.MasterInstrument.GetCommission(1, Account.Connection.Options.Provider)

    Please see this thread: http://ninjatrader.com/support/forum...ht=commissions

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    659 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    374 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    579 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X