To define the trend reversal, the indicator does not use any Moving Averages, or parameters connected with the distance passed by the price. The only criteria is the breakthrough of maximums / minimums of the previous bars.
More particularly:
EURUSD D1. The number of bars in the pattern is 10:

Recommendations:
MetaQuotes Ltd tarafından Rusçadan çevrilmiştir.
Orijinal kod: https://www.mql5.com/ru/code/1622
i-Monday_Sig
Entry signals on the system "Monday"
Demo_FileReadArray
The script demonstrates the example of using the FileReadArray() function
Demo_FileWrite
The script demonstrates the example of using the FileWrite() function
Demo_FileReadDatetime
The indicator demonstrates the example of using the FileReadDatetime() function