通达信《波段共振》副图指标公式源码:
VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70; VAR2:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1); VAR3:=SMA(VAR2,3,1)-SMA(VAR1,9,1); VAR4:=IF(VAR3>100,VAR3-100,0); VAR5:=VAR4*2; VAR6:=SMA(VAR5,2,1)-VAR5; VAR7:=EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,13); VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2); VAR9:=VAR8-VAR7; VAR10:=SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,20,1); VAR11:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70; VAR12:=SMA(VAR11,9,1)+100; VAR13:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; VAR14:=SMA(VAR13,3,1); VAR15:=SMA(VAR14,3,1)+100; VAR16:=VAR15-VAR12;{www.zhibiao123.cn} VAR17:=IF(VAR16>0,VAR16,0); DRAWBAND(REF(VAR17,1),RGB(50,250,50),VAR17,RGB(250,100,50)); DRAWBAND(VAR7,RGB(250,20,20),VAR8,RGB(50,230,50)); DRAWBAND(SMA(VAR10,5,1),RGB(50,200,50),VAR10,RGB(250,50,250)); 短线持股:IF(REF(VAR17,1)<VAR17,VAR17,DRAWNULL),NODRAW,COLORYELLOW; 中线持股:IF(VAR7-VAR8>0,VAR7,DRAWNULL),NODRAW,COLORRED; 长线持股:IF(VAR10-SMA(VAR10,5,1)>0,VAR10,DRAWNULL),NODRAW,COLORMAGENTA; 短线空仓:IF(REF(VAR17,1)>VAR17,VAR17,DRAWNULL),NODRAW,COLORGREEN; 中线空仓:IF(VAR7-VAR8<0,VAR7,DRAWNULL),NODRAW,COLORGREEN; 长线空仓:IF(VAR10-SMA(VAR10,5,1)<0,VAR10,DRAWNULL),NODRAW,COLORGREEN; VAR18:=EMA(DCLOSE,12)-EMA(DCLOSE,26); VAR19:=EMA(VAR18,9); VAR20:=(VAR18-VAR19)*2*60; 起爆:IF(CROSS(VAR20-REF(VAR20,1),15),100,0),STICK,COLORYELLOW,LINETHICK3;
负责声明:
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:https://www.zhibiao123.cn/154554.html,转载请注明出处。
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:https://www.zhibiao123.cn/154554.html,转载请注明出处。