本指标借鉴了坛子内外高手的指标,经精心调整优化而成,
其中xma函数存在漂移,不过参照图下部的MACD彩色柱子,
你会发现尽管有漂移但对买卖点的把握的可信度较高,只要不贪。
所以本人还是认为:买点、卖点一目了然,
希望给你带爱收益
X3:MA(C,3),COLORC0D9D9;
Y8:MA(C,8),COLORYELLOW;
UPPER:=MA(C,20)+2*SQRT(MA(POW((C-MA(C,20)),2),20));
LOWER:=MA(C,20)-2*SQRT(MA(POW((C-MA(C,20)),2),20));
BO:REF(MA(C,20),1),COLORFF00FF;
卖:REF(UPPER,1),COLOR70DBDB,LINETHICK2;
买:REF(LOWER,1),COLORC0D9D9,LINETHICK2;
出:XMA((C+H+O+L)/4,20)*(1+80/1000),COLORBC8F8F,LINETHICK1;
进:XMA((C+H+O+L)/4,32)*(1-100/1000),COLORBC8F8F,LINETHICK1;
幅度:=100*(出-进)/进,NODRAW;
STICKLINE(出>LOW AND 出<HIGH,出,MAX(出,MAX(OPEN,CLOSE)),4,1),COLORGREEN;
STICKLINE(出>MIN(C,O) AND 出<MAX(C,O),出,MAX(OPEN,CLOSE),4,1),COLORGREEN;
STICKLINE(出>LOW AND 出<HIGH,出,HIGH,0,1),COLORGREEN;
STICKLINE(出<LOW,OPEN,CLOSE,4,1),COLORGREEN;
STICKLINE(出<LOW,HIGH,LOW,0,1),COLORGREEN;
STICKLINE(进>LOW AND 进<HIGH,进,MIN(MIN(OPEN,CLOSE),进),4,1),COLORWHITE;
STICKLINE(进>MIN(C,O) AND 进<MAX(C,O),进,MIN(OPEN,CLOSE),4,1),COLORWHITE;
STICKLINE(进>LOW AND 进<HIGH,进,LOW,0,1),COLORWHITE;
STICKLINE(进>HIGH,OPEN,CLOSE,4,1),COLORWHITE;
STICKLINE(进>HIGH,HIGH,LOW,0,1),COLORWHITE;
DRAWTEXT(CROSS(C,进) OR (L<进),LOW*0.95,'B'),COLORE6E8FA;
DRAWTEXT(CROSS(C,出) OR (H>出),HIGH*1.02,'S'),COLORLIGREEN;
STICKLINE(C<REF(C,1),O,C,2,0),COLORCYAN;
STICKLINE(C<O ,O,C,2,0),COLORCYAN;
FF1:=L<AMOUNT/V*0.9 AND (C-REF(C,1))/REF(C,1)*100>1.2 AND L<MA(C,5)*0.921 AND V<MA(V,5)*1.5;
GG1:=FILTER((AMOUNT/V AND L<AMOUNT/V*0.9 AND (C-REF(C,1))/REF(C,1)*100>1.2 AND L<MA(C,5)*0.921),20);
DRAWTEXT(FF1,L-0.30,'鼠'),COLOR4080FF;
DRAWTEXT(GG1,L-0.8,'入'),COLORWHITE;
龙:=O<MA(CLOSE,5) AND O<MA(CLOSE,10)AND O<MA(CLOSE,20)AND C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20);
DRAWTEXT(FILTER(龙,5),L-0.40,'龙'),COLORYELLOW;
MACD:=2*( REFDATE(REF(HHV(H,150),3)-(REF(HHV(H,150),3)-REF(LLV(L,150),3)),DATE)
+(EMA(C,12)-EMA(C,26))*2
- EMA(REFDATE(REF(HHV(H,150),3)-(REF(HHV(H,150),3)-REF(LLV(L,150),3)),DATE)
+(EMA(C,12)-EMA(C,26))*2
,9)
);
STICKLINE(MACD<REF(MACD,1)AND MACD>0, REFDATE(REF(HHV(H,150),3)-(REF(HHV(H,150),3)-REF(LLV(L,150),3)),DATE)
, REFDATE(REF(HHV(H,150),3)-(REF(HHV(H,150),3)-REF(LLV(L,150),3)),DATE)
+MACD,0,0 ),COLOR00BBFF;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0, REFDATE(REF(HHV(H,150),3)-(REF(HHV(H,150),3)-REF(LLV(L,150),3)),DATE)
, REFDATE(REF(HHV(H,150),3)-(REF(HHV(H,150),3)-REF(LLV(L,150),3)),DATE)
+MACD,0,0 ),COLOR0011BB;
STICKLINE(MACD>REF(MACD,1)AND MACD<0, REFDATE(REF(HHV(H,150),3)-(REF(HHV(H,150),3)-REF(LLV(L,150),3)),DATE)
, REFDATE(REF(HHV(H,150),3)-(REF(HHV(H,150),3)-REF(LLV(L,150),3)),DATE)
+MACD,0,0),COLORBB11BB;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0, REFDATE(REF(HHV(H,150),3)-(REF(HHV(H,150),3)-REF(LLV(L,150),3)),DATE)
, REFDATE(REF(HHV(H,150),3)-(REF(HHV(H,150),3)-REF(LLV(L,150),3)),DATE)
+MACD,0,0),COLORFFBB11;
IF(V>MA(V,5),卖,DRAWNULL),COLORRED,LINETHICK2;
IF(V<MA(V,5),买,DRAWNULL),COLORBLUE,LINETHICK2;
|