On Tester Commission Calculator
This tool for MetaTrader 5 is specifically engineered to streamline your trading operations. This Expert Advisor serves as automated trading software. It is utilized to monitor financial markets and execute trades based on predefined algorithmic rules, enabling precise position management without the need for constant manual oversight.
How to Setup and Use On Tester Commission Calculator
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
Description & Settings
Update :
Now it also calculates the commission on "end of test" result on Tester
I was testing my Expert Advisor while i found that i have to calculate commission charged by my broker as well otherwise the profit shown by strategy could not be true, So i tried to use in built commission feature on Metatrader5 but this did not work!
So i decided to code this feature externally.
This code can be used in your own expert advisor to calculate the commission (you may need to know programming)
This EA works for testing Market Order, Limit Order, Stop Limit Order and Stop Market Order and same can be selected from SelectMode Input
Fee in percentage can be added. Like my broker charges 0.04% commission so i added there
After adding Entry, SL and TP you can run this EA on strategy tester
On testing you can see i have total 4 deals executed
For each deal, the commission should be calculated that is set on input : 0.04%
Lets test in on excel
As you can see for 0.1 qty its 1.2546 for Limit Buy Order and 1.284 for Take Profit Order
so summing up 1.2546 + 1.284 = 2.5386
and total trades are 2
so 2.5386 *2 = 5.0772
so at the end of Strategy Tester Report in Journal Tab, the Total Commission is Printed
I hope this calculation method will help you testing your EA with more accurate profit when it excludes commissions which your broker charges