去评论
彩虹桥投资充电站

通达信波段趋势王主图指标公式源码

xinting_6ym
2023/10/29 09:10:13

閫氳揪淇℃尝娈佃秼鍔跨帇涓诲浘鎸囨爣鍏紡婧愮爜

鈥婼HORT:=12;LONG:=26;M:=12;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,M);
macd:=2*(DIF-DEA);
KK:=IF(DIF>DEA,5,-5);
JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));{璁$畻鍑洪噾鍙夋鍙夋椂鐨凞IFF鍊紏
DD:=(MacD/2+(DEA*(M-1)/(M+1)))/(1-2/(M+1));{璁$畻鍑烘槑鏃ACD=MACD鏃剁殑DIFF鍊紏
DIF鎷愬ご浠:=(DIF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1)))COLORGREEN,POINTDOT;
閲戞鍙変环:=(JCSC*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),NODRAW;
鏌卞彉鍚戜环:=(DD*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),COLORYELLOW,POINTDOT;
榛勯摙娑堝け瑙侀《:=IF(鏌卞彉鍚戜环>=DIF鎷愬ご浠,鏌卞彉鍚戜环,DRAWNULL),COLORYELLOW,CIRCLEDOT,LINETHICK1;
涓婃嫄:IF(DIF鎷愬ご浠<鏌卞彉鍚戜环,DIF鎷愬ご浠,DRAWNULL),COLORRED,LINETHICK4;
涓嬫嫄:IF(DIF鎷愬ご浠>=鏌卞彉鍚戜环,DIF鎷愬ご浠,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;
ZJ:=涓婃嫄,COLOR0000FF;
HY:=閲戞鍙変环,COLORFF00FF;
IF(ZJ>REF(ZJ,1),ZJ,DRAWNULL),COLORRED,LINETHICK2;
IF(HY>REF(HY,1),HY,DRAWNULL),COLORMAGENTA,LINETHICK2,NODRAW;
IF(HY
STICKLINE(C>ZJ AND C>O,H,C,0,0 ),COLORRED;
STICKLINE(C>ZJ AND C>O,L,O,0,0 ),COLORRED;
STICKLINE(C>ZJ AND C>O,O,C,2.8,1),COLORRED;
STICKLINE(C>ZJ AND C<=O,H,L,0,0 ),COLORRED;
STICKLINE(C>ZJ AND C<=O,O,C,2.8,0),COLORRED;
STICKLINE(CLOSE=ZJ,H,L,3,0),COLORWHITE;
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(CO,H,C,0,0),COLORCYAN;
STICKLINE(CO,O,L,0,0),COLORCYAN;
STICKLINE(CO,O,C,2.8,1),COLORCYAN;
STICKLINE(C
STICKLINE(C
HD0:=crOSS(DIF,DEA);
涔板叆鍑嗗RAWICON(CROSS(鏌卞彉鍚戜环,DIF鎷愬ご浠),涓婃嫄,34);
鍗栧嚭鍑嗗RAWICON(CROSS(DIF鎷愬ご浠,鏌卞彉鍚戜环),涓嬫嫄,35);
SBL:=STRCAT(STRCAT(STRCAT(STRCAT(DYBLOCK,HYBLOCK),FGBLOCK),GNBLOCK),ZDBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.01,0.005,0,SBL),COLORCYAN;

彩虹桥投资充电站 版权所有 @ 2018-2020