Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
6630
Rating:
(31)
Published:
2014.03.25 15:12
Updated:
2023.03.29 13:47
\MQL5\Include\ \MQL5\Indicators\
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.

Fig. 1 The instances of history of deals on the chart.

Testing results for 2013 at USDJPY H4:

Fig. 2. Chart of testing results

Fig. 2 Testing results

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/2159

Dinapoli_ZZ Dinapoli_ZZ

The ZigZag indicator using Joe DiNapoli algorithm.

MultiBlauTSStochasticx7Signal MultiBlauTSStochasticx7Signal

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

Dyn_Pivot Dyn_Pivot

Pivot Points indicator.

BW-wiseMan-1 BW-wiseMan-1

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