How It Works
The Expert Advisor employs two simple moving averages of opening prices. Calculations are made using values obtained from the current bar and the previous bar. If rearranged, the formula simply represents the difference between the fast MA and slow MA from the previous bar. The difference being above one level and below the other level suggests a buy signal. Conditions for a sell signal are the exact opposite of those for a buy signal.
A trailing stop and breakeven can be set for an open position.
The Expert Advisor features an additional function for closing all positions in the account when a certain profit or loss level is reached. The author probably had in mind the use of several Expert Advisors of that type in one account.
The image below shows the performance of the Expert Advisor in the strategy tester's visual mode.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/1085
An indicator similar to Bolinger Band.Regression Analysis Alert
Change Alert for barmenteros original indicator that compares four types of regression (linear, quadratic, logarithmic and exponential) and chooses the one that best fits the data analyzed.