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

Exp_CandlesticksBW_Tm - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

Exp_CandlesticksBW_Tm - expert for MetaTrader 5

Exp_CandlesticksBW_Tm - expert for MetaTrader 5

Exp_CandlesticksBW_Tm Expert Advisor BW candle chart based on color changing candlesticks and allows strictly defined trading time intervals.

When the bar closes, if the indicator color changes, a trading signal is formed, providing evidence for a change in the current trend.

Trading times can be specified in the input parameters to trade at specified intervals:

 Input boolean timeTrading= True ; // Allow trading within the specified time interval
Enter HOURS start H=ENUM_HOUR_0; // Transaction start (hour)
Enter the minute StartM=ENUM_MINUT_0; // Transaction starts (minutes)
Enter the hour EndH=ENUM_HOUR_23; // End of transaction (hour)
Enter minutes EndM=ENUM_MINUT_59; // Transaction ends (minutes)

Provide two hour and minute variables for each trade start time and trade end time.

The default settings enable the Expert Advisor to trade for the entire trading session starting at 0:00, while all positions are closed immediately at 23:59.

If the start time in the EA settings is later than the specified trade end time, the EA will close the position at the specified time the next day.

In order for the EA to run, the compiled candlestick BW.ex5 indicator file must be located in the <terminal data directory>\MQL5\indicator folder.

The EA default input parameters are used in the following tests. Stop Loss and Take Profit were not used in the test.

Exp_CandlesticksBW_Tm - expert for MetaTrader 5

Figure 1. Example of trade on chart

2016 GBP/USD H4 test results:

Exp_CandlesticksBW_Tm - expert for MetaTrader 5

Figure 2. Test results chart


Attachment download

📎 tradealgorithms.mqh (121.8 KB)

📎 candlesticksbw.mq5 (6.73 KB)

📎 exp_candlesticksbw_tm.mq5 (16.37 KB)

Source: MQL5 #20905

Verification code Refresh