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

Exp_Color3rdGenXMA - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

Exp_Color3rdGenXMA - expert for MetaTrader 5

Exp_Color3rdGenXMA - expert for MetaTrader 5

Trade in trending markets using the trading system Colored 3rdGenXMA Moving Average.

Trading decisions are made strictly within a fixed time period.

These moments are defined by two input parameters of the Expert Advisor:

 Enter the hour StartHour=H08; // Position opening time
Enter the minute StartMinute=M00; // Opening minute

Regardless of the result of the trade, open positions are closed after a certain number of minutes defined by the parameter value entered in the TimeMin Expert Advisor (position time in minutes). When opening a position, the trading direction is defined by the color of the Color3rdGenXMA indicator. If the color is red, open short, if the color is blue, open long.

Place the Color3rdGenXMA.ex5 compiled file into terminal_data_folder\MQL5\Indicators.

It should be taken into account that the TradeAlgorithms.mqh library file is designed to allow the use of Expert Advisors by brokers that offer the following services: non-zero spreads and the ability to set Stop Loss and Take Profit while opening a position. Other variants of this library can be downloaded from https://www.mql5.com/en/code/1578 .

The input parameters of the default Expert Advisor were used in the test shown below. Stop Loss and Take Profit were not used during testing.

Exp_Color3rdGenXMA - expert for MetaTrader 5

Figure 1. Example of trading history in chart

2011 H4 USD/CHF test results:

Exp_Color3rdGenXMA - expert for MetaTrader 5

Figure 2. Test result chart


Attachment download

📎 exp_color3rdgenxma.mq5 (11.61 KB)

📎 smoothalgorithms.mqh (134.03 KB)

📎 tradealgorithms.mqh (60.39 KB)

📎 color3rdgenxma.mq5 (8.52 KB)

Source: MQL5 #1648

Verification code Refresh