#### Go back to the forum

Admin | Published on the wed Mar 24, 2021 7:48 pm | 1744 Views

Hello guys, if you are reading this text, it means you are interested to know how this robot works. Nothing is too complicated, in fact, it is so simple that it could not be simpler. So, let's get started :)

Introducing

When I started making a strategy for this robot, I tried to make things simplest as possible. So, yes, it’s a cross-strategy like one million other similar cross EA's, but to make my Ema special and different from other robots, the strategy involves advanced logic, which works independently or in combination with data mining, and that thing is the reason why this robot is different from other similar robots on the market today.

Inputs

I will divide the adjustable inputs into three groups. The first group is used for money management and entry-exit rules. The second group of inputs is involved in signal logic, and the final third group belongs to Data Mining.

Money Management

• Money Management: Lot or Risk

There are three possible options

1. Lots Min. If you select this option, the robot will open only the mini lot "0.01" per each position. In this case, the next input >> The value for "Money management" << was ignored.

2. Constant lot. If we select this option then we need to set our lot manually in the appropriate field.

3. Risk in percent for a deal. If you select this option, it means that the system will automatically calculate the level of risk depending on the size we previously entered and is calculated as a percentage according to the free margin.

• The value for "Money management"

So if we choose Constant lot we simply set the volume size we want to, starting from 0.01,0.1,1, etc... If previously selected Risk in percent, then we adjust this input to the appropriate level of risk we want to, which can be 1,2,3,4,5, etc... If we selected a mini lot. Then, as I pointed earlier, this input is ignored, regardless of the value entered in this field, and the system will open the mini lot, only.

Exit Rules

• Stop Loss. Can be calculated in points or pips depending on what we choose in the Auxiliary.
• Take Profit. Same here

Trailing Rules

• Activate. true or false
• Trailing,(new bar<"60">every 60 sec) . Here we select the speed of our trailing stop, which can be in seconds or in the bar. If we select a number below 60, it means that the trailing stop works on the Bar option, and if we select a number greater than sixty, it means that the system will trail our stop every sixty seconds in the given range.
• Trailing Stop. Pips or Points
• Trailing Step.  Pips or Points

Break-Even Rules

• Activate
• Breakeven,(new bar<"60">every 60 sec)
• Breakeven stop
• Breakeven step

Everything I wrote for TS also applies to BE, so there is no need to repeat myself.

Auxiliary

• Comment. Here simply put your comment here
• Choose trade mode. Here we have three available options. First is only Buy, second is only Sell and finally buy and sell. For example, in times of the bull market, we can choose only to open buy market order, and vice versa.
• Pips or Points. This option controls the calculation that applies to all inputs and can be in points or pips.
• Coefficient (if Freeze==0 Or StopsLevels==0). The recommendation is one to three, and it prevents positions freezes when you are close to the market. This only applies to some brokerage firms.
• Deviation. Or Sleep page. Simply, it is the speed at which your placed order is executed in a chain starting from you through your broker to the liquidity provider and finally to the market. If you do not have a delay, then it is an ideal execution, and you don't need to use this option. In any other case, it is recommended to use it. It is calculated in pips or points, depending on what you chose previously.
• Magic number. So, here it's magic involved in trading. If you can find the right number, you will become a millionaire, actually a billionaire.
• Search signals,(new bar<"60">every 60 sec). So, here we are looking for a signal on a new bar if the number is below 60 or every 60 seconds if the number is greater than sixty in the given range.
• Working timeframe. It refers to born of the new bar involved in almost everything in this robot.
• Print log. And this is kind of bullshit. If you want to be informed about some processes in the Jurnal/Experts sections. Nothing important. I really don't know, why I leave these option as an option?

So, we come to the part where we talk about the signal group. The signal is generated based on the crossing of two Moving Average indicators. It would be something like a simple explanation and a basic concept, but some other details are also included in the signal logic, which refers to the price position, Ask/ Bid ratio, etc ...

Fast Moving Average

• Averaging period = 20
• Horizontal shift   = 0
• Smoothing type  = Exponential
• Type of price       = Close

Slow Moving Average

• Averaging period  = 50
• Horizontal shift  = 0
• Smoothing type  = Exponential
• Type of price     = Close

I did not optimize these inputs or change them at all, because I focused more on optimizing in the  Data Mining section. They are simply as they are. So, If you want a faster strategy, choose a smaller number for the Averagin Period, for both indicators. For example, for fast MA, it can be number ONE, and for slow MA, choose FIVE. Basically here you can play the games you want, to get the best possible parameters, or simply leave them as they are.

Now we finally come to the third and final part of this robot and that is Data Mining. Don't be afraid, nothing is too complicated, actually, it's very simple :). So, guys, we can use this option or we don't. In both cases, the robot will trade for us according to the set parameters.

### “DATA MINING”

Indi Data

• Start position
• Data count
• Timeframe

These three inputs control the fast Moving Average

• Start position
• Data count
• Timeframe

And these three inputs control slow Moving Average

Price Data

• Start Position
• Rates data count
• Timeframe
• Start Position
• Rates data count
• Timeframe
• Start Position
• Rates data count
• Timeframe

These nine inputs control the operation of the price. Now when we know everything, what would be our gain by using this option?

So, mining serves to get the best start/stop positions for our indicators and for prices as well, in a certain period of time. In this way, we achieve a small relative drawdown and on other hand generate profit at a satisfactory level.

The optimization process is exactly the same as for other inputs. We select our start/step and stop. It's recommended to use as large steps as possible, for example, Start 0, Step 10 Stop 100, in order to avoid over-optimizing parameters. Try to use a forward optimization to confirm obtained parameters. It's recommended to use six cycles of the Walk Forward in a period of 10 years. After that, you need to work with the data to get the most profitable inputs, and so on...

You should also need to know that the robot has already optimized in six cycles of WF optimization on the EURUSD currency pair on H1. Could the result be better? Of course. This is not the best result, but for me, it is quite okay for now.

Now I will show you some example

First, the example shows us a one-year test using the Data Mining option.

Another example is for a period of three years also with data mining.

Now I will show you a sample test without using the data mining option. DD is a little higher in this test because I use a risk level of 10 percent.

So, guys, that would be all for now. Don't forget one fact, the past performance are not necessarily indicative of future performance.