Join our fan page
- Published by:
- paidtologin
- Views:
- 55805
- Rating:
- Published:
- 2014.07.10 10:29
- Updated:
- 2016.11.22 07:32
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
This indicator based on a 5 period simple moving average detects trends: if there is an uptrend then shows green bars, if there is a downtrend then shows red bars, if there is a weak trend then shows yellow bars.
The detection of the trend is made by dividing the moving average value by its previous one, so if greater than 1 then there is an uptrend, if lesser than 1 then there is a downtrend.
The flat trend is shown if the absolute difference between 1 and this ratio is lesser than the tolerance specified in the input levels. You can improve the performance of this indicator by changing the tolerance, the kind of moving average and its period.

3 EMA Crossover Indicator.

This indicator will write value degrees of the lastest position of price at the current timeframes, and when position and condition of trend status was changed, the indicator will give an alerts.