副图公式源码支持 手机/电脑
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
压:=L1+P1*7/8,COLORGREEN;
撑:=L1+P1*0.5/8,COLORRED;
中位:=(撑+压)/2,COLORWHITE,POINTDOT;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:EMA(V11,3),LINETHICK2,COLORLIMAGENTA;
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
机会区:STICKLINE(趋势线<11,趋势线,11,5,0),COLORYELLOW;
GUA:=(趋势线<11) AND FILTER((趋势线<=11),15) AND C<中位;
GUB0:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND C<中位;
GUB1:=REF(趋势线,1)<11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11);
GUB2:=REF(趋势线,1)<6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6);
GUB3:=REF(趋势线,1)<3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3);
GUB4:=REF(趋势线,1)<1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1);
GUB5:=REF(趋势线,1)<0 AND CROSS(趋势线,0);
GUB:=GUB1=1 OR GUB2=1 OR GUB3=1 OR GUB4=1 OR GUB5=1;
启动点:STICKLINE(GUB=1 AND C<中位,11,50,5,0),COLORRED;
DRAWICON(GUB=1 AND C<中位,55,1);
DRAWTEXT(GUB0,60,'启动点'),COLORRED;
DRAWTEXT(GUA,16,'关注区'),COLORYELLOW;
风险区:STICKLINE(趋势线>89,趋势线,89,5,0),COLORWHITE;
GUC:=(趋势线>89) AND FILTER((趋势线>89),15) AND C>中位;
GUD0:=REF(趋势线,1)>89 AND CROSS(89,趋势线) AND C>中位;
GUD1:=REF(趋势线,1)>89 AND REF(趋势线,1)<94 AND CROSS(89,趋势线);
GUD2:=REF(趋势线,1)>94 AND REF(趋势线,1)<97 AND CROSS(94,趋势线);
GUD3:=REF(趋势线,1)>97 AND REF(趋势线,1)>99 AND CROSS(97,趋势线);
GUD4:=REF(趋势线,1)>99 AND REF(趋势线,1)<100 AND CROSS(99,趋势线);
GUD5:=REF(趋势线,1)>100 AND CROSS(100,趋势线);
GUD:=GUD1=1 OR GUD2=1 OR GUD3=1 OR GUD4=1 OR GUD5=1;
出逃点:STICKLINE(GUD=1 AND C>中位,89,50,5,0),COLORGREEN;
DRAWICON(GUD=1 AND C>中位,45,2);
DRAWTEXT(GUD0,40,'出逃点'),COLORGREEN;
DRAWTEXT (GUC,84,'警戒区'),COLORWHITE;
高:89,COLORGREEN;
低:11,COLORRED;
中:50,POINTDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,高,'高'),COLORGREEN;
DRAWTEXT(ISLASTBAR,低,'低'),COLORRED;
DRAWTEXT(ISLASTBAR,中,'中'),COLORWHITE;
选股公式源码
{选股公式一:红箭头图标}
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
压:=L1+P1*7/8,COLORGREEN;
撑:=L1+P1*0.5/8,COLORRED;
中位:=(撑+压)/2,COLORWHITE;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:=EMA(V11,3),LINETHICK2,COLORLIMAGENTA;
GUB1:=REF(趋势线,1)<11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11);
GUB2:=REF(趋势线,1)<6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6);
GUB3:=REF(趋势线,1)<3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3);
GUB4:=REF(趋势线,1)<1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1);
GUB5:=REF(趋势线,1)<0 AND CROSS(趋势线,0);
GUB:=GUB1=1 OR GUB2=1 OR GUB3=1 OR GUB4=1 OR GUB5=1;
红箭头图标:GUB=1 AND C<中位;
{选股公式二:启动点}
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
压:=L1+P1*7/8,COLORGREEN;
撑:=L1+P1*0.5/8,COLORRED;
中位:=(撑+压)/2,COLORWHITE;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:=EMA(V11,3),LINETHICK2,COLORLIMAGENTA;
GUB0:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND C<中位;
启动点:GUB0; |