股市导航指标漂亮实用通达信公式 主图 源码附图

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;
 



未来函数检测结果如下:
该公式包含未来函数:DHIGH
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图