Add commissions for Symbol to cAlgo API

Created at 27 Aug 2014, 17:14
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
AlexanderRC's avatar

AlexanderRC

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
@AlexanderRC
Replies

TonNcie
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


@TonNcie

genappsforex
19 Dec 2019, 08:53

RE:

 

MySymbol.GetCommission(double VolumenInUnits);

Would be a nice extention to the Symbol Class

 


@genappsforex