年:=1+(BArslAST(YEAR!=REF(YEAR,1) OR DATETODAY(DATE)=1));
天数:=IF(PERIOD=5,年,DRAWNULL);
高1:=HHV(H,天数);
低1:=LLV(L,天数);
★风险量化:(C-低1)/(高1-低1)*100,,NODRAW,COLORYELLOW;
振幅:=(高1-低1)/低1*100,NODRAW,COLORWHITE;
◆顶部:=CONST(高1),NODRAW,COLORYELLOW;
◆筑底:=CONST(低1),NODRAW,COLOR00FF00;
{步入风险区:=CONST(高1-(高1-低1)*1/3),NODRAW,COLORRED;
☆邰氏盈利☆:=CONST(高1-(高1-低1)*1/2),NODRAW,COLORWHITE;
弱势区:=CONST(高1-(高1-低1)*2/3),NODRAW,COLOR0099FF;
STICKLINE(C>0,CONST(高1-(高1-低1)*1/4),CONST(高1-(高1-低1)*1 /4),2,0),COLORFF00FF;
STICKLINE(C>0,CONST(高1-(高1-低1)*3/4),CONST(高1-(高1-低1)*3 /4),2,0),COLORFF00FF;
STICKLINE(C>0,◆顶部,◆顶部,10,0),COLORYELLOW,LINETHICK2;
STICKLINE(C>0,◆筑底,◆筑底,10,0),COLOR00FF00,LINETHICK2;
STICKLINE(C>0,步入风险区,步入风险区,10,0),COLORRED,LINETHICK2;
STICKLINE(C>0,☆邰氏盈利☆,☆邰氏盈利☆,10,0),COLORWHITE;
STICKLINE(C>0,弱势区,弱势区,10,0),COLOR0099FF;}
N:=12;
DP:=(H+L+2*C)/4;
DK:=(EMA(DP,12)-EMA(DP,50));
RC:=◆筑底;
STICKLINE(DK>0 AND DK>REF(DK,1),RC,RC+DK,1,0),COLOR00CC00;
STICKLINE(DK>0 AND DK<=REF(DK,1),RC,RC+DK,1,1),COLORLIBLUE;
STICKLINE(DK<0 AND DK>REF(DK,1),RC,RC+DK,1,0),COLOR00CC00;
STICKLINE(DK<0 AND DK<=REF(DK,1),RC,RC+DK,1,0),COLORLIBLUE;
DN:=Abs(CLOSE-REF(CLOSE,N));
VY:=SUM(ABS(CLOSE-REF(CLOSE,1)),N);
ER:=DN/VY;
FSC:=2/(2+1);
SSC:=2/(N+1);
SC:=ER*(FSC-SSC)+SSC;
SCSQ:=SC*SC;
★切忌进场★:DMA(DP,SCSQ),COLORBLUE,LINETHICK2;
★持股待涨★:IF(★切忌进场★>EMA(★切忌进场★,3)=1,★切忌进场 ★,DRAWNULL),COLOR00FF00,LINETHICK3;
〖趋势为空〗:EMA(DP,50),COLORCYAN,LINETHICK2;
【趋势为多】:IF(〖趋势为空〗>MA(DP,48),〖趋势为空〗,DRAWNULL),COLORRED,LINETHICK3;
BUY:=★切忌进场★>EMA(★切忌进场★,3);
DRAWKLINE(H,O,L,C);
【量H】:=IF((AMOUNT/C)/(HHV(AMOUNT,21)/HHV(C,21))*100>100,100,(AMOUNT/C) /(HHV(AMOUNT,21)/HHV(C,21))*100);
STICKLINE(【量H】=100,L,H,0.4,0),COLORMAGENTA;
STICKLINE(【量H】=100 AND C>=O,C,O,4,1),COLORGREEN;
STICKLINE(【量H】=100 AND C<O,C,O,4,0),COLORBLUE;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF>9.8,O,C,1,0),COLORGREEN;
STICKLINE(ZDF<-9.8,O,C,1,0),COLORBLUE;
{Q43:=CONST(高1-(高1-低1)*1/4),NODRAW;
Q41:=CONST(高1-(高1-低1)*3/4),NODRAW;
DK1:=DK+RC;
M20:=MA(DK1,20);
S:=STD(DK1,20);
高:=M20+2*S;
低:=M20-2*S;
【上】:= 高,COLORFFFF00;
【下】:= 低,COLORFFFF00;
DRAWTEXT(crOSS(高,DK1),高,'★'),COLOR00FF00;
DRAWICON(CROSS(DK1,高),H+0.3,2);
{DRAWTEXT(CROSS(DK1,低),低,'▲'),COLOR00FF00;
DRAWICON(CROSS(低,DK1),L-0.3,1);};
邰:=EMA(CLOSE,12)-EMA(CLOSE,26);
小:=EMA(邰,9);
杰:=(邰<-0.1 AND 邰>小);
Ψ财神¥:IF(杰,LLV(L,21),DRAWNULL),COLORBROWN,LINETHICK6;
DRAWTEXT(FILTER(CROSS(〖趋势为空〗,★切忌进场★),144),RC*0.95,'★多空为主☆持股与否做确认☆结合先知A进场 ★快进快出★')COLORCYAN;