The Exp_TDI-2_ReOpen trading system based on the intersection of TDI-2 indicator lines, with adding to trend-following positions. The signal is formed when a bar is closing if the indicator lines were crossed. When there is an open position, the trading system increases the volume of the open position if profit in points from the last trade increases a threshold fixed in the EA inputs.
Information on position scaling is stored in string comment to the trade in the format of: number of scales / price of last deal / volume of last deal.
This Expert Advisor requires the compiled indicator file TDI-2.ex5 in order to run. Place it to <terminal_data_folder>\MQL5\Indicators.
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.
Fig1. Examples of deals on the chart
Testing results for 2015 on USDCHF H4:
Fig.2. Chart of testing results
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/17455
Semaphore signal indicator based on the price action strategy looking for the strongest intraday trend, which can notify about trend change by generating an alert, sending an email or a push notification to a mobile device.aChartsAndMW5Class
The class allows to easily determine from your MQL5 programs any changes in the Market Watch window (change of symbol sorting, adding, deleting a symbol or a set of symbols), as well as opening and closure of charts, and the availability of the one click trading option on the current chart, on which the program is running.