MetaTrader 5 / Experts
Exp_AbsolutelyNoLagLwma_Range_Channel_Tm_Plus - expert pour MetaTrader 5
2816
The trading system based on AbsolutelyNoLagLwma_Range_Channel indicator signals with the possibility to set a fixed position holding time. The signal is formed when a bar is closing if there is a channel breakthrough. Once position holding time exceeds a preset fixed limit, the position will be closed immediately:
input bool TimeTrade=true; //Enabling position exit by time input uint nTime=480; //Open position holding time in minutes
This Expert Advisor uses the compiled indicator file AbsolutelyNoLagLwma_Range_Channel.ex5 for operation. Place it to <terminal_data_folder>\MQL5\Indicators.
Default Expert Advisor's input parameters have been used during tests shown below.

Fig. 1. Examples of trades on the chart
Testing results for 2017 on EURJPY H4:

Fig. 2. Testing results chart
Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/21540