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.
            BertrandNinjaTrader Customer Service

            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.
                BertrandNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by fernandobr, Today, 09:11 AM
                1 response
                3 views
                0 likes
                Last Post NinjaTrader_Erick  
                Started by timmbbo, Today, 08:59 AM
                1 response
                2 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by KennyK, 05-29-2017, 02:02 AM
                2 responses
                1,281 views
                0 likes
                Last Post marcus2300  
                Started by itrader46, Today, 09:04 AM
                1 response
                6 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Started by bmartz, 03-12-2024, 06:12 AM
                5 responses
                33 views
                0 likes
                Last Post NinjaTrader_Zachary  
                Working...
                X