Basic Technical Terms I would like the Expert Advisor to be calculated on bar close. Also, the trade management only is affected on bar close. Trades are opened when trade requirements and time constraints are fulfilled. There is no limitation in the number of open trades or so. This means there can also be multiple open trades running from the same Entry Signal. Furthermore, I would require the inputs to include a Yes/No function to temporarily deactivate single Entry Signals. I do require not only the ex4 but also the code file mql4. Time Constraints I would like the EA to be restricted to active trading hours during which trades are opened and a final time at which all open trades are closed. Trades should only be opened server time from 02:59h until 19:01h. All at that time still open trades should be closed at 21:45h. The given times are the default preset, but they should be customizable in the Inputs window. Entry Signals The Expert advisor should include 4 different requirement sets for a trade to be opened. Two requirement sets for Buy Trades (Buy01 and Buy02) as well as two requirement sets for Sell Trades (Sell01 and Sell02). Indicators are all calculated based on the closing price of the periods. Indicators are presented as Name_Inputs(mostly just the period). An indicator requirement is linked to a time. T=(1) refers to the just-closed period. T=(2) refers to the period before the just closed period and so on. Risk Management All trades are opened with the same risk which is supposed to be 0.2 % of Equity. Meaning each trade the initial SL would if triggered lose 0.2 % of the account balance. 0.2 % is the default preset, but it should be customizable in the Inputs window. Trade Management Trade Management is based on the Donchian Channel with period 5. There is an Initial Stop-Loss which is only during the first period of the trade being open. From then on the Stop-Loss is trailing by Donchian Channel period 5 High / Low. For a Long Trade, there are three Scenarios for the Initial SL. If 0.4 * ( DonchianChannel_3_Upper - DonchianChannel_3_Lower ) < 0.0006 , Then the SL is automatically 0.0006 below the close price of the period at which trade is being opened. If 0.4 * ( DonchianChannel_3_Upper - DonchianChannel_3_Lower ) > 0.0006 , And the close price of the period when trade is opened is than 0.4 * ( DonchianChannel_3_Upper - DonchianChannel_3_Lower ) above the DonchianChannel_5_Lower, Then the SL is DonchianChannel_5_Lower If 0.4 * ( DonchianChannel_3_Upper - DonchianChannel_3_Lower ) > 0.0006 , And the close price of the period when trade is opened is less than 0.4 * ( DonchianChannel_3_Upper - DonchianChannel_3_Lower ) above the DonchianChannel_5_Lower, Then the SL is 0.4 * ( DonchianChannel_3_Upper - DonchianChannel_3_Lower ) below the close price of the period at which trade is being opened. From the second period on the SL is moved as a trailing stop at each bar close with the DonchianChannel_5_Lower. For a Short Trade vice versa. If 0.4 * ( DonchianChannel_3_Upper - DonchianChannel_3_Lower ) < 0.0006 , Then the SL is automatically 0.0006 above the close price of the period at which trade is being opened. If 0.4 * ( DonchianChannel_3_Upper - DonchianChannel_3_Lower ) > 0.0006 , And the close price of the period when trade is opened is than 0.4 * ( DonchianChannel_3_Upper - DonchianChannel_3_Lower ) below the DonchianChannel_5_Upper, Then the SL is DonchianChannel_5_Upper If 0.4 * ( DonchianChannel_3_Upper - DonchianChannel_3_Lower ) > 0.0006 , And the close price of the period when trade is opened is less than 0.4 * ( DonchianChannel_3_Upper - DonchianChannel_3_Lower ) below the DonchianChannel_5_Upper, Then the SL is 0.4 * ( DonchianChannel_3_Upper - DonchianChannel_3_Lower ) above the close price of the period at which trade is being opened. From the second period on the SL is moved as a trailing stop at each bar close with the DonchianChannel_5_Upper. Trade Criteria Buy01 relies on all of the following requirements to be fulfilled: TRUE For T=(1): ( Open - Close ) / ( High - Low ) > 0.9 (meaning the Candle Body makes up more than 90% of the range traded in the period) TRUE For T=(1): ( DonchianChannel_12_Upper t=(1) - DonchianChannel_12_Lower t=(1) ) / ( DonchianChannel_12_Upper t=(14) - DonchianChannel_12_Lower t=(14) ) < 1.147 (meaning the current DonchianChannel considering 12 periods to be maximum 1.147 times the range of the DochianChannel considering 12 periods 14 periods ago) TRUE For T=(1): RSI_5 t=(1) - RSI_5 t=(6) > -17.76 (meaning the current RSI_5 should be not more than 17.76 lower than 6 periods ago) Buy02 relies on all of the following requirements to be fulfilled: TRUE For T=(2): Moving Average Exponential_6 > Moving Average Exponential_28 (meaning the EMA 6 was above EMA 28 before) TRUE For T=(1): Moving Average Exponential_6 < Moving Average Exponential_28 (meaning the EMA 6 just crossed below EMA 28 on bar close) TRUE For T=(1): Low - BollingerBands_2.411,35_LowerBand > 0 (meaning Low of the period on bar close to be above LowerBand of Bollinger Bands with period 35 and deviation 2.411) TRUE For T=(1): ( DonchianChannel_30_Upper t=(1) - DonchianChannel_30_Lower t=(1) ) / ( DonchianChannel_30_Upper t=(22) - DonchianChannel_30_Lower t=(22) ) > 0.932 (meaning the current DonchianChannel considering 30 periods to be minimum 0.932 times the range of the DochianChannel considering 30 periods 22 periods ago) Sell 01 relies on all of the following requirements to be fulfilled: TRUE For T=(2): Moving Average Exponential_8 < Moving Average Exponential_20 (meaning the EMA 8 was below EMA 20 before) TRUE For T=(1): Moving Average Exponential_8 > Moving Average Exponential_20 (meaning the EMA 8 just crossed above EMA 20 on bar close) TRUE For T=(1-13): Moving Average Exponential_6 > Moving Average Exponential_36 OR Moving Average Exponential_6 < Moving Average Exponential_36 (meaning no cross of EMA 6 and EMA 36 for the last 13 periods) TRUE For T=(1): Close - BollingerBands_0.444,18_LowerBand < 0 (meaning Close of the period on bar close to be below LowerBand of Bollinger Bands with period 18 and deviation 0.444) Sell 02 relies on all of the following requirements to be fulfilled: TRUE For T=(2): Close - Open < 0 (meaning second last period is negative - Close lower than Open) TRUE For T=(1): Close t=(1) > High t=(2) (meaning candle on bar close did close higher than the high of the period before) TRUE For T=(1): Moving Average Exponential_4 > Moving Average Exponential_6 > Moving Average Exponential_8 > Moving Average Exponential_12 (meaning EMA 4 above EMA 6 which is above EMA 8 which is above EMA 12) TRUE For T=(1-36): High =< DonchianChannel_30_Upper (meaning at no time during last 36 periods a period High was equivalent to the DonchianChannel_30 Upper, or in other words for the last 36 periods at no point did the Upper-value increase because the price never did go above the Upper band of the previous period or again rephrased: The Channel High was just lagging Highs but at no point did the market break through the Channel High for expansion, so at no point the Channel High value was higher than the period before) Thank you so much!