/* */

Two ways of setting up COSMOS4U AdMACD Expert Advisor

There are two ways to setup COSMOS4U AdMACD Expert Advisor. The first one, is to use the optimal parameters generated by COSMOS4U Research team and the second one, is to use your own custom parameters. Below, you will find details for both options.

First way – Use optimal parameters by COSMOS4U

The first and the easiest way, is to visit http://www.cosmos4u.net/index.php/admacd-pro-h1-trading-system-parameters and find the optimal parameters that COSMOS4U Research Team recommends for a specific week of the year for the H1 Timeframe.

In the following image, we instantiate these options and use the H1 parameters for the EURUSD symbol as an example.




Go to Metatrader 4, open the EURUSD symbol chart and select the H1 timeframe. Then, drag and drop the COSMOS4U AdMACD Expert Advisor into the chart and do the following:

At the Common tab, make sure that the “Allow live trading is checked”




At the Inputs tab, insert the optimal parameters by COSMOS4U Research Team and adjust the other options to suit your requirements




If the Automated Trading option of Metatrader is enabled, a position will open immediately. Otherwise, enable the Automated Trading option of Metatrader and the Expert Advisor opens the position.




If you have more symbols that you want to setup the parameters by COSMOS4U, you can use the COSMOS4U Configuration Utility. Check the instructions here

Second way – Setup your custom parameters

If you wish to setup COSMOS4U AdMACD Expert Advisor with your custom parameters, you have to run a backtest so as to find the appropriate parameters.

Below you will find the steps of the second way while you can watch a video here

First of all, you have to download the symbol’s history in order to launch the backtest.

Go to Tools->History Center or press F2 and select the symbol and the timeframe. In this guide, we use GBPUSD and M15 timeframe. (Ignore this step in Metatrader 5)

Then click download and wait for the Metatrader to finish downloading the history.




Close the History Center and open the Strategy Tester (Click View-> Strategy Tester or press Ctrl+R).

Select the COSMOS4U AdMACD as Expert Advisor, the symbol and the timeframe that you have downloaded from the history, “Open prices only” as Model, set your custom date, i.e. two weeks and check the optimization checkbox.




1. Check the Fast, Slow and Signal Moving Average

2. Set the Range of each parameters

3. Select the right Time Interval

4. Set the Capital Risk

5. Enable or not the Weekend Close Position

You can also adjust the other options according to your needs.




You have to enable the Automated Trading of Metatrader before initiating the backtest




Go to Metatrader 4 Tester and click Start in order to start the backtest.

When the backtest is over, click on the Optimization Results Tab of the Strategy Tester and sort the results by Profit Factor in descending order. The first line incorporates the three parameters with the best profit factor and the best profit as shown in the following image.




In the above example, the parameters are (fast=30, slow=27, signal=28)

Next, you go to the settings tab of the Strategy Tester and uncheck the optimization box and open the Expert properties.

Set the above parameters, as shown in the picture below:




Restart the test and go to the Report tab where you can check the Total net profit and the Profit Factor.




Next, you can close the Strategy Tester and open the Metatrader 4 Terminal (got to View->Terminal or press Ctrl+T). Open your symbol’s chart and set the right timeframe (in this case it is M15)




Now you can drag and drop COSMOS4U AdMACD Expert Advisor in the chart and you can see its options. In the Common tab, it is important to have checked the “Allow live trading”.




In the Input tab, set the backtest parameters and the right time interval and you can also set other options like the risk, weekend close positions etc.




When you finish setting up the COSMOS4U AdMACD Expert Advisor and you click ok, a position opens immediately in the terminal.




You can watch a video of the second way here