Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to get commission?

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

    How to get commission?

    Hello,

    I have the following code to get commission, sometimes it gets it, sometimes not.

    How can I reliably get the commission?

    Many Thanks, Caesar.

    Code:
                            Trade LastTrade;
    
                            // Get comission
                            if (SystemPerformance.AllTrades.Count > 0)
                            {
                                LastTrade = SystemPerformance.AllTrades[SystemPerformance.AllTrades.Count - 1];
                                Commission = LastTrade.Commission * 2;
                            }
    ​

    #2
    Hello Skechers,

    That would be the way to get the commission for a specific trade. Are you seeing the correct commission reported in the strategies performance report?

    Comment


      #3
      Hi Jesse,

      The strategy performanve report shows $0.00 as the commission.

      Is there a configuration setting I need to set?

      Many Thanks, Caesar.

      Comment


        #4
        Never mind, I had just reinstalled NT and the commission setting was blank ... all is well.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        43 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        21 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        30 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        50 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Working...
        X