Commission and commission rules

Questions about MultiCharts .NET and user contributed studies.
User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Commission and commission rules

Postby JoshM » 11 Aug 2012

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

Image

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: 1
Commission = 1, totalTrades: 2
Commission = 1, totalTrades: 3
Commission = 1, totalTrades: 4
Commission = 1, totalTrades: 5
Commission = 1, totalTrades: 6
Commission = 1, totalTrades: 7
Commission = 1, totalTrades: 8
Commission = 1, totalTrades: 9
Commission = 1, totalTrades: 10
Commission = 1, totalTrades: 11
Commission = 1, totalTrades: 12
Commission = 1, totalTrades: 13
Commission = 1, totalTrades: 14
Commission = 1, totalTrades: 15
Commission = 1, totalTrades: 16
Commission = 1, totalTrades: 17
Commission = 1, totalTrades: 18
Commission = 1, totalTrades: 19
Commission = 1, totalTrades: 20
Commission = 1, totalTrades: 21
Commission = 1, totalTrades: 22
Commission = 1, totalTrades: 23
Commission = 1, totalTrades: 24
Commission = 1, totalTrades: 25
Commission = 1, totalTrades: 26
Commission = 1, totalTrades: 27
Commission = 1, totalTrades: 28
Commission = 1, totalTrades: 29
Commission = 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) Downloaded 1728 times

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: Commission and commission rules

Postby Dave Masalov » 14 Aug 2012

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.

User avatar
orad
Posts: 121
Joined: 14 Nov 2012
Has thanked: 50 times
Been thanked: 20 times

Re: Commission and commission rules

Postby orad » 18 Dec 2015

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?

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Commission and commission rules

Postby Henry MultiСharts » 21 Dec 2015

Hello orad,

PosTradeCommission and PosTradeProfit are supported since MultiCharts .NET 8.1 Beta1.


Return to “MultiCharts .NET”