Join our fan page
- Views:
- 7116
- Rating:
- Published:
- 2014.03.25 15:12
- Updated:
- 2023.03.29 13:47
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Trading system using the Digital_MACD indicator.
A trade signal is formed when a bar is closing if the MACD histogram breaks through the zero level or direction of the histogram or signal line has changed, and if the histogram breaks through the signal line.
The following input parameter is used for selecting an entry algorithm option:
input AlgMode Mode=MACDtwist; // Algorithm for market entering
The Expert Advisor requires the compiled file of the indicator Digital_MACD.ex5. Place it to terminal_data_folder\MQL5\Indicators.
Note that the TradeAlgorithms.mqh library file allows using Expert Advisors with brokers who offer nonzero spread and the option of setting Stop Loss and Take Profit together with position opening. You can download more variants of the library at the following link: TradeAlgorithms.
Default Expert Advisor's input parameters have been used during the tests shown below. Stop Loss and Take Profit have not been used during the tests.
Fig. 1 The instances of history of deals on the chart.
Testing results for 2013 at USDJPY H4:
Fig. 2 Testing results
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/2159

The ZigZag indicator using Joe DiNapoli algorithm.

The MultiBlauTSStochasticx7Signal indicator shows information on active trends using the values of seven BlauTSStochastic indicators from different timeframes.

Pivot Points indicator.

Semaphore signal indicator, based on Bill Williams' Alligator indicator.