CodEx 4
- Experts
- Anton Gorin
- Versão: 1.5
- Atualizado: 12 julho 2021
Operation of the CodEx 4 Expert Advisor is based on patterns composed of consecutive candles. Positions are closed when opposite signals appear.
Sequences of candles are encoded into an integer according to the following rule. The code number must be converted to binary form and the highest bit must be discarded. The resulting sequence of bits encodes a continuous sequence of candles, where 1 is a bullish candle, 0 is a bearish candle. The higher bits encode the earlier candles. For example: 19[10]=10011[2], the obtained sequence of candles is [bear][bear][bull][bull].
In the input parameters, the patterns for buy signals are encoded. The EA obtains the patterns for sell signals by inverting the initial patterns.
Input parameters
- Code Set — string parameter that contains numbers separated by comma — codes of candlestick patterns for buying, used in trading and in testing of the EA.
- Code — numeric parameter, that contains the code of the candlestick pattern of the buy signal, used in optimization of the EA.
- Stop Loss — loss fixing level in points.
- Take Profit — profit fixing levels in points.
- Lot — lot size.
- Magic Number — "magic" number of the orders.
The screenshots demonstrate the backtesting results. The Expert Advisor was tested on EURUSD H1 in the "Every tick" mode from 04.01.2016 to 13.08.2017, with the values Code Set=34, Lot=0.1, spread=20.
Good job.