红魔方
{红魔方}
AA:=MA(C,20)>REF(MA(C,20),1) AND C>MA(C,20);
STICKLINE(MA(C,5)>REF(MA(C,5),1) AND C>MA(C,5),42,50,4,0),COLOR888888;
STICKLINE(MA(C,10)>REF(MA(C,10),1) AND C>MA(C,10),35,42,4,0),COLOR887788;
STICKLINE(MA(C,20)>REF(MA(C,20),1) AND C>MA(C,20),28,35,4,0),COLOR886688;
STICKLINE(MA(C,40)>REF(MA(C,40),1) AND C>MA(C,40),21,28,4,0),COLOR994466;
STICKLINE(MA(C,60)>REF(MA(C,60),1) AND C>MA(C,60),14,21,4,0),COLOR774466;
STICKLINE(MA(C,90)>REF(MA(C,90),1) AND C>MA(C,90),7,14,4,0),COLOR773366;
STICKLINE(MA(C,120)>REF(MA(C,120),1) AND C>MA(C,120),0,7,4,0),COLOR770066;
STICKLINE(MA(C,40)>REF(MA(C,40),1) AND C>MA(C,40) AND AA=1,21,28,4,0),COLOR885588;
STICKLINE(MA(C,60)>REF(MA(C,60),1) AND C>MA(C,60) AND AA=1,14,21,4,0),COLOR664488;
STICKLINE(MA(C,90)>REF(MA(C,90),1) AND C>MA(C,90) AND AA=1,7,14,4,0),COLOR663388;
STICKLINE(MA(C,120)>REF(MA(C,120),1) AND C>MA(C,120) AND AA=1,0,7,4,0),COLOR660088;
STICKLINE(1=1,90,100,4,0),COLOR880000;
BB:=REF(CROSS((EMA(C,12)-EMA(C,26)-EMA(EMA(C,12)-EMA(C,26),9)),0),1) AND
(EMA(C,12)-EMA(C,26)-EMA(EMA(C,12)-EMA(C,26),9))>0,STICK,COLORRED;
追:=CROSS(C,MA(REF(HHV(C,30),1),2)) AND (MA(REF(HHV(C,30),1),2)<REF(MA
(REF(HHV(C,30),1),2),2)),COLORRED;
短线:SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,2,1),COLORCCCCCC;
短均线:IF(短线<EMA(短线,5),EMA(短线,5),短线),COLORCCCCCC;
月量价:=SUM((C-O)/(H-L)*V,20)/10000;
周均量:=EMA(月量价,5);
趋势买点:=((短线<(MA(REF(HHV(短线,30),1),2)+MA(REF(LLV(短线,30),1),
2))/2) AND 短线>短均线 AND REF(短线,1)=REF(短均线,1) AND 月量价
>周均量),COLORRED;
顶:=HHV(月量价,20),COLOR9DFFFF;
底:=LLV(月量价,20),COLORABFF46;
抄:=(((CROSS(月量价,周均量) AND REF(月量价,1)=REF(底,1))+(CROSS(月量价,
周均量) AND REF(月量价,2)=REF(底,2))+(CROSS(月量价,周均量) AND REF
(月量价,3)=REF(底,3)))),COLORRED;
EE:=((FILTER(ATAN(EMA((C+L+H)/3,13)-REF(EMA((C+L+H)/3,13),1))>1 AND
EMA((C+L+H)/3,13)>REF(EMA((C+L+H)/3,8),1),10)) AND 月量价>周均量);
追1:=(月量价=顶 AND REF(顶,1)=LLV(顶,4)),COLORRED;
追2:IF(CROSS(C,MA(REF(HHV(C,30),1),2)) AND (MA(REF(HHV(C,30),1),2)<REF(MA(REF
(HHV(C,30),1),2),2)),60,0),STICK,COLORRED,LINETHICK4;
持股:IF(短线=短均线,短均线,DRAWNULL),COLOR00FFFF,LINETHICK2;
持币:IF(短线<短均线,短均线,DRAWNULL),COLOR00FF00,LINETHICK2;
DRAWICON(追+趋势买点+抄+EE+追1,50,9);
DRAWICON(BB>0,60,1);
DRAWTEXT(FILTER(短线>50,20),3,'低位区'),COLORFFFFFF;
DRAWTEXT(FILTER(短线<50,20),92,'高位区'),COLORFFFFFF;
|