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:
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:
MetaQuotes Ltdによってロシア語から翻訳されました。
元のコード: https://www.mql5.com/ru/code/15952
RAD - Rapid Application Development library
Rapid Application Development library.
Indicator of the options levels
The indicator is designed for calculating and displaying the options levels on the screen.
Fishing
The Expert Advisor opens positions after the price passes the specified distance. 1 step up - sells, 1 step down - buys.
Modified assistant for selecting the manual strategy
The indicator is designed for testing manual strategies and for practicing working according to the strategy. It provides operation reports presented as a table, chart, and additionally saves templates with and without the markup.