高位线:HHV(H,N),COLORRED;
低位线:LLV(L,N),COLORGREEN;
EMA5:EMA(C,SHORT),COLORWHITE;
EMA8:EMA(C,MID),COLORYELLOW;
EMA21:EMA(C,LONG),COLORCYAN;
中位:(HIGH+LOW)/2,COLORFF00FF;
STICKLINE(1,中位,中位,6,1),COLORBROWN;
AA10:=MA(C,10);
BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416;
{同花顺等股软,以下可改为:
FILLRGN(AA10,REF(AA10,1),AA10>REF(AA10,1),colorred,AA10<REF(AA10,1),colorgreen);}
DRAWBAND(AA10,RGB(255,000,000),REF(AA10,1),RGB(00,00,255));
{以下不显示带状线,而显示双层波浪K线,喜欢精简的可以不用}
{STICKLINE(BB10>1 AND AA10>REF(AA10,1), AA10,REF(AA10,1),8,0),colorred;
STICKLINE(BB10<1 AND AA10<REF(AA10,1), AA10,REF(AA10,1),8,1),colorgreen;
AA20:=MA(C,20);
BB20:=ATAN((aa20-REF(aa20,1)))*180/3.1416;
STICKLINE(BB20>1,AA20,REF(AA20,1),8,0),coloryellow;
STICKLINE(BB20<1,AA20,REF(AA20,1),8,1),COLORbbcccc;}
A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));
B1:=REF(C,A1+1)> C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA");
DRAWTEXT(B1> 0,L*0.98,'*M底'),COLOR00FFFF;
A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));
B2:=REF(C,A2+1)> C AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D");
DRAWTEXT(B2,L*0.96,'*K底'),COLORFF00FF;
A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));
B3:=REF(C,A3+1)> C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2");
DRAWTEXT(B3> 0,L*0.94,'*R底'),COLOR41FCF2;
C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));
D1:=REF(C,C1+1)<C AND REF("MACD.DIF",C1+1)> "MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF");
DRAWTEXT(D1> 0,H*1.01,'*M顶'),COLOR00FF00;
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));
D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)> "KDJ.K" AND CROSS("KDJ.D","KDJ.K");
DRAWTEXT(D2> 0,H*1.03,'*K顶'),COLORFFFFFF;
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)> "RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");
DRAWTEXT(D3> 0,H*1.05,'*R顶'),COLORFFFF00;
DRAWTEXT_FIX(1,0.00,0.00,0,'蓝色带状线收口,红色出现注意加仓买入。'),COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.04,0,'红色带状线持股,红色收敛注意获利了结。')COLORFF88FF;
DRAWTEXT_FIX(1,0.00,0.08,0,'上长影K线,顶背离反复出现,5日线拐头,注意走人!'),COLOR00FFFF;