# Commission and commission rules

Questions about MultiCharts .NET and user contributed studies.
JoshM
Posts: 2080
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1525 times
Been thanked: 1483 times
Contact:

### Commission and commission rules

I've defined the following commission rules for a strategy:

From my understanding, with these settings my commissions will rise the more trades the strategy does, with a maximum of 2,5 cash per trade (after more then 24 trades), and a minimum of 1 (up to 10 trades). Not the most logical, but is my understanding of that nonetheless correct?

If that's correct, what does the Commission property return, because it always returns 1, despite the strategy doing more than 9 trades. What am I missing?

Code: Select all

`Commission = 1, totalTrades: 1Commission = 1, totalTrades: 2Commission = 1, totalTrades: 3Commission = 1, totalTrades: 4Commission = 1, totalTrades: 5Commission = 1, totalTrades: 6Commission = 1, totalTrades: 7Commission = 1, totalTrades: 8Commission = 1, totalTrades: 9Commission = 1, totalTrades: 10Commission = 1, totalTrades: 11Commission = 1, totalTrades: 12Commission = 1, totalTrades: 13Commission = 1, totalTrades: 14Commission = 1, totalTrades: 15Commission = 1, totalTrades: 16Commission = 1, totalTrades: 17Commission = 1, totalTrades: 18Commission = 1, totalTrades: 19Commission = 1, totalTrades: 20Commission = 1, totalTrades: 21Commission = 1, totalTrades: 22Commission = 1, totalTrades: 23Commission = 1, totalTrades: 24Commission = 1, totalTrades: 25Commission = 1, totalTrades: 26Commission = 1, totalTrades: 27Commission = 1, totalTrades: 28Commission = 1, totalTrades: 29Commission = 1, totalTrades: 30`

Code: Select all

`            if (TotalTrades > prevAmountOfTrades)            {                Output.WriteLine(string.Format("Commission = {0}, totalTrades: {1}", Commission, TotalTrades));            }            prevAmountOfTrades = TotalTrades;`
Attachments
scr.11-08-2012 17.21.25.png (11.92 KiB) Viewed 1124 times

Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 485 times

### Re: Commission and commission rules

JoshM,

Commission returns the commission settings from Strategy Properties. Real commission at broker will be returned by a reserved word which will be added in the next version. It will work the samer way as PosTradeCommission in regular MultiCharts.

Posts: 104
Joined: 14 Nov 2012
Has thanked: 40 times
Been thanked: 14 times

### Re: Commission and commission rules

Dave Masalov wrote:Real commission at broker will be returned by a reserved word which will be added in the next version. It will work the samer way as PosTradeCommission in regular MultiCharts.

Hi, is this available also on MC.NET, i.e. to get the real commission charged by the broker from code?

Henry MultiСharts
Posts: 8443
Joined: 25 Aug 2011
Has thanked: 1207 times
Been thanked: 2704 times