当前位置:首页 > 免费资源 > 正文

「翔博精选指标」股市导航指标,漂亮实用(通达信公式 主图 源码

2022-04-20原创 编 辑:翔博软件

{股市导航指标}

A1:=C>FINDHIGH(C,1,9,1);
A2:=VOL=HHV(VOL,3);
BP1:=A1 AND A2;
BP2:=C>O AND BARSCOUNT(C)<=3;
BP:=BP1 OR BP2;
SP:=
NOT(BP) AND
CROSS(MA(L,19),C);
 ENTERLONG:=TFILTER(BP,SP,1);
EXITLONG:=TFILTER(BP,SP,2) AND NOT(BP);
VAR1:=C/REF(C,BARSLAST(ENTERLONG))-1;
亮灯收益%:
IF(BARSLAST(ENTERLONG)<BARSLAST(EXITLONG),VAR1*100,DRAWNULL),NODRAW;
亮灯天数:
IF(BARSLAST(ENTERLONG)<BARSLAST(EXITLONG),BARSLAST(ENTERLONG)+1,DRAWNULL),NODRAW;
灭灯价格:=
IF(BARSLAST(ENTERLONG)<BARSLAST(EXITLONG),MA(L,19),DRAWNULL),NODRAW;
分割线1:DRAWNULL,NODRAW;
分割线2:DRAWNULL,NODRAW;
分割线3:DRAWNULL,NODRAW;
DRAWGBK(C>0,RGB(255,255,0),RGB(0,0,0),0,' ',0);
DRAWICON(ENTERLONG,LOW*0.99,34);
DRAWICON(EXITLONG,HIGH*1.01,35);
DRAWTEXT_FIX(C>0,0.80,0.90,0,'亮灯持续时间'),COLORRED;
DRAWNUMBER_FIX(C>0 AND BARSLAST(ENTERLONG)<BARSLAST(EXITLONG),0.80,0.95,0,CONST(亮灯天数)),COLORRED;
DRAWTEXT_FIX(C>0,0.90,0.90,0,'灭灯价格'),COLOR00FFFF;
DRAWNUMBER_FIX(C>0 AND BARSLAST(ENTERLONG)<BARSLAST(EXITLONG),0.90,0.95,0,CONST(灭灯价格)),COLOR00FFFF;
VAR2:=HHV(H,10)/LLV(L,300)>2 AND (HHV(H,10)-LLV(L,300))/(HHV(H,300)-LLV(L,300))>0.7;
VAR3:=BARSLAST(ENTERLONG)<BARSLAST(EXITLONG) OR BARSCOUNT(C)<=100;
VAR4:=BARSLAST(ENTERLONG)>=BARSLAST(EXITLONG);{70822-COM}
 
STICKLINE(VAR3,H,L,0,0),COLOR4646FF; 
 
STICKLINE(VAR3,C,O,3.2,0),COLOR000033; 
 
STICKLINE(VAR3,C,O,2.7,0),COLOR000066; 
 
STICKLINE(VAR3,C,O,2.1,0),COLOR000099; 
 
STICKLINE(VAR3,C,O,1.5,0),COLOR0000CC; 
 
STICKLINE(VAR3,C,O,0.9,0),COLOR0000FF; 
 
STICKLINE(VAR3,C,O,0.2,0),COLOR4646FF; 
 
STICKLINE(VAR4,H,L,0,0),COLOR28FF28; 
 
STICKLINE(VAR4,C,O,3.2,0),COLOR003300; 
 
STICKLINE(VAR4,C,O,2.7,0),COLOR006600; 
 
STICKLINE(VAR4,C,O,2.1,0),COLOR009900; 
 
STICKLINE(VAR4,C,O,1.5,0),COLOR00CC00; 
 
STICKLINE(VAR4,C,O,0.9,0),COLOR00FF00; 
 
STICKLINE(VAR4,C,O,0.2,0),COLOR28FF28; 
DRAWNUMBER(EXITLONG AND C>REF(C,BARSLAST(ENTERLONG)),H*1.06,(C/REF(C,BARSLAST(ENTERLONG))-1)*100),COLORRED;

DRAWNUMBER(ENTERLONG AND C<REF(C,BARSLAST(EXITLONG)),L*0.94,(C/REF(C,BARSLAST(EXITLONG))-1)*100),COLOR00FF00;

 

大家都爱看
查看更多热点新闻
点击进入翔博软件旗下掌上指标--自助下载指标