大智慧指标公式下载 大智慧短打献出价量时空公式源码
{价量时空}
ma1:CLOSE,LINETHICK0,PRECIS2;
MA5:MA(CLOSE,5),coloryellow,PRECIS2;
MA13:MA(CLOSE,13),colorf00ff0,PRECIS2;
MA34:MA(CLOSE,34),colorgreen,PRECIS2;
MA55:MA(CLOSE,55),colorwhite,PRECIS2;
MA89:MA(CLOSE,89),colorgreen,PRECIS2,linethick3,pointdot;
MA233:MA(CLOSE,233),colorwhite,PRECIS2,linethick3,pointdot;
STICKLINE(C>=O,H,L,1,0),color5454ff;
STICKLINE(C>=O,C,O,8,0),color5454ff;
STICKLINE(C>=O,C,O,7,0),color5f5fff;
STICKLINE(C>=O,C,O,3,0),color7878ff;
STICKLINE(C>=O,C,O,2,0),color9A9Aff;
STICKLINE(C>=O,C,O,1,0),colorA8A8ff;
STICKLINE(C<O,H,L,1,0),colorFFFF54;
STICKLINE(C<O,C,O,8,0),colorFFFF54;
STICKLINE(C<O,C,O,7,0),colorFFFF62;
STICKLINE(C<O,C,O,6,0),colorFFFF75;
STICKLINE(C<O,C,O,5,0),colorFFFF83;
STICKLINE(C<O,C,O,4,0),colorFFFF96;
STICKLINE(C<O,C,O,3.5,0),colorFFFFa5;
gg:=PEAKBARS(4,20,1)+1;
dd:=TROUGHBARS(4,20,1)+1;
VOL1:=MA(VOL,1);
VOL5:=MA(VOL,5);
最大量:=HHV(VOL1,DD);
量支撑:=VOL1=最大量 AND C>REF(C,1);
LSJ:BARSLAST(量支撑),LINETHICK0;
LGJG:=REF(C,LSJ);
LDJG:=REF(L,LSJ);
压力:IF(CROSS(VOL5,VOL1),LGJG,REF(LGJG,BARSLAST(CROSS(VOL5,VOL1)))),colorwhite,LINETHICK0;
支撑:IF(CROSS(VOL5,VOL1),LDJG,REF(LDJG,BARSLAST(CROSS(VOL5,VOL1)))),colorwhite,LINETHICK0;
FILLRGN(压力,支撑,LGJG>LDJG,rgb(128,128,128)),LAYER5;
DRAWTEXTABS(10,50,'(34):'+NUMTOSTRN(MA34,2)),colorgreen;
DRAWTEXTABS(90,50,'(89):'+NUMTOSTRN(MA89,2)),colorgreen;
DRAWTEXTABS(170,50,'(233):'+NUMTOSTRN(MA233,2)),colorwhite;
DDJG:=LLV(L,DD);
XJSJ:=last(dd>gg);
drawtext(DD>0,DDJG*0.95,STR(DD)),colorwhite,align1,valign0,LAYER3;
drawtext(XJSJ>0,DDJG*0.99,STR(XJSJ)),coloryellow,align1,valign0,LAYER3;
FILLRGN(DDJG,DDJG*0.91,C>0,rgb(0,0,0)),LAYER5;
FD10:=DDJG*1.1;
FD20:=DDJG*1.2;
FD30:=DDJG*1.3;
FD40:=DDJG*1.4;
FD50:=DDJG*1.5;
FD60:=DDJG*1.6;
翻1:=DDJG*2;
FILLRGN(DDJG,FD20,C>0,rgb(0,50,0)),LAYER6;
FILLRGN(FD20,FD40,C>0,rgb(0,80,0)),LAYER6;
FILLRGN(FD40,FD60,C>0,rgb(0,100,0)),LAYER6;
drawtext(c>FD60,翻1,'');
drawtext(c>FD60 and CROSS(c,FD60),翻1,'目标'),Color00EEFF;