黄金分时买卖主图指标通达信指标公式源码

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

一个黄金分时买卖,用着感觉还不错

"GG.CDP#DAY"COLORYELLOW

DOTLINE;DRAWNUMBER(CURRBARSCOUNT=1,"GG.CDP#DAY","GG.CDP#DAY"),COLORY ELLOW;

"GG.AH#DAY",COLORRED;

DRAWNUMBER(CURRBARSCOUNT=1,"GG.AH#DAY","GG.AH#DAY"),COLORMAGENTA; "GG.NH#DAY",COLORYELLOW;DRAWNUMBER(CURRBARSCOUNT=1,"GG.NH#DAY","GG. NH#DAY"),COLORCYAN;

"GG.NL#DAY",COLORYELLOW;DRAWNUMBER(CURRBARSCOUNT=1,"GG.NL#DAY","GG.N L#DAY"),COLORLICYAN;

"GG.AL#DAY",COLORLIRED;DRAWNUMBER(CURRBARSCOUNT=1,"GG.AL#DAY","GG.AL# DAY"),COLORLIMAGENTA;

{黄金分割}

HH:=CONST(HHV(C,0));

LL:=CONST(LLV(C,0));

HL:=HH-LL;

A76:=0.764*HL+LL,COLORCYAN,POINTDOT;

A61:=0.618*HL+LL,COLORCYAN,POINTDOT;

A38:=0.382*HL+LL,COLORCYAN,POINTDOT;

A23:=0.236*HL+LL,COLORCYAN,POINTDOT;

A51:=0.495*HL+LL,COLORCYAN,POINTDOT;

A52:=0.505*HL+LL,COLORCYAN,POINTDOT;

DRAWBAND(HH,RGB(0,30,30),A76,RGB(0,30,30));

DRAWBAND(A23,RGB(0,30,30),LL,RGB(0,30,30));

DRAWBAND(A76,RGB(100,30,100),A61,RGB(100,30,100));

DRAWBAND(A38,RGB(100,30,100),A23,RGB(100,30,100));

DRAWBAND(A61,RGB(100,90,0),A38,RGB(100,90,0));

DRAWBAND(A51,RGB(180,100,100),A52,RGB(180,100,100));

DRAWTEXT(CURRBARSCOUNT=240,HH*0.999,'高'),COLORCYAN;

DRAWTEXT(CURRBARSCOUNT=240,LL*1.001,'低'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=240,A76,'压'),COLORCYAN; DRAWTEXT(CURRBARSCOUNT=240,A23,'撑'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=240,A52,'中'),COLOR00FFFF;

{分时量}

预测量:="FSKY.预测量#DAY";

主买:="FSKY.主买#DAY";

前量:="FSKY.前量#DAY";

昨量:="FSKY.昨量#DAY";

今量:="FSKY.今量#DAY";

前4:="FSKY.前4#DAY";

前5:="FSKY.前5#DAY";

前总:=前量;

昨总:=昨量;

总:=今量,NODRAW;

BMM:=MAX(前总,昨总);

AMM:=IF(总/BMM>2,BMM*3,BMM);

MM:=500/AMM;

KP:=DYNAINFO(4);

ZX:=DYNAINFO(7);

A1:=IF(ZX>=KP,255,0);

A2:=IF(ZX>=KP,0,255);

A3:=IF(ZX>=KP,0,255);

DRAWRECTREL(0,160,MM*预测量,190,RGB(90,90,90)); DRAWRECTREL(0,160,MM*今量,190,RGB(A1,A2,A3)); DRAWRECTREL(0,160,MM*主买,190,RGB(250,250,280));

ZO:="FSKY.ZO#DAY";

ZC:="FSKY.ZC#DAY";

A4:=IF(ZC>=ZO,255,0);

A5:=IF(ZC>=ZO,0,255);

A6:=IF(ZC>=ZO,0,255);

DRAWRECTREL(0,120,MM*昨量,150,RGB(A4,A5,A6));

JO:="FSKY.JO#DAY";

JC:="FSKY.JC#DAY";

A7:=IF(JC>=JO,255,0);

A8:=IF(JC>=JO,0,255);

A9:=IF(JC>=JO,0,255);

DRAWRECTREL(0,80,MM*前量,110,RGB(A7,A8,A9));

JO3:="FSKY.JO3#DAY";

JC3:="FSKY.JC3#DAY";

A10:=IF(JC3>=JO3,255,0);

A11:=IF(JC3>=JO3,0,255);

A12:=IF(JC3>=JO3,0,255);

DRAWRECTREL(0,40,MM*前4,70,RGB(A10,A11,A12));

相关文档
最新文档