1. 誰有航海家通達信指標公式源碼
{航海家通達信指標全套公式}
{1.海洋狀態}
XY_S1101:=(2*CLOSE+HIGH+LOW)/4;
XY_S1102:=LLV(LOW,34);
XY_S1103:=HHV(HIGH,34);
XY_SZQQS1:EMA((XY_S1101-XY_S1102)/(XY_S1103-XY_S1102)*100,13),COLOR00FF00;
XY_SZQQS2:EMA(0.667*REF(XY_SZQQS1,1)+0.333*XY_SZQQS1,2),COLORFF0000;
AA:20,COLORFF0000;
BB:50,COLOR808080;
CC:80,COLOR00FF00;
XY_SSY1300:=REF(CLOSE,1);
XY_SSY1302:=SMA(MAX(CLOSE-XY_SSY1300,0),6,1);
XY_SSY1303:=SMA(ABS(CLOSE-XY_SSY1300),6,1);
XY_SDFX:=(CLOSE-LLV(CLOSE,250))/LLV(CLOSE,250)*100;
XY_SKFX:=(HHV(CLOSE,250)-CLOSE)/CLOSE*100;
XY_SSY1301:=XY_SSY1302/XY_SSY1303*100;
XY_SMC1:IF(REF(XY_SSY1301,1)>80 AND XY_SSY1301<80 AND XY_SKFX>XY_SDFX,50,0),COLORFFFFFF;
STICKLINE(XY_SDFX>XY_SKFX,0,5,3,0),COLOR0000FF;
STICKLINE(XY_SDFX<XY_SKFX,0,5,3,0),COLORFF0000;
-------------------------------
{2.主力控盤}
VUR1:=VOL/CAPITAL;
VUR2:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);
VUR3:=2.5*MAX(VUR1,VUR2);
VUR4:=DMA(CLOSE,VUR3);
VUR5:=20*(VUR4/REF(VUR4,1)-1)*38;
VUR6:=EMA(VUR5,2);
VUR7:=EMA(VUR5,2);
VUR8:=EMA(VUR7,3);
VURS:=EMA(VUR7,8);
VUR9:=1.1*(MAX(INDEXH,REF(INDEXC,1))/MIN(INDEXL,REF(INDEXC,1))-1);
VURA:=2.5*MAX(VUR1,VUR9);
VURB:=DMA(INDEXC,VURA);
VURC:=EMA(20*(VURB/REF(VURB,1)-1),1)*38;
VURD:=EMA(VURC,2);
VURE:=EMA(VURC,2);
D強:STICKLINE(VURD>0,0,VURD,6.5,1),COLORB210E4;
D弱:STICKLINE(VURD<0,0,VURD,6.5,1),COLORFFA6A6;
極強:STICKLINE(VUR5>0,0,VUR5,6.5,0),COLOR00FFFF;
強勢:STICKLINE(VUR6>0,0,VUR6,6.5,0),COLOR0000FF;
極弱:STICKLINE(VUR5<0,0,VUR5,6.5,0),COLOR10D010;
弱勢:STICKLINE(VUR6<0,0,VUR6,6.5,0),COLORE4E410;
DX:VURE,LINETHICK2,COLOR1088FF;
界:VURS,LINETHICK2,COLOR6CBC10;
控:VUR8,COLORFF10FF;
指:VUR7,COLOR10E4E4;
--------------------------------
{3.分時買賣}
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,30);
MA4:MA(CLOSE,60);
WYA001:=(2*CLOSE+HIGH+LOW)/4;
WYA002:=EMA(WYA001,4);
WYA003:=EMA(WYA002,4);
WYA004:=EMA(WYA003,4);
WYA柱:=(WYA004-REF(WYA004,1))/REF(WYA004,1)*100;
WYA線1:=MA(WYA柱,2);
WYA線2:=MA(WYA柱,1);
WY分時1線:=MA(CLOSE,1);
WY分時21線:=MA(CLOSE,21);
DRAWICON(WYA線1>0.25 AND WYA線2>0.25 AND CROSS(WYA線1,WYA線2),HIGH*1.0128,9);
DRAWICON(WYA線1<0 AND WYA線2<0 AND CROSS(WYA線1,WYA線2),HIGH*1.0128,9);
DRAWICON( CROSS(WY分時21線,WY分時1線),HIGH*1.0128,9) ;
DRAWICON(WYA線1<-0.25 AND WYA線2<-0.25 AND CROSS(WYA線2,WYA線1),LOW,8);
DRAWICON(WYA線1>0 AND WYA線2>0 AND CROSS(WYA線2,WYA線1),LOW,8),COLORYELLOW;
DRAWICON(CROSS(WY分時1線,WY分時21線),LOW,8),COLORYELLOW;
----------------------------------------
{4.主力監控}
A:=VOL*100/CAPITAL;
MA(A,120),POINTDOT,COLOR996633;
MA(A,2),POINTDOT,COLORFFFF00;
游資:MA(A,4),POINTDOT,COLOR3399FF;
主力:MA(A,9),POINTDOT,COLOR00FF00;
大戶:MA(A,17),POINTDOT,COLOR0000FF;
散戶:MA(A,34),POINTDOT,COLORF2E9E7;
警戒線:MA(A,180),COLORFF0000;
STICKLINE(MA(A,120)>0,0,MA(A,120),1,0),COLOR996633;
STICKLINE(MA(A,2)>0,0,MA(A,2),1,0),COLORFFFF00;
STICKLINE(游資>0,0,游資,1,0),COLOR3399FF;
STICKLINE(主力>0,0,主力,1,0),COLORFF0000;
STICKLINE(大戶>0,0,大戶,1,0),COLOR0000FF;
STICKLINE(散戶>0,0,散戶,1,0),COLORF2E9E7;