The Expert Advisor places pending Buy Stop and Sell Stop orders. To place an order, the EA searches for the highest and lowest price within the given range of bars (set to 80 in this code). Buy Stop orders are placed at the highest price, Sell Stop are placed at the lowest one.
The lifetime of pending orders lasts until the end of the current day. Once any of the pending orders triggers, all other orders are deleted.
An example of operation on EURUSD,M5:
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/20149
An Expert Advisor based on the iIchimoku (Ichimoku Kinko Hyo) indicator. Separate Stop Loss, Take Profit and Trailing Stop for BUY and SELL positions. The EA operation time is configurable. A check is performed on the current bar: only one position can be opened.Fractal_TL
An indicator for automatic drawing of trendlines based on fractals of a given timeframe.