VAR1:=ABS(CLOSE-REF(CLOSE,30));
VAR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),30);
VAR3:=VAR1/VAR2;
VAR4:=VAR3*(0.8-2/24)+2/24;
VAR5:=VAR4*VAR4;
AMA2:EMA(DMA(CLOSE,VAR5),2),COLORGREEN,LINETHICK1;
牛熊分水岭:AMA2,STICK,COLORGRAY;
VAR10:=C>牛熊分水岭 AND 牛熊分水岭>REF(牛熊分水岭,1);
VAR11:=C<牛熊分水岭 AND 牛熊分水岭<=REF(牛熊分水岭,1);
AMA3:IF(AMA2/REF(AMA2,1)>0.997,AMA2,DRAWNULL),COLORBLUE,LINETHICK1;
AMA4:IF(AMA2/REF(AMA2,1)>1.001,AMA2,DRAWNULL),COLORRED,LINETHICK1;
DRAWTEXT_FIX(C>O,0,0.07,0,’VAR10:VAR11′),COLORMAGENTA;
STICKLINE(C>=O AND C>牛熊分水岭,H,L,0,0),COLORRED;
STICKLINE(C>=O AND C>牛熊分水岭,C,O,2.8,1),COLORRED;
STICKLINE(C<=O AND C>牛熊分水岭,C,O,2.8,0),COLORRED;
STICKLINE(C<=O AND C>牛熊分水岭,H,L,0,0),COLORRED;
STICKLINE(C>=O AND C<牛熊分水岭,H,L,0,0),COLORGREEN;
STICKLINE(C>=O AND C<牛熊分水岭,C,O,2.8,1),COLORGREEN;
STICKLINE(C<=O AND C<牛熊分水岭,H,L,0,0),COLORGREEN;
STICKLINE(C<=O AND C<牛熊分水岭,C,O,2.8,0),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR AND VAR10,0.1,0.01,0,’【牛区持股】’),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND VAR11,0.1,0.01,0,’【熊区观望】’),COLORGREEN;
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:https://www.zhibiao123.cn/182821.html,转载请注明出处。