副图公式源码支持 手机/电脑
DRAWKLINE(H,O,L,C);
GUP1:=REF(C,1)*1.1-C<0.01 AND H=C;
GUP2:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210;
GUA:=EMA(GUP2,5),COLORGREEN,LINETHICK2;
GUA1:=EMA(GUP2,10),COLORGREEN,LINETHICK2;
GUA2:=EMA(GUP2,30),COLORGREEN,LINETHICK2;
GUA3:=EMA(GUP2,60),COLORGREEN,LINETHICK2;
GUA4:=EMA(GUP2,90),COLORRED,LINETHICK2;
GUA5:=EMA(GUP2,120),COLORGREEN,LINETHICK2;
GUA6:=EMA(GUP2,250),COLORGREEN,LINETHICK2;
GUB:=(GUA-((H-GUA)*H-GUA)/GUA);
GUB1:=(GUA1-((H-GUA1)*H-GUA1)/GUA1);
GUB2:=(GUA2-((H-GUA2)*H-GUA2)/GUA2);
GUB3:=(GUA3-((H-GUA3)*H-GUA3)/GUA3);
GUB4:=(GUA4-((H-GUA4)*H-GUA4)/GUA4);
GUB5:=(GUA5-((H-GUA5)*H-GUA5)/GUA5);
GUB6:=(GUA6-((H-GUA6)*H-GUA6)/GUA6),COLOR6E6E6E;
上轨线:MAX(GUB6,MAX(GUB5,MAX(GUB4,MAX(GUB3,MAX(GUB2,MAX(GUB1,GUB)))))),COLORLIRED,LINETHICK2;
下轨线:MIN(GUB6,MIN(GUB5,MIN(GUB4,MIN(GUB3,MIN(GUB2,MIN(GUB1,GUB)))))),COLORLIRED;
STICKLINE(下轨线<=上轨线,下轨线,上轨线,0,0),COLOR6E6E6E;
GUC1:=CROSS(上轨线,GUA);
GUC3:=CROSS(C,上轨线);
DRAWTEXT(GUC1 AND GUP1,L,'↖妙手'),COLORRED;
DRAWTEXT(GUC3 AND GUP1,L,'↖神击'),COLORYELLOW;
选股公式源码
{选股公式一:妙手}
GUP1:=REF(C,1)*1.1-C<0.01 AND H=C;
GUP2:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210;
GUA:=EMA(GUP2,5),COLORGREEN,LINETHICK2;
GUA1:=EMA(GUP2,10),COLORGREEN,LINETHICK2;
GUA2:=EMA(GUP2,30),COLORGREEN,LINETHICK2;
GUA3:=EMA(GUP2,60),COLORGREEN,LINETHICK2;
GUA4:=EMA(GUP2,90),COLORRED,LINETHICK2;
GUA5:=EMA(GUP2,120),COLORGREEN,LINETHICK2;
GUA6:=EMA(GUP2,250),COLORGREEN,LINETHICK2;
GUB:=(GUA-((H-GUA)*H-GUA)/GUA);
GUB1:=(GUA1-((H-GUA1)*H-GUA1)/GUA1);
GUB2:=(GUA2-((H-GUA2)*H-GUA2)/GUA2);
GUB3:=(GUA3-((H-GUA3)*H-GUA3)/GUA3);
GUB4:=(GUA4-((H-GUA4)*H-GUA4)/GUA4);
GUB5:=(GUA5-((H-GUA5)*H-GUA5)/GUA5);
GUB6:=(GUA6-((H-GUA6)*H-GUA6)/GUA6),COLOR6E6E6E;
上轨线:=MAX(GUB6,MAX(GUB5,MAX(GUB4,MAX(GUB3,MAX(GUB2,MAX(GUB1,GUB)))))),COLORLIRED,LINETHICK2;
GUC1:=CROSS(上轨线,GUA);
妙手:GUC1 AND GUP1;
{选股公式二:神击}
GUP1:=REF(C,1)*1.1-C<0.01 AND H=C;
GUP2:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210;
GUA:=EMA(GUP2,5),COLORGREEN,LINETHICK2;
GUA1:=EMA(GUP2,10),COLORGREEN,LINETHICK2;
GUA2:=EMA(GUP2,30),COLORGREEN,LINETHICK2;
GUA3:=EMA(GUP2,60),COLORGREEN,LINETHICK2;
GUA4:=EMA(GUP2,90),COLORRED,LINETHICK2;
GUA5:=EMA(GUP2,120),COLORGREEN,LINETHICK2;
GUA6:=EMA(GUP2,250),COLORGREEN,LINETHICK2;
GUB:=(GUA-((H-GUA)*H-GUA)/GUA);
GUB1:=(GUA1-((H-GUA1)*H-GUA1)/GUA1);
GUB2:=(GUA2-((H-GUA2)*H-GUA2)/GUA2);
GUB3:=(GUA3-((H-GUA3)*H-GUA3)/GUA3);
GUB4:=(GUA4-((H-GUA4)*H-GUA4)/GUA4);
GUB5:=(GUA5-((H-GUA5)*H-GUA5)/GUA5);
GUB6:=(GUA6-((H-GUA6)*H-GUA6)/GUA6),COLOR6E6E6E;
上轨线:=MAX(GUB6,MAX(GUB5,MAX(GUB4,MAX(GUB3,MAX(GUB2,MAX(GUB1,GUB)))))),COLORLIRED,LINETHICK2;
GUC3:=CROSS(C,上轨线);
神击:GUC3 AND GUP1; |