SA W system 1
This professional-grade solution for MetaTrader 4 helps traders achieve greater efficiency in their daily workflow. 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 SA W system 1
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
The SAW_system_1 Expert Advisor places pending orders on the basis of the volatility for the last N days. The stop loss is always placed at the level of the opposite order, therefore, setting the stop loss value also sets the distance between orders. Stop loss and take profit and NOT calculated in points, but as a percentage of the average volatility over the specified number of days.
The orders are placed at a certain hour (terminal time), and if none of them was triggered, then they are deleted at the specified hour.
In addition, the EA is able to "reverse" the position when the first stop loss is triggered, or rather, it simply does not remove the opposite order when a position is opened by either of the orders. Also, when a position is opened, the opposite order can be placed with an increased lot to compensate losses, in case the position on second order closes in a loss.
Parameters:
Lot
- trading lot;
Amount of days (for calculating volatility)
- the number of days for calculation of volatility;
Hour installation orders (terminal time)
- order placing hour (terminal time);
Hour removal orders (terminal time)
- order deleting hour (terminal time);
Stop-Loss (percentage of the average volatility)
- stop loss (percentage of the average volatility);
Take-Profit (percentage of the average volatility)
- take profit (percentage of the average volatility);
Reverse positions
- position reversal;
Martingale
- enable Martingale;
Multiplier
- Martingale multiplier.
The trading instrument does NOT matter, as long as optimization is performed.
Timeframe is not important either, as everything happens by the terminal time.
Recommendations:
The parameters should be optimized on a period not greater than one year, as greater period does not make sense.
Reoptimization will probably need to be performed every 3 months.
I had written this code long ago, so write me about all issues, I will fix them as much as possible.