通达信《量价捉妖》副图指标公式源码:
AA:=(O+H+L+C)/4; BB:=MA(AA,3); CC:=SUM(IF(AA>REF(AA,1),AA*VOL,0),4)/SUM(IF(AA<REF(AA,1),AA*VOL,0),4); DD:=REF(100-(100/(1+CC)),1); A1:=HHV(AA,15); A2:=LLV(AA,15); A3:=A1-A2; A4:=EMA((AA-A2)/A3,2)*100; B1:=HHV(AA,60); B2:=LLV(AA,60); B3:=B1-B2; B4:=EMA((AA-B2)/B3,2)*100; C1:=HHV(AA,240); C2:=LLV(AA,240); C3:=C1-C2; C4:=EMA((AA-C2)/C3,2)*100; 短期:=A4; 中期:=B4; 长期:=C4; MID:MA(CLOSE,N); UPPER:MID + P*STD(CLOSE,N), LINETHICK2; LOWER:MID - P*STD(CLOSE,N), LINETHICK2; EMA1: MA (CLOSE,5), COLORGREEN; S13V:=V+REF(V,1)+REF(V,2)+REF(V,3)+REF(V,4)<REF(V,5)+REF(V,6)+REF(V,7)+REF(V,8)+REF(V,9) AND V+REF(V,1)+REF(V,2)+REF(V,3)+REF(V,4)<REF(V,10)+REF(V,11)+REF(V,12)+REF(V,13)+REF(V,14); DRAWTEXT(S13V,LOW-0.04,'↑'), COLORRED; VD30:=V<REF(V,1)AND V<REF(V,2)AND V<REF(V,3)AND V<REF(V,4)AND V<REF(V,5)AND V<REF(V,6)AND V<REF(V,7)AND V<REF(V,8)AND V<REF(V,9)AND V<REF(V,10)AND V<REF(V,11)AND V<REF(V,12)AND V<REF(V,13)AND V<REF(V,14)AND V<REF(V,15)AND V<REF(V,16); DRAWTEXT(VD30,LOW-0.04,'日');{www.zhibiao123.cn} VD30B:=V>REF(V,1)AND V>REF(V,2)AND V>REF(V,3)AND V>REF(V,4)AND V>REF(V,5)AND V>REF(V,6)AND V>REF(V,7)AND V>REF(V,8)AND V>REF(V,9)AND V>REF(V,10)AND V>REF(V,11); DRAWTEXT(VD30B,HIGH+0.08,'大'); V3:=REF(V,2)+REF(V,3)+REF(V,4); V3X:=V3/3; V3Y:=REF(V,1)/V3X>2; DRAWTEXT(V3Y AND A4<15 ,HIGH+0.04,'抢筹'), COLORRED; DRAWTEXT(V3Y AND C4<20 AND A4>50 ,HIGH+0.06,'加码'), COLORRED; VD14:= V<REF(V,1)AND V<REF(V,2)AND V<REF(V,3)AND V<REF(V,4)AND V<REF(V,5)AND V<REF(V,6)AND V<REF(V,7)AND V<REF(V,8)AND V<REF(V,9)AND V<REF(V,10)AND V<REF(V,11)AND V<REF(V,12)AND V<REF(V,13)AND V<REF(V,14); M:=13;{www.zhibiao123.cn} DL:=100*(V-LLV(V,M))/(HHV(V,M)-LLV(V,M)); WWWCHNMONEYCOM:=(V<=HHV(V,13)*0.33 OR DL<5 ) AND V<REF(V,1),COLORGRAY; DRAWTEXT(VD14 AND EMA1>MID ,HIGH+0.06,'转'), COLORRED; P:=HIGH-LOW; 量价系数:=V/P; P2:=REF(HIGH,1)-REF(LOW,1); 量价系数2:=REF(V,1)/P2; DRAWTEXT(OPEN<CLOSE AND REF(OPEN,1)<REF(LOW,1),LOW,量价系数) , COLORRED; DRAWTEXT(OPEN<CLOSE AND REF(OPEN,1)<REF(LOW,1),REF(LOW,1) ,量价系数2), , COLORRED;
负责声明:
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:https://www.zhibiao123.cn/154654.html,转载请注明出处。
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:https://www.zhibiao123.cn/154654.html,转载请注明出处。