225 PIPS |
Product | Trading system | Roadmap | Settings and sets | FAQ | Support |
EA "225 pips": a Description of the work
(Оригинал текста на русском языке)
For the Expert Advisor (EA) to work, you need to set the "coordinates" of the trade in the settings. It is necessary to set any Agreed Level and step (in pips) with which the EA will build its level scale.
For example:
Agreed Forex Levels = 1.37230
Levels Step = 225
From this moment, the EA knows and sees thousands of levels and is guided by them in the space of the currency pair rate.
Search and open deals
When the levels are set in the EA, now you need to look for entry points into deals. For this, the Simple Moving Average (SMA) was chosen as the basis. Why SMA? Because if you set SMA = 1, then in fact it will be approximately the current price (in the future it will be easier to add new logic in the search for deals): ![Simple Moving Average (SMA) =1 Simple Moving Average (SMA) =1](https://c.mql5.com/6/891/GBPUSDH1_pic03__1.png)
But most importantly, the SMA has a lag. Averaging bars gives a deviation from the current price. The longer the SMA period, the more deviations there are:
Since levels are incorporated into the logic of the expert advisor's work, when searching for deals, the EA focuses only on levels. The “Open Order Level” parameter indicates how many levels from the SMA to open a deal. The levels are counted from zero (0, 1, 2, 3, ...). Therefore, if we set “Open Order Level = 3”, it means that the deal will be opened at 4 levels from SMA (exactly at the level):
If we set “Open Order Level = 2”, it means that the deal will be opened at 3 levels from SMA:
If we set “Open Order Level = 1”, it means that the deal will be opened at 2 levels from SMA.
![Bollinger Bands (BB) = 37 Bollinger Bands (BB) = 37](https://c.mql5.com/6/891/GBPUSDH1_pic05__1.png)
Bollinger Bands = 0 - completely disables this filter.
Take Profit (TP) and Stop Loss (SL)
Let's consider the logic of TP and SL operation. Suppose “Open Order Level = 3” and at the fourth level from “SMA = 18” the EA will create an order and open a deal::
Take Profit by default is set exactly at the next level from the order opening level:
And Take Profit will always be equal to the step of the set level (for example, 225 pips). But, TP can be moved up/down with a pips precision using the “TakeProfit Shift” parameter:
If you specify “TakeProfit Shift = -50”, then TP = 225 - 50 = 175 pips
If you specify “TakeProfit Shift = 50”, then TP = 225 + 50 = 275 pips
Stop Loss (SL)
Stop Loss is also associated with levels. But, SL continues its countdown from the condition for opening an order, and not from the opening level. It looks like this:
Stop Loss is indicated only by levels!
Another SL example:
![StopLoss = 6 StopLoss = 6](https://c.mql5.com/6/891/GBPUSDH1_pic05_4__1.png)
In the settings of the Stop Loss EA, you can specify different values for the Buy and Sell operations. So, for example, according to statistics, GBPUSD has a deviation towards SL in the Buy operation by a whole level less than in Sell. Therefore, SL can be considered separately for Buy and separately for Sell.
For example:
StopLoss for Buy = 5
StopLoss for Sell = 6
There are cases, especially with a sharp change in trend, when a usual deal can work at a loss:
![Пример сделки Пример сделки](https://c.mql5.com/6/891/GBPUSDH1_pic06__1.png)
To exclude such cases, the “Last Bars Movement” filter was made. It sets the allowed size of the movement of the last 3 bars (in pips), at which a trade can be opened.
For example, "Last Bars Movement=450"
It looks like this:
Bollinger Bands and “Last Bars Movement” are the only filters in the EA's work so far. In the future, it is planned to expand the number and type of filters for the profitability of the expert advisor. But! Basically, indicator systems are not effective. Other logics and principles of opening deals are needed. In the near future, a variant of the logic will be created, when the EA will open a deal at each level in both directions. This will complement not very effective indicator systems and cover all price movements. But, in this version, it will be necessary to implement various tricks and algorithms for managing SL and TP.
Product | Trading system | Roadmap | Settings and sets | FAQ | Support |
225 PIPS |