{多空波段}
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);
DRAWBAND(多方,RGB(111,0,0),突破,RGB(238,204,0));
N:=40;
MA1:=WMA(HIGH,N);
MA2:=WMA(LOW,N);
STICKLINE(CLOSE>MA1 AND OPEN>MA1,MA1,MA2,1,-1),COLORCYAN;
STICKLINE(CLOSE<MA2 AND OPEN<MA2,MA1,MA2,1,-1),COLORFF0000;
IF(CLOSE>=MA2,MA1,DRAWNULL),COLORCYAN;
IF(CLOSE<MA2,MA1,DRAWNULL),COLORFF0000;
IF(CLOSE>=MA2,MA2,DRAWNULL),LINETHICK1,COLORFFFFFF;
IF(CLOSE<MA2,MA2,DRAWNULL),LINETHICK1,COLORFF0000;
IF(CLOSE>=MA2,MA1,DRAWNULL),COLORCYAN;
IF(CLOSE<MA2,MA1,DRAWNULL),COLORFF0000;
IF(CLOSE>=MA2,MA2,DRAWNULL),LINETHICK1,COLORCYAN;
IF(CLOSE<MA2,MA2,DRAWNULL),LINETHICK1,COLORFF0000;
STICKLINE(CLOSE<MA2,LOW,HIGH,0,0),COLORGREEN;
STICKLINE(CLOSE<MA2,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(CLOSE>=MA2,LOW,HIGH,0,0),COLORRED;
STICKLINE(CLOSE>=MA2,OPEN,CLOSE,3,0),COLORRED;
趋势跌:IF(CLOSE<MA2,WMA(OPEN,11),DRAWNULL),LINETHICK2,COLORFFFF00;
趋势涨:IF(CLOSE>=MA2,WMA(OPEN,11),DRAWNULL),LINETHICK2,COLORFF00FF;
{收盘划横线}
β0:=(H-L)/2+L;
α:=β0,LINETHICK0;
β:=REF(β0,1),LINETHICK0,COLORGREEN;
γ:=REF(β0,2),LINETHICK0,COLORMAGENTA;
高位:PLOYLINE(1,CONST(HHV(H,20))),COLOR880088,LINETHICK1,DOTLINE;
低位:PLOYLINE(1,CONST(LLV(L,20))),COLOR888800,LINETHICK1,DOTLINE;
止赢止损位:PLOYLINE(1,CONST(HHV(H,20)*0.95)),COLOR888888,LINETHICK2;
收盘划横线&持股:IF(CONST(α>β) AND DYNAINFO(7)>0,DYNAINFO(7),DRAWNULL),COLORRED,LINETHICK1;
持币:IF(CONST(α<=β)AND DYNAINFO(7)>0 ,DYNAINFO(7),DRAWNULL),COLORGREEN,LINETHICK1;
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:https://www.zhibiao123.cn/161647.html,转载请注明出处。