MultiCharts 12 is here with the Super Hot Summer Offer!
+1 888 340 6572

Calculation of the commission on turnover in PowerLanguage

Description

To test strategies taking the commission at broker into account, we need to include commission in the code. At the moment we cannot calculate commission on turnover and use it in the trading system.

Steps to reproduce this issue

Please add an operator to calculate the commission on turnover in PowerLanguage.

For example:

We buy for 1000 dollars and sell for 1500 dollars, the turnover is 2500 dollars. Then we introduce a variable with commission equal to 0.1 % of turnover. After every trade the value of commission is subtrackted from the turnover.
1000 - 10  = 990
1500 -  15 = 1485
2500 - 25 = 2475

#0
geizer (geizer)
Nov 09, 2010 - 08:20

Wow, can't believe my eyes I am looking at the first ever post in russian.
Just out of curiosity I tried google translate
service and the result came surprisingly accurate (with very slight
editing).
Google translate did not do a good job at translating the issue title, so this obe required some manual work. Anyways,here is the translation for those who can't read
russian:

Good day! Necessary to test the strategies with respect to brokerage mortgage brokerage commission merchant code.
At the moment there is no way to calculate the commission on turnover and take it into account when designing a trading system.

How to reproduce:

You must enter a easy language operator to calculate the commission of the turnover on transactions
For example
Bought for \$ 1000 then sold at \$ 1500 - turnover amounted to U.S. \$ 2500.
Introduced a variable with a commission of 0.1% of turnover
After each operation, the value of the commission is subtracted from the turnover
1000 - 10 = 990
1500 - 15 = 1485
2500 - 25 = 2475

#0
geizer (geizer)
Nov 09, 2010 - 08:22

Wow, can't believe my eyes I am looking at the first ever post in russian.
Just out of curiosity I tried google translate
service and the result came surprisingly accurate (with very slight
editing).
Google translate did not do a good job at translating the issue title,
so this obe required some manual work. Anyways,here is the translation

for those who can't read russian:

Calculation of the commission of trafficking in a row
Good day! Necessary to test the strategies with respect to brokerage mortgage brokerage commission merchant code.
At the moment there is no way to calculate the commission on turnover and take it into account when designing a trading system.
How to reproduce:
You must enter a easy language operator to calculate the commission of the turnover on transactions
For example
Bought for \$ 1000 then sold at \$ 1500 - turnover amounted to U.S. \$ 2500.
Introduced a variable with a commission of 0.1% of turnover
After each operation, the value of the commission is subtracted from the turnover
1000 - 10 = 990
1500 - 15 = 1485
2500 - 25 = 2475

#0
savvin (savvin1988)
Nov 09, 2010 - 09:32

ÐžÐº , Pavel tomorrow i will translate my letter in good English , for easy understanding thanks

#0
Oct 25, 2011 - 07:59

Does it mean that COT is calculated on all activities in your account and also on the total of all both receipt and payment.?

History
Issue basics
• Type of issue
Feature request
• Category
Not determined
• Targeted for
MultiCharts Future Releases
• Status
Confirmed
User pain
• Type of bug
Not triaged
• Likelihood
Not triaged
• Effect
Not triaged
Affected by this issue (3)
People involved
Times and dates
• Posted at
• Last updated
Issue details
• Resolution
Not determined
• Severity
Normal
Attachments (0)
There is nothing attached to this issue
Commits (0)
There are no code checkins for this issue
Duplicate issues (0)
This issue does not have any duplicates