副图公式源码支持 手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=IF(DATE=10301201,0,1);
GUP2:=EMA(SLOPE(G1,21)*20+G1,55);
GUP3:=EMA(G1,3);
GUP4:=(2*G1+G2+G4)/4*GUP1;
GUP5:=GUP2-GUP3;
GUP6:=G1*VOL;
GUP7:=EMA((EMA(GUP6,3)/EMA(VOL,3)+EMA(GUP6,6)/EMA(VOL,6)+EMA(GUP6,12)/EMA(VOL,12)+EMA(GUP6,24)/EMA(VOL,24))/4,13);
GUP8:=EMA(G1,9);
GUP9:=(G1+G3)/2;
GUA3:=EMA(GUP8*1.14,15),COLORGREEN,LINETHICK1;
GUA4:=(EMA(GUP9,3)+EMA(GUP9,6)+EMA(GUP9,12)+EMA(GUP9,24))/4,COLORYELLOW,LINETHICK1;
GUA5:=(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,COLORBLUE,LINETHICK1;
LL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210,COLORBLUE,LINETHICK1;
牛熊线:EMA(GUA5,90),COLORYELLOW,LINETHICK2;
趋势线:牛熊线-((C-牛熊线)*C-牛熊线)/牛熊线,LINETHICK2,COLORMAGENTA;
GUA6:=CROSS(牛熊线,趋势线);
DRAWICON(GUA6,G2,1);
伏牛线:6*HHV(牛熊线,3)-5*牛熊线;
IF(GUA4>=伏牛线,牛熊线,DRAWNULL),LINETHICK3,COLORRED;
IF(C<=GUA3,牛熊线,DRAWNULL),LINETHICK3,COLORYELLOW;
选股公式源码
{选股公式:红箭头图标}
GUA5:=(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,COLORBLUE,LINETHICK1;
LL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210,COLORBLUE,LINETHICK1;
牛熊线:=EMA(GUA5,90),COLORYELLOW,LINETHICK2;
趋势线:=牛熊线-((C-牛熊线)*C-牛熊线)/牛熊线,LINETHICK2,COLORMAGENTA;
GUA6:=CROSS(牛熊线,趋势线);
红箭头图标:GUA6;
|