1 / 6
文档名称:

KDJ背离预警MT4外汇指标.doc

格式:doc   大小:20KB   页数:6页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

KDJ背离预警MT4外汇指标.doc

上传人:gorynich 2022/2/9 文件大小:20 KB

下载得到文件列表

KDJ背离预警MT4外汇指标.doc

文档介绍

文档介绍:KDJ背离预警 MT4外汇指标
#property copyright "Copyright? 2010,"
#property indicator_separate_window #property indica---- indicators
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,percentK);
SetIndexLabel(0, "%K");
SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,percentD);
SetIndexLabel(1, "%D");
SetIndexStyle(2,DRAW_LINE);
SetIndexBuffer(2,percentJ);
SetIndexLabel(2, "%J");
SetIndexBuffer(3,RSV);
SetIndexBuffer(4, UpperFr);
SetIndexBuffer(5, LowerFr);
//
SetIndexEmptyValue(4, 0);
SetIndexEmptyValue(5, 0);
//
SetIndexStyle(4, DRAW_ARROW);
SetIndexArrow(4, 241);
//
SetIndexStyle(5, DRAW_ARROW);
SetIndexArrow(5, 242);
//----
return(0);
}
//+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start()
{
int counted_bars=IndicatorCounted();
//----
int i, k, num;
double Ln, Hn, Cn;
//----
i = Bars - counted_bars - 1;
num = Bars - nPeriod;
while(i>=0)
{
Cn = iClose(NULL,0,i); Ln = iClose(NULL,0,i); Hn = iClose(NULL,0,i);
for(k=0; k<nPeriod; k+