Forum on trading, automated trading systems and testing trading strategies
EA using ZIGZAG
Sergey Golubev, 2018.04.10 16:07
The power of ZigZag (part I). Developing the base class of the indicator - the article
Many researchers simply skip or do not pay enough attention to determining the price behavior. At the same time, complex methods are used, which very often are simply “black boxes”, such as machine learning or neural networks. The most important question arising in that case is what data to submit for training a particular model. In this article, we will expand the tools for such studies. You will find out how to select more appropriate symbols for trading before searching for the optimal parameters. To achieve this, we will use a modified version of ZigZag indicator and the code class that significantly simplifies obtaining and working with data of indicators belonging to this type.
In this series of articles, we will implement:
The power of ZigZag (part II). Examples of receiving, processing and displaying data - the article
EA based on zigzag indicator -
ZigZag step market - expert for MetaTrader 5
The Expert Advisor works on a custom ZigZag Color indicator (this indicator is supplied with the terminal, the path to it is: MQL5 \ Indicators \ Examples \ ZigzagColor.mq5).
Working on the current leg of indicator: if the knee directed downward - means every Step (or nearly every Step) SELL open position when the knee is directed upwards - is trying to open BUY position approximately adhere step Step.