航海家条件选股公式txt(源码 副图 贴图)介绍
航海家条件选股公式txt(源码 副图 贴图)
{水手突破2天强势}
上趋势:=MA(LOW,20)*1.2,COLOR0080FF,LINETHICK2;
次上趋势:=MA(LOW,20)*1.1,COLORYELLOW;
次下趋势:=MA(HIGH,20)*0.9,COLORWHITE;
下趋势:=MA(HIGH,20)*0.8,COLORGREEN,LINETHICK2;
ZD:=(C-REF(C,1))/REF(C,1)*100;
HDZ,:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势 AND C<次上趋势,2,IF(C<下趋势,0,1)));
二天强势:趋势强度>2 AND REF(趋势强度>2,1)
{连续三天主力加仓}
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
买1:=QJ0*(MIN(OPEN,CLOSE)-LOW);
买2:=QJ0*(JJ-MIN(CLOSE,OPEN));
卖1:=QJ0*(MAX(CLOSE,OPEN)-JJ);
卖2:=QJ0*(HIGH-MAX(OPEN,CLOSE));
DT:=((买1+买2)-(卖1+卖2))/10000;
主力持仓:=SUM(DT,66),COLORWHITE,LINETHICK1;
{STICKLINE(DT>0,主力持仓,主力持仓+DT,1,0),COLOR0000FF;}
{STICKLINE(DT<0,主力持仓+DT,主力持仓,1,0),COLOR00FF00;}
主力三天加仓:DT>0 AND REF(DT>0,1) AND REF(DT>0,2)
{捕捞季金叉}
WY1001:=(2*CLOSE+HIGH+LOW)/4;
WY1002:=EMA(WY1001,4);
WY1003:=EMA(WY1002,4);
WY1004:=EMA(WY1003,4);
XYS0:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
{STICKLINE(XYS0>=0,XYS0,0,1,0),COLORRED;}
{STICKLINE(XYS0<0,XYS0,0,1,0),COLORGREEN;}
PJGJ:=AMOUNT/VOL/100;
SSRYDJX:=MA(PJGJ,13);
SSRCJL:=EMA(VOL,13);
SSRCJE:=EMA(AMOUNT,13);
SSRCBJX:=SSRCJE/SSRCJL/100;
CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100;
XYSHSL:=EMA(VOL/CAPITAL*100,13);
ZZX:=0,COLORWHITE;
{STICKLINE(XYSHSL>6.1 AND CYS13>5 ,2 ,0 ,1 ,0 ),COLORGREEN;}
{STICKLINE(XYSHSL>3.8 AND CYS13>5 ,1.5 ,0 ,1 ,0 ),COLORYELLOW;}
{STICKLINE(XYSHSL>2.1 AND CYS13>5 ,1 ,0 ,1 ,0 ),COLORCYAN;}
{STICKLINE(XYSHSL>1.8 AND CYS13>5 ,0.5 ,0 ,1 ,0 ),COLORBLUE;}
XYS1:=MA(XYS0,2);
XYS2:=MA(XYS0,1);
{DRAWICON(CROSS(XYS1,XYS2),XYS1,2);}
{DRAWICON(CROSS(XYS2,XYS1),XYS2,1);}
捕捞季金叉:XYS2>ZZX AND XYS2>XYS1 AND REF(XYS2>XYS1,1);
{辅助线金叉}
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;
马线:=MA(牛线,6),COLORGREEN;
{五日线:=MA(CLOSE,5),CIRCLEDOT,COLORLIBLUE;}
{水平面:=MA(CLOSE,60),CIRCLEDOT,COLORYELLOW; }
辅助线金叉:CROSS(牛线,马线);
{上升回档}
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
HHJSJDB:=(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
REF(HHJSJDA,20))/210;
HHJSJDC:=MA(HHJSJDB,5);
F1:=HHJSJDB>HHJSJDC;
F2:=HHJSJDB>REF(HHJSJDB,2);
F3:=L<HHJSJDB;
F4:=C>O;
F5:F1>0 AND F1 AND F2 AND F3 AND F4;
gd16410