Commissions |
This topic contains the following sections:
Following examples show how to use a Commissions object.
This example shows how to get commissions paid by a trading system.
/* This example shows how to calculate commissions fees. Disclaimer: The system used in this example was selected randomly. Data shown in this example can contain errors.*/ var defaultCommiss = CommissionsFactory().CalcCommissions(46106678); TEXT = "Commission fees paid by 'Bob Dylan' using a default C2 commissions plan: " + defaultCommiss.ToString(); var ibCommiss = CommissionsFactory("ib").CalcCommissions(46106678); TEXT = "Commission fees paid by 'Bob Dylan' using an IB commissions plan: " + ibCommiss.ToString();
This example shows how to get commissions paid using all available commissions plans.
One line of code - and we know the best broker for the given trading system!
/* This example shows how to see commissions fees paid using all available Collective2 commissions plans. Disclaimer: The systems used in this example were selected randomly. Data shown in this example can contain errors.*/ H3 = "Show me commissions paid by 'Bob Dylan' using all available C2 plans"; TABLE = CommissionsFactory().CommissionByPlan(46106678); H3 = "What if some broker's plan does not include all types of instruments?"; TABLE = CommissionsFactory().CommissionByPlan(98559500);
What if some broker does not trade *all* used instrument?
Can we see what broker is the best for the concrete type of traded instruments?
/* This example shows how to see commissions fees calculated for different types of instruments. Disclaimer: The systems used in this example were selected randomly. Data shown in this example can contain errors.*/ H3 = "Show me commissions paid per different instruments types."; TABLE = CommissionsFactory().CommissionByInstruments(98559500); H3 = "Great! But I wanted the tradeMONSTER plan..."; TABLE = CommissionsFactory("tm").CommissionByInstruments(98559500);
All results above are based on the low level data - trading system's signals with commissions calculated using the given plan.
/* System's signals with commissions. See the "Commissions" columns. Disclaimer: The systems used in this example were selected randomly. Data shown in this example can contain errors.*/ H3 = "Default commissions plan"; TABLE = CommissionsFactory().CalcCommissionsData(98559500); H3 = "tradeMONSTER commissions plan"; TABLE = CommissionsFactory("tm").CalcCommissionsData(98559500);