鸿运当头本公式,用了新版通达信的公式函数,老通达信已经不能使用。
本网的开心果整合版本,就可以使用。
{公式名称:鸿运当头}
{参数:基价:=1}
收盘价:=IF(基价=1,C,IF(基价=2,HY_INDEXC,IF(基价=3,INDEXC,DRAWNULL)));
最高价:=IF(基价=1,H,IF(基价=2,HY_INDEXH,IF(基价=3,INDEXH,DRAWNULL)));
最低价:=IF(基价=1,L,IF(基价=2,HY_INDEXL,IF(基价=3,INDEXL,DRAWNULL)));
RSV:=(收盘价-LLV(最低价,33))/(HHV(最高价,33)-LLV(最低价,33))*100;
NOTEXT1:SMA(RSV,7,1),LINETHICK2,COLORWHITE;
十大股东:FINVALUE(245)/FINVALUE(238)*100,NODRAW,COLORRED;
NOTEXT2:SMA(NOTEXT1,3,1),LINETHICK2,COLORYELLOW;
变化:(FINONE(245,0,0)-FINONE(245,0,1))/FINVALUE(238)*100,NODRAW,COLORRED;
NOTEXT3:SMA(SMA(SMA(RSV,6,1),5,1),3,1),LINETHICK2,COLORMAGENTA;
VAR1:=(2*收盘价+最高价+最低价)/4;
VAR2:=LLV(最低价,30);
VAR3:=HHV(最高价,30);
VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,8);
VAR5:=EMA(VAR4,5);
VAR6:=VAR4>VAR5-0;
VAR7:=VAR6>=0;
VAR8:=VAR4-VAR5>=0;
VAR9:=VAR4-VAR5<=0;
STICKLINE(VAR7,80,80,-1,0),COLORWHITE;
STICKLINE(VAR7,20,20,-1,0),COLORWHITE;
沪深融资:SCJYVALUE(1,1,0)/10000,NODRAW,COLORGREEN;
STICKLINE(VAR4>80,VAR4,80,-1,1),COLOR0055AA;
沪深融券:SCJYVALUE(1,2,0)/10000,NODRAW,COLORGREEN;
STICKLINE(VAR4>80,VAR4,80,2.8,1),COLOR0066BB;
STICKLINE(VAR4>80,VAR4,80,2.5,1),COLOR0077CC;
STICKLINE(VAR4>80,VAR4,80,2.1,1),COLOR0088DD;
STICKLINE(VAR4>80,VAR4,80,1.7,1),COLOR0099EE;
STICKLINE(VAR4>80,VAR4,80,1.2,1),COLOR00AAFF;
STICKLINE(VAR4>80,VAR4,80,0.7,1),COLOR00CCFF;
STICKLINE(VAR4>80,VAR4,80,0.2,1),COLOR00FFFF;
STICKLINE(VAR4<20,VAR4,20,-1,1),COLOR0055AA;
STICKLINE(VAR4<20,VAR4,20,2.8,1),COLOR0066BB;
STICKLINE(VAR4<20,VAR4,20,2.5,1),COLOR0077CC;
STICKLINE(VAR4<20,VAR4,20,2.1,1),COLOR0088DD;
STICKLINE(VAR4<20,VAR4,20,1.7,1),COLOR0099EE;
STICKLINE(VAR4<20,VAR4,20,1.2,1),COLOR00AAFF;
STICKLINE(VAR4<20,VAR4,20,0.7,1),COLOR00CCFF;
STICKLINE(VAR4<20,VAR4,20,0.2,1),COLOR00FFFF;
STICKLINE(VAR8,VAR4,VAR5,-1,1),COLORRED;
STICKLINE(VAR9,VAR4,VAR5,-1,1),COLORGREEN;