通达信《新趋势顶底》副图指标公式源码:
DRAWGBK(OPEN>0,RGB(33,47,58),RGB(0,0,0),0,574,0); VAR1:=EMA(CLOSE,2); VAR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42); VAR3:=MA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19); VAR4:=(-100)*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14)); VAR5:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4); DRAWBAND(VAR5+100,RGB(150,50,50),VAR3+100,RGB(0,0,255)); 短线:VAR4+100,NODRAW,COLORLIBLUE; 中线:VAR5+100,COLORYELLOW,LINETHICK2; 长线:VAR3+100,COLORGREEN; VAR6:=1; VAR7:=1; VAR8:=50+(中线-长线); STICKLINE(VAR8>50,VAR8,50,0.0001,0),COLORRED; STICKLINE(VAR8<=50,VAR8,50,0.0001,0),COLORGREEN; 龙海:100-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),NODRAW,COLORWHITE; STICKLINE(龙海>=100,110,100,3,1),COLORYELLOW; STICKLINE(龙海<=0,0,(-10),3,1),COLORRED; 见顶:长线>85 OR REF(长线,1)>85 AND (CROSS(中线,短线) OR CROSS(REF(中线,1),REF(短线,1))) AND CROSS(长线,短线),NODRAW,COLORLIGREEN; VAR9:=中线<REF(中线,1) AND REF(中线,1)>80 AND (REF(短线,1)>95 OR REF(短线,2)>95) AND 长线>60 AND 短线<83.5 AND 短线<中线 AND 短线<长线+4; VAR10:=FILTER(VAR9,4); STICKLINE(见顶 OR VAR9,99,103,9,0),COLORRED; 底部:长线<12 AND 中线<8 AND 短线<7.2 AND REF(短线,1)<5 AND 中线>REF(中线,1) AND 短线>REF(短线,1) OR (长线<8 AND 中线<7 AND 短线<15 AND 短线>REF(短线,1)) OR (长线<10 AND 中线<7 AND 短线<1),NODRAW,COLORYELLOW; STICKLINE(底部,(-4),0,22,0),COLORGREEN; 底叉:长线<15 AND REF(长线,1)<15 AND 中线<18 AND 短线>REF(短线,1) AND CROSS(短线,长线) AND 短线>中线 AND (REF(短线,1)<5 OR REF(短线,2)<5) AND (中线>=长线 OR REF(短线,1)<1),NODRAW,COLORLIRED; STICKLINE(底叉,0,5,11,0),COLORRED; 底买:CROSS(中线,长线) AND VAR1>=VAR2 AND 中线<20,NODRAW,COLORYELLOW; VAR11:=底叉 OR 底买;{www.zhibiao123.cn} DRAWICON(底叉,5,23),COLORYELLOW; DRAWTEXT(CROSS(中线,长线) AND VAR1>=VAR2 AND 中线<20,长线-1.15,VAR7),COLORYELLOW; DRAWICON(CROSS(中线,长线) AND VAR1>=VAR2,长线,1); DRAWICON(CROSS(中线,长线) AND VAR1>=VAR2 AND 中线<20,长线,5); DRAWICON(CROSS(长线,中线),长线,2); DRAWICON(CROSS(长线,中线) AND 中线>80,长线,6); DRAWTEXT(CROSS(长线,中线) AND 中线>80,长线+1.15,VAR6),COLORGREEN; 80,DOTLINE,COLOR996699; 20,DOTLINE,COLORGREEN;
负责声明:
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:https://www.zhibiao123.cn/154556.html,转载请注明出处。
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:https://www.zhibiao123.cn/154556.html,转载请注明出处。