- 显示:
- 5770
- 等级:
- 已发布:
- 2016.05.06 13:29
-
需要基于此代码的EA交易或指标吗?请在自由职业者服务中订购 进入自由职业者服务
所有指标建议和入场点出现的解释可发送电子邮件。
//+------------------------------------------------------------------+
//| 缺口指标 |
//| FOREX&STOX |
//| ram-kr@krastalk.ru |
//+------------------------------------------------------------------+
#property copyright "ram-kr@krastalk.ru"
#property link ""
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Red
#property indicator_width1 2
#property indicator_width2 2
double ExtMapBuffer1[];
double ExtMapBuffer2[];
//+------------------------------------------------------------------+
//| 自定义初始化函数 |
//+------------------------------------------------------------------+
int init()
{
//---- 指标
IndicatorBuffers(2);
SetIndexStyle(0,DRAW_HISTOGRAM);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexLabel(0,"Blue");
SetIndexStyle(1,DRAW_HISTOGRAM);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexLabel(1,"Red");
//----
IndicatorShortName("Gap indicator FOREX&STOX");
//----
return(0);
}
//+------------------------------------------------------------------+
//| 自定义指标逆初函数 |
//+------------------------------------------------------------------+
int deinit()
{
return(0);
}
//+------------------------------------------------------------------+
//| 自定义迭代函数 |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
double BandsMode,BandsPrice,PowerPrice;
//+----主要部分--------------------------------------------------+
double value1, value2;
for(int i=0;i<=Bars;i++)
{
value1=0; value2=0;
// 缺口向下 \---------------------------------------------
if( (Open[i]-Close[i+1])>0 ) value1=(Open[i]-Close[i+1])/Point;
// 缺口向上 /----------------------------------------------
if( (Open[i]-Close[i+1])<0 ) value2=(Open[i]-Close[i+1])/Point;
//--------------------------------------------------------
ExtMapBuffer1[i]=value1;
ExtMapBuffer2[i]=value2;
} //结束迭代
//+------------------------------------------------------------------+
return(0);
}
//+------------------------------------------------------------------+
由MetaQuotes Ltd译自俄语
原代码: https://www.mql5.com/ru/code/7366

我开发的绘制 DeMark 线的版本, 另外还在趋势线上绘制通道和目标。多加了一个目标 (第三个定义为内极值 1.62), 添加了当收盘于通道内时的信号消除。

最初价格变动的衍生物, 或更简单地趋势速度和标志的指示。

之字折线指标, 当图表上出现新线时带有声音警报。

指标用于使用 CCI 的策略。当使用 Woodies CCI 进行交易, 您所需的一切就是找到 Woodies CCI 形态。