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:
20132
Rating:
(24)
Published:
2014.05.13 10:06
Updated:
2016.11.22 07:32
\MQL5\Include\ \MQL5\Indicators\
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

A trading system that uses the XD-RangeSwitch semaphore, signal indicator.

Trade decisions are made when colored arrow appear, if their direction is the same as the direction of deals or opposite to it.

input Mode   Direct=FalshDirect;  // Trade direction

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.

The Expert Advisor requires the compiled file of the indicator XD-RangeSwitch.ex5. Place it to terminal_data_folder\MQL5\Indicators.

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

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

Testing results for 2013 at EURUSD H4:

Figure 2. Chart of testing results

Figure 2. Chart of testing results

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

DailyLines Vertical lines starting new Day with above name of the DAY. Period Separators with options to choose different styles. DailyLines Vertical lines starting new Day with above name of the DAY. Period Separators with options to choose different styles.

Like period Separator each new day will gets its vertical line at starting. With several options how to display

XD-RangeSwitch_HTF XD-RangeSwitch_HTF

The XD-RangeSwitch indicator with the timeframe selection option available in input parameters.

BackgroundСandle_XD-RangeSwitch_HTF BackgroundСandle_XD-RangeSwitch_HTF

The indicator draws candlesticks of a larger timeframe as color filled rectangles in accordance with the values of the XD-RangeSwitch indicator.

VolatilityPivot VolatilityPivot

The trend indicator made as NRTR (Nick Rypock Trailing Reverse).