Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Commission settings question

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

    Commission settings question

    I wanted to set the commission as a rate of the trade size... is it possible?

    With certain brokers, calculating the commission is more complex than just setting a minimum and/or some commissions levels, especially when the commission is function of the deal size.

    Could this be done using a script which catches every trade and calculate the commission?

    #2
    Hello,

    NT has great flexibility in how commissions are calculated. Please review this link:


    Yes, you can do what you want.
    DenNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Ben View Post
      Hello,

      NT has great flexibility in how commissions are calculated. Please review this link:


      Yes, you can do what you want.
      How could I access the current account value to subtract commission then?

      My commission is:
      commission = dealSize * 0.00005 * EUR_USD_rate

      I guess I would need to intercept this inside OnExecution() event.

      Comment


        #4
        What value are you trying to get? NinjaScript strategies do not keep track of your brokerage account value.

        dealSize would just be however many quantity you purchased no? You can save this value from your own code.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Josh View Post
          What value are you trying to get? NinjaScript strategies do not keep track of your brokerage account value.

          dealSize would just be however many quantity you purchased no? You can save this value from your own code.
          But then I need to subtract it from my account value... that's why I need to access it... so it could be kept into account on my performances.

          Comment


            #6
            Hi Marzullo, accessing account balance info in NinjaScript strategies is unfortunately not supported.

            Comment


              #7
              Originally posted by NinjaTrader_Bertrand View Post
              Hi Marzullo, accessing account balance info in NinjaScript strategies is unfortunately not supported.
              Is there any plan for this in future?
              Sounds I'll have to take trace of all my accounting manually writing to files...

              Comment


                #8
                Thanks for the reply - this functionality is already on our list for future consideration.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by NullPointStrategies, Today, 05:17 AM
                0 responses
                41 views
                0 likes
                Last Post NullPointStrategies  
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                124 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                64 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                41 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                46 views
                0 likes
                Last Post TheRealMorford  
                Working...
                X