Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Simple_Pending_Orders_Time - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

The Expert Advisor was created to test the profitability strategy of the system as described by one forum member.

Special attention! ! !

This Expert Advisor was not created to evaluate the code quality and programming style, but only to test the strategy! ! ! !

The essence of EA trading algorithm:

The simplest EA trading can analyze price changes on a given number of bars and open corresponding positions.

Library for trading session control. When launched, it calculates the number of trading sessions for 7 days a week (cryptocurrency trading is possible on Saturdays and Sundays), with a maximum of 10 trading sessions per day. Then in OnTick() you can check and if a quote appears outside the trading session, you can exit further processing of it.

The structure of the input parameters

This indicator was written based on a forum request.


Attachment download

📎 simple_pending_orders_time.mq5 (30.68 KB)

Source: MQL5 #47664

Simple_Pending_Orders_Time - MetaTrader 5 Expert - MT4/MT5 resource usage and screening suggestions

This content can be used as a data entry for foreign exchange EA, indicators, trading systems or quantitative strategies. When reading, it is recommended to make a judgment based on the platform version, trading type, time period, risk control method and historical discussion background. Do not use it directly based on the title or a single point of view.

If the content involves MT4/MT5, ForexFactory, MQL source code, TradingView indicators or strategy discussions, you can give priority to the parameter logic, backtest environment, market stage, execution cost and failure conditions, and then decide whether to continue downloading, reviewing or secondary development.

Risk warning

For any EA, indicator or automatic trading strategy, it is recommended to first conduct historical backtesting, simulation account verification and small capital testing. Grid, Martin, high frequency, recovery and examination strategies especially require setting the account risk upper limit, single variety risk upper limit and manual deactivation conditions.

Verification code Refresh