三线战备主图通达信指标 副图 源码 测试图

N:=15;
M:=32;
TRTR:= MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
A:=EMA(TRTR,20)*2;
B:=HHV(C-A,20);
红线卖要跌:IF((C>B OR C=B),C,B),COLOR0000FF,LINETHICK3;
黄线买要涨:IF(C< B,C,B),COLORYELLOW,LINETHICK3;
GG:C,COLOR550033,LINETHICK3;
VAR444:=C;
操作:=MA(VAR444,5);
收盘破此线短逃:HHV(操作,13),LINETHICK4,COLORFFB9CC;
STICKLINE(C>收盘破此线短逃,L,H,0.1,1),COLORRED;
STICKLINE(C>收盘破此线短逃,C,O,6,1),COLORRED;
STICKLINE(C>收盘破此线短逃,C,O,8,1),COLORRED;
STICKLINE(C< 收盘破此线短逃,C,O,8,1),COLORFFFF00;
STICKLINE(C< 收盘破此线短逃,C,O,6,1),COLOR00FF00;
STICKLINE(C< 收盘破此线短逃,L,H,0.1,1),COLOR00FF00;
VAR1:=DMA(AMOUNT/VOL/100, VOL/CAPITAL);
VAR2:=MA(WINNER(HIGH)-WINNER(VAR1), N);
VAR3:=MA(WINNER(LOW)-WINNER(VAR1), M);
VAR4:=VAR3-VAR2;
DRAWTEXT(REF(VAR4,2)< REF(VAR4,1) AND REF(VAR4,1)>VAR4 AND VAR4>0 AND VAR4*10>1,L*0.98,'入'),COLORYELLOW;
DRAWTEXT(REF(VAR4,2)< REF(VAR4,1) AND REF(VAR4,1)>VAR4 AND VAR4>0 AND VAR4*10>1,L*0.95,'点'),COLORYELLOW;
DRAWTEXT(REF(VAR4,2)< REF(VAR4,1) AND REF(VAR4,1)>VAR4 AND VAR4>0 AND VAR4*10< 1 AND VAR4*10>0.55,L*0.98,'入'),COLORGREEN;
DRAWTEXT(REF(VAR4,2)< REF(VAR4,1) AND REF(VAR4,1)>VAR4 AND VAR4>0 AND VAR4*10< 1 AND VAR4*10>0.55,L*0.95,'2'),COLORGREEN;
DRAWTEXT(REF(VAR4,2)< REF(VAR4,1) AND REF(VAR4,1)>VAR4 AND VAR4>0 AND VAR4*10<=0.55,L*0.98,'入'),COLORYELLOW;
DRAWTEXT(REF(VAR4,2)< REF(VAR4,1) AND REF(VAR4,1)>VAR4 AND VAR4>0 AND VAR4*10<=0.55,L*0.95,'1'),COLORYELLOW;
 



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

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

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