Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Expert Advisor | Hans123 Trader v2

MetaTrader Experts, Indicators, Scripts and Libraries

A further development of the first version Hans123_Trader.

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 orders 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.

Max pending orders parameter has been added in the second version - it allows setting the maximum number of pending orders.

20397

Best MetaTrader Indicators + Profitable Expert Advisors