Commission and commission rules

Questions about MultiCharts .NET and user contributed studies.
User avatar
JoshM
Posts: 2080
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1525 times
Been thanked: 1483 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
scr.11-08-2012 17.21.25.png (11.92 KiB) Viewed 1124 times

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 485 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: 104
Joined: 14 Nov 2012
Has thanked: 40 times
Been thanked: 14 times

Re: Commission and commission rules

Postby orad » 18 Dec 2015

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?

User avatar
Henry MultiСharts
Posts: 8443
Joined: 25 Aug 2011
Has thanked: 1207 times
Been thanked: 2704 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.
These users thanked the author Henry MultiСharts for the post:
orad


Return to “MultiCharts .NET”