Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Modelling commissions as a percent of the value traded

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

    Modelling commissions as a percent of the value traded

    Hello,

    I see that the commission per instrument / instrument type can be specified as a per unit absolute value and together with a minimum commission. I would like to have commissions calculated instead as a percentage of the purchase price. How can I do this? I would be happy to code this myself in a Ninjascript strategy, but cannot find the relevant object to reference.

    I appreciate any direction.

    Many thanks!

    #2
    Hello cfq20,

    Thank you for the post.

    For the commission templates and the Commission fields which you see in the platform the only options surrounding that would be as you mentioned or per unit/minimum. If you wanted to calculate a commission based on a percent of the purchase price you could do that in your own logic however that would not be reported as "Commission" in the platform. That would just be your custom variable in your code controlling your logic at that point. If you want to still utilize the commission when doing tests or while using the simulator you would need to continue using per unit or minimum commissions.

    I look forward to being of further assistance.

    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by tgn55, Today, 09:51 PM
    0 responses
    1 view
    0 likes
    Last Post tgn55
    by tgn55
     
    Started by cxxazssx, Today, 09:45 PM
    0 responses
    1 view
    0 likes
    Last Post cxxazssx  
    Started by southpacific001, 02-26-2021, 09:25 PM
    14 responses
    63 views
    0 likes
    Last Post REI140205  
    Started by punkiy2111, Today, 05:22 PM
    0 responses
    3 views
    0 likes
    Last Post punkiy2111  
    Started by secrettrader, Today, 03:36 PM
    0 responses
    8 views
    0 likes
    Last Post secrettrader  
    Working...
    X