昨收:DYnaINFO(3),COLORBLUE,LINETHICK2;{将括号中3改为11则为今日均价,那么此图即可省略分时振荡图}
S2:=Sma(C,3,1);
S6:=SMA(C,5,1);
DK:=16*(S2-S6);
STICKLINE(DK>0,昨收,昨收+DK,0,0),COLORBLUE;
STICKLINE(DK<0,昨收,昨收+DK,0,0),COLORCYAN,COLORBROWN;
STICKLINE(FILTER(BB>70,3),昨收,昨收+DK,0.3,0),COLORYELLOW;
MAV:=(2*C+H+L)/4;
强度: ema(MAV,9)*0.8+1,POINTDOT,LINETHICK5,COLORFF00FF;
趋势线:昨收+DK,COLORBROWN,LINETHICK1;
转暖:IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),COLORWHITE,LINETHICK1;
转凉:IF(趋势线<REF(趋势线,1),趋势线,DRAWNULL),COLORCYAN,LINETHICK1;
{GREEN}
STICKLINE(OPEN>=CLOSE ,H ,L,0,0 ),COLORFF7700;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORGREEN;
{RED}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE(CLOSE>OPEN,H,L,0,0),COLORWHITE;
{抄底2}
抄底:=3*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - 2*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));
STICKLINE(crOSS(抄底,3),(L+H)/2,昨收+0.9,1.5,0),COLORBLUE,LINETHICK2;{可直接做抄底选股公式}
{箱体}
颈线:MA(REF(HHV(C,30),1),2),NODRAW,COLORYELLOW;
底线:MA(REF(LLV(C,30),1),2),NODRAW,COLORRED;
支撑:(REF(H,1)+REF(L,1))/2,NODRAW,COLORFF00FF;{可加在其他主副图,要显示线,去掉NODRAW即可}
{凤凰金叉}
{JINCHA}
XXX:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(XXX,3,1);
D:=SMA(K,3,1);
DRAWTEXT(CROSS(K,D) AND CROSS(MacD.dif,macd.DEA),L*0.99,'Ψ'),COLORBLUE;{可单独做金叉选股公式};