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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        172 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        88 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        128 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        208 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        185 views
        0 likes
        Last Post CarlTrading  
        Working...
        X