Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Commission in %

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

    Commission in %

    I'm trying to do a backtest in where I want a comission based on a percentage.
    As far as I can see there is no support for this setting.

    Are there ways to work around this in a simulator environment?

    Maybe a way to overwrite the current commission in an OnBarUpdate?

    Is there a way to get this working with custom code, if so, where should I be looking?

    #2
    Hello Connex,

    Thank you for your post.

    You would need to create you own logic that would calculate the percentage commission rate that you can then Print(); and check.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      I understand I need to do it manually.

      But is there a variable or function i could overwrite / call that is able to change the commision during the backtest itself?

      Where should this "logic" be placed?

      Comment


        #4
        connex, would unfortunately not be aware of any undocumented workarounds to set this dynamically. You would need to basically run custom performance stats/calcs that would reflect your % commission approach then. This is an item we have on our feedback list and I've made sure to note a vote on your behalf as well.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        216 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        130 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        147 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        230 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        192 views
        0 likes
        Last Post CarlTrading  
        Working...
        X