Join our fan page
- Views:
- 5849
- Rating:
- Published:
- 2015.12.04 11:21
- Updated:
- 2016.11.22 07:32
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The Dots indicator is based on an indicator developed by TrendLaboratory in 2006. The indicator shows current trend direction by placing colored dots on the main chart. Blue dots indicate an uptrend, red dots indicate a downtrend.
The indicator's calculations are not based on the standart indicators of the MetaTrader platform. The calculation is based on cosine of a price change angle. The trader can set several input parameters of the indicator:
//+-----------------------------------+ //| Indicator input parameters | //+-----------------------------------+ input uint Length = 10; // Depth of smoothing input uint Filter = 0; // parameter allowing to filter price surges without adding display lags. input Applied_price_ IPC=PRICE_CLOSE_; // Applied price input int PriceShift=0; // Vertical indicator shift in points input int Shift=0; // Horizontal indicator shift in bars
Originally this indicator has been written in MQL4 and was first published in the Code Base on 09.06.2015.
Fig.1. The Dots indicator
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/14265

The Exp_ColorXCCXCandle Expert Advisor is based on the change of color of the ColorXCCXCandle indicator candles.

The Super_Trend indicator with the timeframe selection option available in the input parameters.