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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        579 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X