Join our fan page
- Views:
- 4624
- Rating:
- Published:
- 2018.03.28 09:59
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
There has been a lot of complaints of some people that MetaTrader 5 is so much more complicated than MetaTrader 4 regarding the code. But it seems that people haven't explored the possibilities of MetaTrader 5 to the full.
Here is just one example: a very well known RSI of average is made with, all in all, 3 lines of a code in a main loop (color assignment on RSI slope change included in those 4 lines). That is not possible in MetaTrader 4. Hence some of the complaints are not valid at all. This one can be used as template for some other indicator and can provide a simplicity solution for those that think that everything is very complicated in MetaTrader 5.
![Stochastic of T3](https://c.mql5.com/i/code/indicator.png)
This version of Stochastic Oscillator reduces the number of false alerts by smoothing the price prior to be used in the stochastic calculation. That makes a nice smooth stochastic as a result that can easily be used for trend trading systems.
![Hull MACD](https://c.mql5.com/i/code/indicator.png)
This version of MACD uses Hull Moving Average for MACD calculation instead of using EMA (as the original Gerald Appel version does). That makes it "faster" than the EMA version and suitable for scalping techniques as well as for trending techniques (if longer calculation periods are used).
![MACD of average](https://c.mql5.com/i/code/indicator.png)
This is a MACD that can use average for input price instead of using "pure" price. That can help in filtering some false signals, but the main purpose of this code is to show how simple some things can be done using MetaTrader 5. In addition to all usual options when it comes to this type of indicators, option to have color changes based on MACD slope change or MACD crossing signal line.
![Schaff Trend Cycle](https://c.mql5.com/i/code/indicator.png)
The Schaff Trend Cycle (STC) indicator detects up and down trends long before the MACD. It does this by using the same Exponential Moving Averages (EMAs), but adds a cycle component to factor currency cycle trends. Since currency cycle trends move based on a certain amount of days, this is factored into the equation of the STC indicator to give more accuracy and reliability than the MACD.