副图公式源码支持 手机/电脑
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;
CHA:=(趋势线<11) AND FILTER((趋势线<=11),15) AND C<中位;
CHB0:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND C<中位;
CHB1:=REF(趋势线,1)<11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11);
CHB2:=REF(趋势线,1)<6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6);
CHB3:=REF(趋势线,1)<3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3);
CHB4:=REF(趋势线,1)<1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1);
CHB5:=REF(趋势线,1)<0 AND CROSS(趋势线,0);
CHB:=CHB1=1 OR CHB2=1 OR CHB3=1 OR CHB4=1 OR CHB5=1;
启动点:STICKLINE(CHB=1 AND C<中位,11,50,5,0),COLORRED;
DRAWICON(CHB=1 AND C<中位,55,1);
DRAWTEXT(CHB0,60,'启动点'),COLORRED;
DRAWTEXT(CHA,16,'关注区'),COLORYELLOW;
风险区:STICKLINE(趋势线>89,趋势线,89,5,0),COLORWHITE;
CHC:=(趋势线>89) AND FILTER((趋势线>89),15) AND C>中位;
CHD0:=REF(趋势线,1)>89 AND CROSS(89,趋势线) AND C>中位;
CHD1:=REF(趋势线,1)>89 AND REF(趋势线,1)<94 AND CROSS(89,趋势线);
CHD2:=REF(趋势线,1)>94 AND REF(趋势线,1)<97 AND CROSS(94,趋势线);
CHD3:=REF(趋势线,1)>97 AND REF(趋势线,1)>99 AND CROSS(97,趋势线);
CHD4:=REF(趋势线,1)>99 AND REF(趋势线,1)<100 AND CROSS(99,趋势线);
CHD5:=REF(趋势线,1)>100 AND CROSS(100,趋势线);
CHD:=CHD1=1 OR CHD2=1 OR CHD3=1 OR CHD4=1 OR CHD5=1;
出逃点:STICKLINE(CHD=1 AND C>中位,89,50,5,0),COLORGREEN;
DRAWICON(CHD=1 AND C>中位,45,2);
DRAWTEXT(CHD0,40,'出逃点'),COLORGREEN;
DRAWTEXT (CHC,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;
CHB1:=REF(趋势线,1)<11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11);
CHB2:=REF(趋势线,1)<6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6);
CHB3:=REF(趋势线,1)<3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3);
CHB4:=REF(趋势线,1)<1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1);
CHB5:=REF(趋势线,1)<0 AND CROSS(趋势线,0);
CHB:=CHB1=1 OR CHB2=1 OR CHB3=1 OR CHB4=1 OR CHB5=1;
红箭头图标:CHB=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;
CHB0:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND C<中位;
启动点:CHB0; |