Add commissions for Symbol to cAlgo API

Created at 27 Aug 2014, 17:14
AlexanderRC's avatar


Joined 04.02.2014

Add commissions for Symbol to cAlgo API
27 Aug 2014, 17:14

It would be for the cBot to obtain current commission value per million. Now if cBot needs current commission value for a Symbol it either has to look it up from historical trades or open and close a position with a 1K (minimal) amount or have it specified as parameter.
1) Historical trades can have a different commission as happens in Romanov Capital (history of last 30 days specifies the group with different commissions, the more you trade, the less is charged).
2) Opening and closing a position is not elegant and incurs a tiny financial loss.
3) Specifying commissions as a parameter is inconvenient and may be inaccurate due to dynamic commission

cTrader Automate

19 Dec 2019, 08:53



MySymbol.GetCommission(double VolumenInUnits);

Would be a nice extention to the Symbol Class



El Antonio
21 Nov 2019, 10:54

it's calculated in Backtesting and Optimization so it;s there. Just make it public. I'd say this is a quick win for CTDN