The Expert Advisor trades using the Japanese Doji Candlestick pattern.
The Doji candlestick has practically no body, it only has shadows. But this code provides the "Maximum Doji height" setting, in which you can set the height of the candlestick body.
Only one open position is allowed. If the EA accidentally opens more than one position, all positions will be closed. The EA performs trading operations on a new bar (when a new bar emerges), and checks the previous three bars (skipping the zero bar). If a "doji" like bar is detected, a signal to open a position is generated.
Example of testing on EURUSD, H1:
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/19603
A further development of code "Dealers Trade v 7.74 MACD" (https://www.mql5.com/en/code/19535). "Zero-lag MACD" (https://www.mql5.com/en/code/170) is used. When the number of positions increases, the following is also increased: step between positions, lot size, take profit (martingale).Four clicks to draw an arc-shaped channel
A quick way to draw an arc-shaped channel using four mouse clicks.