• Overview
  • Reviews (4)
  • Comments (2)
  • What's new

CodEx 4

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.

Thomas Engel
2017.10.20 22:45 


Andrey Litvichenko
2017.10.20 07:19 

User didn't leave any comment to the rating

2017.09.22 23:07 

Testing gives very good results.

Also very good with USDJPY,m15 with some changes in the variables.

For it to become perfect I think you should add a stoploss in the variables.

I'll keep an eye on it.

Evgenii Bazenko
2017.09.20 13:14 

Зачем ваш советник вмешиваться в работу других советников вы нормальный???

Пахнет идиотизмом....

Устраните проблему...

Version 1.1 - 2017.11.01
Added input parameters Stop Loss and Take Profit in points.
Added input parameter Magic Number.