{王牌波段捕捉波段机会,紧跟主图源码如下}
{王牌波段主图指标,无未来函数}
MA5:MA(C,5),COLORYELLOW,LINETHICK1,DOTLINE;
多空线:EMA(C,34),COLORMAGENTA,LINETHICK2;
战略线:=MA(C,99),COLORMAGENTA,LINETHICK2;
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
KA:=EMA(RV,3);
QFR:=MA(KA,3);
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
DCZB1:=DIFF>DEA;
DCZ1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(DCZ1,3,1);
D:=SMA(K,3,1);
DCZB2:=K>D;
DC:=REF(CLOSE,1);
ZBGS1:=(SMA(MAX(CLOSE-DC,0),5,1))/(SMA(ABS(CLOSE-DC),5,1))*100;
ZBGS2:=(SMA(MAX(CLOSE-DC,0),13,1))/(SMA(ABS(CLOSE-DC),13,1))*100;
DCZB3:=ZBGS1>ZBGS2;DCZ:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
平台1:=SMA(DCZ,3,1);
平台2:=SMA(平台1,3,1);
DCZB4:=平台1>平台2;
DCZB5:=CLOSE>BBI;
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
DCZB6:=MMS>MMM;
AA:=C>MA(C,20);
JG:=IF(DCZB1 AND DCZB2 AND DCZB3 AND DCZB4 AND DCZB5 AND DCZB6,6,0);
王牌:=BARSLASTCOUNT(JG=6)=1 AND CLOSE>OPEN AND AA COLORYELLOW;
DRAWICON(王牌,LOW,9);
DRAWTEXT(王牌,L*0.98,' ★王牌'),COLORYELLOW;
STICKLINE(王牌,OPEN,CLOSE,1,0),COLORYELLOW;
{王牌波段捕捉波段机会,紧跟副图源码如下}
{王牌波段副图指标,无未来函数}
N:=9;
M:=3;
LOWV1:=LLV(LOW,N);
HIGHV1:=HHV(HIGH,N);
RSV1:=EMA((CLOSE-LOWV1)/(HIGHV1-LOWV1)*100,M);
K1:EMA(RSV1,M) DOTLINE;
D1:MA(K1,M);
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
KA:=EMA(RV,3);
QFR:=MA(KA,3);
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
DCZB1:=DIFF>DEA;
DCZ1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(DCZ1,3,1);
D:=SMA(K,3,1);
DCZB2:=K>D;
DC:=REF(CLOSE,1);
ZBGS1:=(SMA(MAX(CLOSE-DC,0),5,1))/(SMA(ABS(CLOSE-DC),5,1))*100;
ZBGS2:=(SMA(MAX(CLOSE-DC,0),13,1))/(SMA(ABS(CLOSE-DC),13,1))*100;
DCZB3:=ZBGS1>ZBGS2;
DCZ:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
平台1:=SMA(DCZ,3,1);
平台2:=SMA(平台1,3,1);
DCZB4:=平台1>平台2;
DCZB5:=CLOSE>BBI;
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
DCZB6:=MMS>MMM;
20,COLORLICYAN;
80,COLORLIRED;
AA:=C>MA(C,20);
JG:=IF(DCZB1 AND DCZB2 AND DCZB3 AND DCZB4 AND DCZB5 AND DCZB6,6,0);
王牌:BARSLASTCOUNT(JG=6)=1 AND CLOSE>OPEN AND AA COLORYELLOW,NODRAW;
STICKLINE(王牌 ,0,66,2,0),COLORYELLOW;
STICKLINE(王牌 ,0,66,1,0),COLORRED;
DRAWICON(王牌,66,9);
DRAWICON(CROSS(K1,D1),K1*1.002,1);
DRAWICON(CROSS(D1,K1),D1*1.002,2);