ColorPEMA_Digit_Trend_x10 - indicator for MetaTrader 5




ColorPEMA_Digit_Trend_x10 - indicator for MetaTrader 5


Indicator ColorPEMA_Digit_Trend_x10 displays the directions of the ColorPEMA_Digit indicator signals from ten different timeframes from the bar specified in the indicator inputs A trend continuation is displayed by the right arrow, while a reversal is displayed by a diagonal up or down arrow.

//+----------------------------------------------+
//| Indicator input parameters                   |
//+----------------------------------------------+
input ENUM_TIMEFRAMES TimeFrame0=PERIOD_H1;           //chart 1 period
input ENUM_TIMEFRAMES TimeFrame1=PERIOD_H2;           //chart 2 period
input ENUM_TIMEFRAMES TimeFrame2=PERIOD_H3;           //chart 3 period
input ENUM_TIMEFRAMES TimeFrame3=PERIOD_H4;           //chart 4 period
input ENUM_TIMEFRAMES TimeFrame4=PERIOD_H6;           //chart 5 period
input ENUM_TIMEFRAMES TimeFrame5=PERIOD_H8;           //chart 6 period
input ENUM_TIMEFRAMES TimeFrame6=PERIOD_H12;          //chart 7 period
input ENUM_TIMEFRAMES TimeFrame7=PERIOD_D1;           //chart 8 period
input ENUM_TIMEFRAMES TimeFrame8=PERIOD_W1;           //chart 9 period
input ENUM_TIMEFRAMES TimeFrame9=PERIOD_MN1;          //chart 10 period
input uint SignalBar=1;                               //Bar number to receive a signal (0 - current bar)
//---- Parameters of ColorPEMA_Digit
input double EmaLength=50.01;                         //smoothing depth                   
input Applied_price_ IPC=PRICE_CLOSE_;                //price constant
input uint Digit=2;                                   //number of digits to round to
//---- Indicator drawing parameters
input color  CpColor=clrBlueViolet;                   //indicator name color
input color  BuyColor=clrDodgerBlue;                  //Buy signal color
input color  UpColor=clrMediumBlue;                   //uptrend continuation color
input color  NnColor=clrGray;                         //no-trend color
input color  DnColor=clrPurple;                       //downtrend continuation color
input color  SellColor=clrMagenta;                    //Sell signal color
input int    FontSize=15;                             //font size
input type_font FontType=Font14;                      //font type
input ENUM_BASE_CORNER  WhatCorner=CORNER_LEFT_LOWER; //location corner
input uint Y_=20;                                     //vertical location
input uint X_=5;                                      //horizontal location

For the indicator to work, the ColorPEMA_Digit.ex5 indicator must be added to the <terminal_data_directory>MQL5Indicators folder. To compile the indicator, file GetFontName.mqh must be available in the <terminal_data_directory>MQL5Include  folder.

The indicator uses the classes of library GetFontName.mqh (to be copied to terminal_data_directoryMQL5Include).


Fig. 1. Indicator ColorPEMA_Digit_Trend_x10

Fig. 1. Indicator ColorPEMA_Digit_Trend_x10


Download ColorPEMA_Digit_Trend_x10 - indicator for MetaTrader 5




Related News




Latest News
U.S. Stock Index Futures Slide After Oil Jumps on Drone Attack
16.09.2019 04:18
(Bloomberg) -- U.S. stock index futures dropped as global oil prices surged the most on record after a drone strike on a Saudi Arabian oil facility increased geopolitical risk concern. S&P 500 Index futures expiring in December dropped as much as 0.8% as of 9:25 a.m. in Singapore. Contracts slumped 1.4% on the Nasdaq 100 and declined 0.8% on the
Read more
Hong Kong's World Class Subway in Crisis After Repeated Attacks
16.09.2019 04:15
(Bloomberg) -- From Sydney to Stockholm, governments looking for help with their rail systems turn to Hong Kong’s MTR Corp., renowned for its speedy, clean and reliable commuter trains. That polished image is now tarnished at home, as months of unrest frequently boils into violence and vandalism on Hong Kong’s subway. MTR facilities have looked
Read more
Next Trump Tariffs May Soon Hit Europe’s Luxury-Goods Exporters
16.09.2019 04:12
(Bloomberg) -- Some of Europe’s top luxury brands are targeted in President Donald Trump’s latest tariff salvo, which could affect billions of dollars in exports of American-bound whiskeys, wine, Champagne, handbags and men’s suits. A panel of three World Trade Organization arbiters, as expected, said Friday the U.S. can legally impose tariffs on
Read more
China’s Economy Slows as Industrial Output Weaker Than Expected
16.09.2019 04:09
(Bloomberg) -- China’s economy slowed further in August, indicating current stimulus policies may not be enough to shield the economy from the worsening effects of the trade war with the U.S. Industrial output rose 4.4% from a year earlier, versus a median estimate of 5.2%. Retail sales expanded 7.5%, compared to a projected 7.9% increase.
Read more
OxyContin maker Purdue Pharma files for bankruptcy protection
16.09.2019 04:06
By Mike Spector NEW YORK (Reuters) - OxyContin maker Purdue Pharma LP filed for bankruptcy protection in New York Sunday night, succumbing to pressure from more than 2,000 lawsuits alleging the company helped fuel the deadly U.S. opioid epidemic. Purdue's board met Sunday evening to approve the long-expected bankruptcy filing, which the
Read more