The author of the idea: Scriptor
MQL5 code author: barabashkakvn
The EA waits for a control bar having its open hour equal to Start hour. After that, the search for maximum and minimum prices from the current bar up to the Search depth bar is performed. Depending on Order Type, the EA places either pending Limit orders or pending Stop ones.
You can use trading sessions to select control bar time:

Pending orders can be removed in two cases:
Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/22595
InvestorsVsSpeculatorsDelta
Investors vs Speculators Delta indicator
MaDev
Deviation from MA indicator