ColorPEMA_Digit_Trend_x10 - MetaTrader 5 的趋势指示器

Mike 2019.02.07 17:56 19 0 0
附件

ColorPEMA_Digit_Trend_x10 指标可以显示来自十个不同时间框的 ColorPEMA_Digit 指标信号的方向。趋势延续通过右箭头表示,而趋势反转则通过对角向上的或向下的箭头表示。

//+----------------------------------------------+//| 指标输入参数                   |//+----------------------------------------------+inputENUM_TIMEFRAMES TimeFrame0=PERIOD_H1;           //图表 1 时间周期inputENUM_TIMEFRAMES TimeFrame1=PERIOD_H2;           //图表 2 时间周期inputENUM_TIMEFRAMES TimeFrame2=PERIOD_H3;           //图表 3 时间周期inputENUM_TIMEFRAMES TimeFrame3=PERIOD_H4;           //图表 4 时间周期inputENUM_TIMEFRAMES TimeFrame4=PERIOD_H6;           //图表 5 时间周期inputENUM_TIMEFRAMES TimeFrame5=PERIOD_H8;           //图表 6 时间周期inputENUM_TIMEFRAMES TimeFrame6=PERIOD_H12;          //图表 7 时间周期inputENUM_TIMEFRAMES TimeFrame7=PERIOD_D1;           //图表 8 时间周期inputENUM_TIMEFRAMES TimeFrame8=PERIOD_W1;           //图表 9 时间周期inputENUM_TIMEFRAMES TimeFrame9=PERIOD_MN1;          //图表 10 时间周期inputuint SignalBar=1;                               //接收信号的柱子编号 (0 - 当前柱)//---- ColorPEMA_Digit 参数inputdouble EmaLength=50.01;                         //平滑深度                   input Applied_price_ IPC=PRICE_CLOSE_;                //价格常量inputuint Digit=2;                                   //四舍五入的位数//---- 指标绘制参数inputcolor  CpColor=clrBlueViolet;                   //指标名称颜色inputcolor  BuyColor=clrDodgerBlue;                  //买入信号颜色inputcolor  UpColor=clrMediumBlue;                   //上升趋势延续颜色inputcolor  NnColor=clrGray;                         //无趋势颜色inputcolor  DnColor=clrPurple                       //下降趋势延续颜色inputcolor  SellColor=clrMagenta                    //卖出信号颜色inputint    FontSize=15                             //字体大小input type_font FontType=Font14;                      //字体类型inputENUM_BASE_CORNER  WhatCorner=CORNER_LEFT_LOWER; //位置角落inputuint Y_=20                                     //垂直位置inputuint X_=5                                      //水平位置

为了使该指标正常工作,必须将 ColorPEMA_Digit.ex5 指标添加到 <terminal_data_directory>\MQL5\Indicators 文件夹中。要编译该指标,必须在 <terminal_data_directory>\MQL5\Include 文件夹中有 GetFontName.mqh 文件。

该指标使用库 GetFontName.mqh 的类(需复制到 terminal_data_directory\MQL5\Include)。


图1. ColorPEMA_Digit_Trend_x10 指标

图1. ColorPEMA_Digit_Trend_x10 指标

列表
评论 0