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 CarlTrading, 03-31-2026, 09:41 PM
                1 response
                72 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by CarlTrading, 04-01-2026, 02:41 AM
                0 responses
                39 views
                0 likes
                Last Post CarlTrading  
                Started by CaptainJack, 03-31-2026, 11:44 PM
                0 responses
                63 views
                2 likes
                Last Post CaptainJack  
                Started by CarlTrading, 03-30-2026, 11:51 AM
                0 responses
                63 views
                0 likes
                Last Post CarlTrading  
                Started by CarlTrading, 03-30-2026, 11:48 AM
                0 responses
                53 views
                0 likes
                Last Post CarlTrading  
                Working...
                X