以下是通达信股海航标指标公式源码和截图
通达信股海航标指标公式源码:
TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);
TYX4:=MA((C+L+O+H)/4,13);
TYX5:=EMA((C+L+O+H)/4,21);
{空心红}
STICKLINE(C TYX5ANDC O,H,L,0,0),COLORRED;
STICKLINE(C TYX5ANDC O,C,O,3,1),COLORRED;
{深绿}
STICKLINE(C TYX5ANDC O,H,L,0,0),COLOR007700;
STICKLINE(C TYX5ANDC O,C,O,3,0),COLOR005500;
STICKLINE(C TYX5ANDC O,C,O,2,0),COLOR006600;
STICKLINE(C TYX5ANDC O,C,O,1,0),COLOR007700;
{蓝}
STICKLINE(C TYX5ANDC O,H,L,0,0),COLORFFDD44;
STICKLINE(C TYX5ANDC O,C,O,3,0),COLORFF7700;
STICKLINE(C TYX5ANDC O,C,O,2,0),COLORFFAA22;
STICKLINE(C TYX5ANDC O,C,O,1,0),COLORFFDD44;
{黄}
STICKLINE(C TYX5ANDC O,H,L,0,0),COLOR00EEFF;
STICKLINE(C TYX5ANDC O,C,O,3,0),COLOR00AAFF;
STICKLINE(C TYX5ANDC O,C,O,2,0),COLOR00CCFF;
STICKLINE(C TYX5ANDC O,C,O,1,0),COLOR00EEFF;
{粉红}
STICKLINE(C TYX4ANDC O,H,L,0,0),COLORFF66AA;
STICKLINE(C TYX4ANDC O,C,O,3,0),COLORFF11FF;
STICKLINE(C TYX4ANDC O,C,O,2,0),COLORFF44FF;
STICKLINE(C TYX4ANDC O,C,O,1,0),COLORFF66FF;
{亮灰}
STICKLINE(C TYX4ANDC O,H,L,0,0),COLOR999999;
STICKLINE(C TYX4ANDC O,C,O,3,0),COLOR555555;
STICKLINE(C TYX4ANDC O,C,O,2,0),COLOR777777;
STICKLINE(C TYX4ANDC O,C,O,1,0),COLOR999999;
{深红}
STICKLINE(C TYX3ANDC O,H,L,0,0),COLOR0000DD;
STICKLINE(C TYX3ANDC O,C,O,3,0),COLOR000099;
STICKLINE(C TYX3ANDC O,C,O,2,0),COLOR0000BB;
STICKLINE(C TYX3ANDC O,C,O,1,0),COLOR0000DD;
{涨跌停K线}
STICKLINE(HIGH=LOWANDCLOSE=OPENAND(CLOSE/REF(CLOSE,1)) 1.048,HIGH,LOW,3,0),COLORRED;
STICKLINE(HIGH=LOWANDCLOSE=OPENAND(REF(CLOSE,1)/CLOSE) 1.048,HIGH,LOW,3,0),COLOR00FF00;
{}
STICKLINE(REF(COUNT(C TYX3,5)=5,1)ANDC TYX3ANDC O,C,O,1,0),COLOR00CCFF;
海面:MA(C,60),COLORFFFFFF,NODRAW;
乘风:MA(C,8),COLORYELLOW,LINETHICK1,NODRAW;
破浪:EMA(C,21),LINETHICK2,COLORMAGENTA;
IF(破浪 海面,海面,DRAWNULL),COLORFFFFFF;
IF(乘风 =破浪,乘风,DRAWNULL),COLORYELLOW,LINETHICK1;
IF(乘风 破浪AND乘风 =REF(乘风,1),乘风,DRAWNULL),COLORCYAN,LINETHICK1;
IF(破浪 =REF(破浪,1),破浪,DRAWNULL),COLORGREEN,LINETHICK2;
AA:=COUNT(CROSS(EMA(C,21),MA(C,8)),30)=1;
BB:=COUNT(CROSS(EMA(C,21),MA(C,60)),30)=1;
CC:=REF(BARSLAST(AAANDBB),1);
DD:=CCANDCROSS(MA(C,8),EMA(C,21));
DRAWTEXT(DD,(LOW*0.99),'←乘风'),COLOR80FFFF;
VAR1:=Ema(EMA(CLOSE,9),9);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
stICKLINE(控盘 0,控盘,0,1,0),COLORWHITE;
A10:=crOSS(控盘,0);
无庄控盘:IF(控盘 0,控盘,0),COLORWHITE,NODRAW;
开始控盘:IF(A10,20,0),LINETHICK1,COLORYELLOW;
STICKLINE(控盘 REF(控盘,1)AND控盘 0,控盘,0,1,0),COLORRED;
有庄控盘:IF(控盘 REF(控盘,1)AND控盘 0,控盘,0),COLORRED,NODRAW;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(VAR2 50ANDCOST(85) CLOSEAND控盘 0,控盘,0,1,0),COLORFF00FF;
高度控盘:IF(VAR2 50ANDCOST(85) CLOSEAND控盘 0,控盘,0),COLORFF00FF,NODRAW;
STICKLINE(控盘 REF(控盘,1)AND控盘 0,控盘,0,1,0),COLOR00FF00;
出货:IF(控盘 REF(控盘,1)AND控盘 0,控盘,0),COLOR00FF00,NODRAW;
VAR11:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*40;
B:SMA(VAR11,5,1),COLORRED,LINETHICK2;
VAR22:SMA(B,7,1),LINETHICK0,LINETHICK2;
绝路航标:IF(CROSS(B,VAR22)ANDB 20,25,0);
通达信股海航标指标公式截图