Join our fan page
- Views:
- 4659
- Rating:
- Published:
- 2019.01.02 14:39
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
A trading system based on the SR-RateIndicator indicator signals. A trade signal is generated at the close of a bar if the color of the histogram has changed from dark to bright pink or lime, i.e. when the indicator has entered the overbought or oversold zone.
For the generated EA to operate correctly, the compiled SR-RateIndicator.ex5 indicator file should be added in the <terminal_data_directory>\MQL5\Indicators folder.
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 during position opening.
The EA default input parameters were used in tests below. Stop Loss and Take Profit were not used in testing.
Fig. 1. Example of trades on the chart
Testing results for the year 2017, EURUSD H12:
Fig. 2. Testing results chart
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/23260

Brief Description

The Expert Advisor operates using pending Buy limit and Sell limit orders. It uses High and Low of the D1 timeframe (bars #1 and #2)

A trend indicator VTS using the Float_Pivot_Smoothed channel.

The VTS_Float_Pivot_Smoothed indicator with the ability to change the indicator timeframe using input parameters