通达信五虎上将 源码

VAR1:=HHV(EMA(CLOSE,17),2);
NOTEXT2:EMA(CLOSE,17),COLORRED,LINETHICK3;
NOTEXT3:IF(VAR1=NOTEXT2 AND UPNDAY(VAR1,3),VAR1,DRAWNULL),COLORRED,LINETHICK3;
NOTEXT4:IF(REF(VAR1,2)>NOTEXT2,NOTEXT2,DRAWNULL),COLORGREEN,LINETHICK3;
VAR2:=REF(CLOSE,1);{股票指标网}
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1);
VAR6:=3*VAR4-2*VAR5;
VAR7:=SMA(MAX(CLOSE-VAR2,0),9,1)/SMA(ABS(CLOSE-VAR2),9,1)*100;
VAR8:=VAR7>=75;
VAR9:=VAR6>=95;
VAR10:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR11:=EMA(VAR10,3);
VAR12:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR13:=SMA(MAX(CLOSE-VAR2,0),9,1)/SMA(ABS(CLOSE-VAR2),9,1)*100;
VAR14:=VAR10>VAR11 OR VAR10=VAR11 AND VAR12>9 AND VAR12<11 AND 40<VAR13 AND VAR13<60 AND CLOSE=HIGH;
VAR15:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
VAR16:=SMA(VAR15,4,1);
VAR17:=SMA(VAR16,3,1);
 
VAR18:=CLOSE>=OPEN AND CROSS(VAR16,VAR17) AND VAR17<=50;
VAR19:=IF(VAR8 OR VAR9 AND (CLOSE+NOTEXT2)/2<NOTEXT2,(3*NOTEXT2-CLOSE)/2,(CLOSE+NOTEXT2)/2);
VAR20:=IF(VAR18 OR VAR14 AND (CLOSE+NOTEXT2)/2>NOTEXT2,(3*NOTEXT2-CLOSE)/2,(CLOSE+NOTEXT2)/2);
STICKLINE(NOT(VAR8) AND NOT(VAR9) AND NOT(VAR18) AND NOT(VAR14),NOTEXT2,NOTEXT2*1.009,2.3,0),COLORA4A4A4;
STICKLINE(NOT(VAR8) AND NOT(VAR9) AND NOT(VAR18) AND NOT(VAR14),NOTEXT2,NOTEXT2*1.009,2,0),COLORB6B6B6;
STICKLINE(NOT(VAR8) AND NOT(VAR9) AND NOT(VAR18) AND NOT(VAR14),NOTEXT2,NOTEXT2*1.009,1.7,0),COLORB8B8B8;
STICKLINE(NOT(VAR8) AND NOT(VAR9) AND NOT(VAR18) AND NOT(VAR14),NOTEXT2,NOTEXT2*1.009,1.4,0),COLORCACACA;
STICKLINE(NOT(VAR8) AND NOT(VAR9) AND NOT(VAR18) AND NOT(VAR14),NOTEXT2,NOTEXT2*1.009,1.1,0),COLORF4F4F4;
STICKLINE(NOT(VAR8) AND NOT(VAR9) AND NOT(VAR18) AND NOT(VAR14),NOTEXT2,NOTEXT2*1.009,0.8,0),COLORF6F6F6;
STICKLINE(VAR7>=75,NOTEXT2,VAR19,2.3,0),COLOR000057;
STICKLINE(VAR7>=75,NOTEXT2,VAR19,2,0),COLOR00007D;
STICKLINE(VAR7>=75,NOTEXT2,VAR19,1.7,0),COLOR00008C;
STICKLINE(VAR7>=75,NOTEXT2,VAR19,1.4,0),COLOR0000A1;
STICKLINE(VAR7>=75,NOTEXT2,VAR19,1.1,0),COLOR0000B5;
STICKLINE(VAR7>=75,NOTEXT2,VAR19,0.8,0),COLOR0000CC;
STICKLINE(VAR6>=95,NOTEXT2,VAR19,2.3,0),COLOR570057;
STICKLINE(VAR6>=95,NOTEXT2,VAR19,2,0),COLOR660066;
STICKLINE(VAR6>=95,NOTEXT2,VAR19,1.7,0),COLOR7D007D;
STICKLINE(VAR6>=95,NOTEXT2,VAR19,1.4,0),COLOR990099;
STICKLINE(VAR6>=95,NOTEXT2,VAR19,1.1,0),COLORBD00BD;
STICKLINE(VAR6>=95,NOTEXT2,VAR19,0.8,0),COLORMAGENTA;
STICKLINE(VAR18,NOTEXT2,VAR20,2.3,0),COLOR004040;
STICKLINE(VAR18,NOTEXT2,VAR20,2,0),COLOR006464;
STICKLINE(VAR18,NOTEXT2,VAR20,1.7,0),COLOR00A8A8;
STICKLINE(VAR18,NOTEXT2,VAR20,1.4,0),COLOR00DBDB;
STICKLINE(VAR18,NOTEXT2,VAR20,1.1,0),COLOR15FFFF;
STICKLINE(VAR18,NOTEXT2,VAR20,0.8,0),COLOR4DFFFF;
STICKLINE(VAR14,NOTEXT2,VAR20*0.98,2,0),COLORCYAN;
STICKLINE(VAR14,NOTEXT2,VAR20*0.98,1.5,0),COLOR990000;
STICKLINE(VAR14,NOTEXT2,VAR20*0.98,1.8,0),COLORCC0000;
STICKLINE(VAR14,NOTEXT2,VAR20*0.98,0.3,0),COLORFF4400;
STICKLINE(VAR14,NOTEXT2,VAR20*0.98,2,0),COLORFF8800;
STICKLINE(VAR14,NOTEXT2,VAR20*0.98,1.5,0),COLORFFCC00;
STICKLINE(VAR14,NOTEXT2,VAR20*0.98,0.8,0),COLORCYAN;


来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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