Join our fan page
- Views:
- 4337
- Rating:
- Published:
- 2019.01.02 14:40
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
A trading system based on the signals of the SpearmanRankCorrelation_Histogram indicator. The signal is formed at the bar Close. There are three possible position entry and exit algorithms.
- Entry and exit at a zero breakout;
- Entry in overbought and oversold zones, exits at zero breakout;
- Entry and exit only in the overbought and oversold zones.
To set one of these options, change the value of the following input parameter:
input TradeMode Trade_Mode=ENUM_TRADE_MODE_1; //Entry and exit algorithm
For the generated EA to operate correctly, the compiled SpearmanRankCorrelation_Histogram.ex5 indicator file should be available 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 2017 on EURJPY H4:
Fig. 2. Testing results chart
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/23279
![VTS_Float_Pivot_Smoothed_HTF](https://c.mql5.com/i/code/indicator.png)
The VTS_Float_Pivot_Smoothed indicator with the ability to change the indicator timeframe using input parameters
![VTS_Float_Pivot_Smoothed](https://c.mql5.com/i/code/indicator.png)
A trend indicator VTS using the Float_Pivot_Smoothed channel.
![ColorMFI_X20](https://c.mql5.com/i/code/indicator.png)
Twenty MFI indicators displayed in one window. Each line can be colored depending on its position relative to overbought and oversold areas
![ColorMFI_X20_Cloud](https://c.mql5.com/i/code/indicator.png)
The ColorMFI_X20 indicator featuring background filling in overbought/oversold areas