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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        100 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        56 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        24 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        35 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        38 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X