以下是大智慧金蛇七寸副图源码

大智慧金蛇七寸副图源码

var10:=100*(c-cost(10))/cost(10);
空跌:=ref(var10,1)<0 or ref (var10,2)<0;
DIFF: EMA(CLOSE,12) – EMA(CLOSE,26),colorwhite;
DEA:=EMA(DIFF,9);
macd: 2*(DIFF-DEA), COLORSTICK,LINETHICK2;
A1:EMA(C,13)>REF(EMA(C,13),1) AND MACD>REF(MACD,1),COLORFF00FF,LINETHICK0;
A2:=EMA(C,13)<REF(EMA(C,13),1) AND MACD<REF(MACD,1);

STICKLINE(a1>0 ,0,MACD,4,0),COLORRED;
STICKLINE(a2>0 ,0,MACD,4,0),COLORGREEN;
PARTLINE(DIFF,DIFF>DEA,RGB(255,153,153),DIFF<DEA,RGB(153,153,255));

DIFF2:=EMA(CLOSE,9)-EMA(CLOSE,26);
DEA2:=EMA(DIFF2,9);
红:((2)*(DIFF2-DEA2)),CoLor0000FF;
紫:MA(((2)*(DIFF2-DEA2)),5),CoLorFF00FF;
da:=MAX(DIFF,DEA,紫);
上突四线:cross(红,da) and 紫>DIFF and 紫<0 and 空跌>0,COLORFF00FF,LINETHICK0;
VERTLINE(上突四线 ,6),Culorred;
下突四线:cross(紫,红) and 紫<DIFF and 紫>0 ,COLORFF00FF,LINETHICK0;
STICKLINE(下突四线>0,0,macd,4,0),COLORWHITE;
DRAWTEXT(下突四线>0,DIFF+0.5,’注意!’),COLORFFFFFF;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。