CC Positive Peaks Trend Arrows Indicator
This is a customized indicator, created in Meta-Trader 4 (MT4). The indicator uses buffer values of CC indicator. It creates a straight line that passes through positive peak of a currency. The line is created for the period during which the currency is positive. Moreover, an arrow is placed at positive peak value of a currency, if this peak is greater than the previous adjacent positive peak value of other currency.
An arrow pointing up (buy) gets displayed on primary currency’s peak, if it is greater than previous adjacent positive peak of the secondary currency. Similarly, an arrow pointing down (sell) gets displayed on secondary currency’s peak, if it is greater than previous adjacent positive peak of the primary currency. Both the peak line’s and the arrow’s positions get updated with change in live data.
Following inputs are asked by the indicator:
- ShowOnlyPairOnChart = true;
- MA_Method: It is an integer value, that decides smoothing method for moving averages. 0 - Simple averaging, 1 - Exponential averaging, 2 - Smoothed averaging, or 3 - Linear-weighted averaging.
- Price: It is an integer value, that decides type of price over which moving averages is applied. 0 - Close price; 1 - Open price; 2 - High price; 3 - Low price; 4 - Median price = (High + Low)/2; 5 - Typical price = (High + Low + Close)/3;
or 6 - Weighted close price = (High + Low + Close + Close)/4.
- USD: It indicates whether to consider the individual currency, USD, for plotting or not, if ShowOnlyPairOnChart is set to “false”. 0 - not to consider USD, or 1 - consider USD.
Similar, selecting inputs are available for following currencies: EUR, GBP, CHF, JPY, AUD, CAD, and NZD.
- Color_USD: It accepts color data for USD line, generated by the indicator if USD is set to 1. Similar, color inputs are available for following currencies: EUR, GBP, CHF, JPY, AUD, CAD, and NZD.
- Line_Thickness: Width of any currency line displayed by the indicator.
- Following inputs are used to set moving average period for different time-frames. These input names mean as follows:
- a. Prefix: It indicates type of time-frame:
- mn - monthly, w - weekly, d - daily, h4 - four-hours, h1 - one-hour, m30 - thirty-minutes, m15 - fifteen-minutes, m5 - five-minutes, or m1 - one-minutes
- b. Postfix: It indicates type of moving averages:
- _per - slow moving averages, or _fast - fast moving averages