波段操作主图可用于任何波段的分析,大周期分析,小周期操作,谨慎再谨慎,戒贪是关键。
红色K线表示放量。该指标使用周期参数:21,34。
{五指共振}
DRAWGBK(O C,RGB(40,40,40),RGB(0,0,40),0,'01',0); {背景不要可删除}
{1指.能量线}
能量线:=EMA(100*(C-LLV(L,34))/(HHV(H,34)-LLV(L,34)),3),LINETHICK0;
{2指.RSI}
RSI:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100,LINETHICK0;
{3指.KDJ}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK0;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D,LINETHICK0;
{4指.W&R}
威廉WR:=(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))*100,LINETHICK0;
{5指.CCI}
TYP := (HIGH + LOW + CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),LINETHICK0;
五指A:WMA((能量线+RSI+J-威廉WR+CCI)/5,5);
五指B:WMA((能量线+RSI+J-威廉WR+CCI)/5,13);
DRAWBAND(五指A,RGB(255,155,0),五指B,RGB(0,40,255));
WMA((能量线+RSI+J-威廉WR+CCI)/5,5),COLOR00FF00,LINETHICK3;
IF(五指A REF(五指A,1),五指A,DRAWNULL),COLOR0000FF,LINETHICK3;
DRAWTEXT_FIX(1,0.02,0,0,'◆能量线,RSI3.KDJ,W&R,CCI,【五个指标共振线.[红].[绿].变化是买卖信号.颜色及标记是配合信号】'),COLOR00FFFF,LINETHICK3;
KC:=FORCAST(((2*C+H+L)/4*0.618+C*0.382),3);
AAX:=(KC-MA(KC,9))/MA(KC,9)*100;
VAR0:=MIN(EXIST(KC,55),9);
AAX1:=EMA(AAX,VAR0)*VAR0;
AAX2:=MA(AAX1,3);
AAX3:=MA(AAX1,5);
卖:=AAX3 3 AND AAX1 REF(AAX1,1) AND CROSS(AAX2,AAX1);
VBA:=FILTER(卖,5);
DRAWTEXT(VBA,五指A*1.08,'★卖出'),COLOR0044FF;
VB2:=EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6)*100;
VB3:=IF(LLV(VB2,3)=LLV(VB2,11) AND COUNT(VB2 0,2) AND CROSS(VB2,MA(VB2,2)),1,0);
VB4:=FILTER(VB3=1,5);
DRAWTEXT(VB4,五指A*0.97,'★买入'),COLOR00FFFF;
波段操作主图
DRAWGBK(C 0,RGB(0,150,200),RGB(0,120,180),0,' ',0);
VAR3:=C REF(C,1)*1.097;
VAR4:=VAR3 AND C=L;
VAR5:=VAR3 AND O=C AND C=H AND C
VAR1:=SMA(AMOUNT/10,10,1)/10000;
VAR2:=REF(VAR1,1);
资金运转:STICKLINE(VAR1 VAR2,O,C,3,0),COLORRED;
STICKLINE(VAR1 VAR2,H,L,0,0),COLORRED;
资金流失:STICKLINE(VAR1 VAR2,O,C,3,0),COLORGREEN;
STICKLINE(VAR1 VAR2,H,L,0,0),COLORGREEN;
STICKLINE(VAR3,O,C,3,0),COLOR0077BB;
STICKLINE(VAR3,O,C,2.6,0),COLOR0088CC;
STICKLINE(VAR3,O,C,2.2,0),COLOR0099CC;
STICKLINE(VAR3,O,C,1.8,0),COLOR00AADD;
STICKLINE(VAR3,O,C,1.4,0),COLOR00BBDD;
STICKLINE(VAR3,O,C,1,0),COLOR00CCEE;
STICKLINE(VAR3,O,C,0.6,0),COLOR00DDEE;
STICKLINE(VAR3,O,C,0.2,0),COLOR00EEFF;
STICKLINE(VAR3,O,C,0.1,0),COLOR00FFFF;
STICKLINE(VAR3,H,L,0,0),COLOR00FFFF;
STICKLINE(VAR4 OR VAR5,H,REF(C,1),3,1),COLOR0077BB;
STICKLINE(VAR4 OR VAR5,H,REF(C,1),3,0),COLOR0077BB;
STICKLINE(VAR4 OR VAR5,H,REF(C,1),2.6,0),COLOR0088CC;
STICKLINE(VAR4 OR VAR5,H,REF(C,1),2.2,0),COLOR0099CC;
STICKLINE(VAR4 OR VAR5,H,REF(C,1),1.8,0),COLOR00AADD;
STICKLINE(VAR4 OR VAR5,H,REF(C,1),1.4,0),COLOR00BBDD;
STICKLINE(VAR4 OR VAR5,H,REF(C,1),1,0),COLOR00CCEE;
STICKLINE(VAR4 OR VAR5,H,REF(C,1),0.6,0),COLOR00DDEE;
STICKLINE(VAR4 OR VAR5,H,REF(C,1),0.2,0),COLOR00EEFF;
STICKLINE(VAR4 OR VAR5,H,REF(C,1),0.1,0),COLOR00FFFF;
STICKLINE(VAR4 OR VAR5,H,REF(C,1),0,0),COLOR00FFFF;
STICKLINE(VAR4 OR VAR5,O*0.93,O*0.98,2,1),COLOR0077BB;
G21H:CONST(HHV(EMA(H,5),21)),COLORFFFFFF,POINTDOT,LINETHICK4;
G21L:CONST(LLV(EMA(L,5),21)),COLORFFFFFF,POINTDOT,LINETHICK4;
G34H:CONST(HHV(EMA(H,5),34)),COLORFF00FF,DOTLINE;
G34L:CONST(LLV(EMA(L,5),34)),COLORFF00FF,DOTLINE;