《六个钻石指标》由会员分享,可在线阅读,更多相关《六个钻石指标(5页珍藏版)》请在金锄头文库上搜索。
1、六个钻石指标DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);DEA:=EMA(DIFF,5);A1:=DIFFDEA;MACD金叉:IF(Al,l,0),colorred;RSV1:=(CLOSE-LLV(LOW,8)/(HHV(HIGH,8)-LLV(LOW,8)*l00;K:=SMA(RSVl,3,l);D:=SMA(K,3,l);DRAWICON(KD,2,25);DRAWICON(KD;KDJ金叉:=IF(A2,2,0),colorred;LC:=REF(CLOSE,l);RSI1:=(SMA(MAX(CLOSE-LC,0),5,1)/(SMA(ABS(CLOSE-L
2、C),5,1)*100;RSI2:=(SMA(MAX(CLOSE-LC,0),13,1)/(SMA(ABS(CLOSE-LC),13,1)*100;DRAWICON(RSI1RSI2,3,25);DRAWICON(RSI1LWR2,4,25);DRAWICON(LWR1BBI;BBI:=IF(A5,5,0),colorred;MTM:=CLOSE-REF(CLOSE,1);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);DRAWICON(M
3、MSMMM,6,25);DRAWICON(MMSMMM;MTM金叉:=IF(A6,6,0),colorred;涨买入:IF(A1ANDA2ANDA3ANDA4ANDA5ANDA6)ANDREF(A1ANDA2ANDA3ANDA4ANDA5ANDA6,1)=0,7,0),coloryellow,LINETHICK2;上涨:IF(A1ANDA2ANDA3ANDA4ANDA5ANDA6,7,0),coloryellow,LINETHICK2;晴天:BARSLASTCOUNT(A1ANDA2ANDA3ANDA4ANDA5ANDA6),LINETHICK0;雨天:BARSLASTCOUNT(MACD金叉
4、+KDJ金叉+RSI金叉+LWR金叉+BBI金叉+MTM金叉0ANDMACD金叉+KDJ金叉+RSI金叉+LWR金叉+BBI金叉+MTM金叉DEA;RSV1:=(CLOSE-LLV(LOW,8)/(HHV(HIGH,8)-LLV(LOW,8)*100;K:=SMA(RSV1,3,1);D:=SMA(K,3,1);A2:=KD;LC:=REF(CLOSE,1);RSI1:=(SMA(MAX(CLOSE-LC,0),5,1)/(SMA(ABS(CLOSE-LC),5,1)*100;RSI2:=(SMA(MAX(CLOSE-LC,0),13,1)/(SMA(ABS(CLOSE-LC),13,1)*1
5、00;A3:=RSI1RSI2;RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13)*100;LWR1:=SMA(RSV,3,1);LWR2:=SMA(LWR1,3,1);A4:=LWR1LWR2;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)/4;A5:=CLOSEBBI;MTM:=CLOSE-REF(CLOSE,1);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);A6:=MMSMMM;:IF(A1ANDA2ANDA3ANDA4ANDA5ANDA6)ANDREF(A1ANDA2ANDA3ANDA4ANDA5ANDA6,1)=0,7,0);