通达信六剑齐发指标公式

通达信庄家进出指标公式

DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);

DEA:=EMA(DIFF,5);

DRAWICON(DIFF>DEA,1,1);

DRAWICON(DIFF<DEA,1,2);

DRAWTEXT(ISLAstBAR=1,1,'.macd'),COLORFFFFFF;

A1:=DIFF>DEA;

MacD金叉:IF(A1,0,0),COLORRED;

RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;

K:=SMA(RSV1,3,1);

D:=SMA(K,3,1);

DRAWICON(K>D,2,1);

DRAWICON(K<D,2,2);

DRAWTEXT(ISLASTBAR=1,2,'.kdj'),COLORFFFFFF;

A2:=K>D;

kdJ金叉:IF(A2,0,0),COLORRED;

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))*100;

DRAWICON(RSI1>RSI2,3,1);

DRAWICON(RSI1<RSI2,3,2);

DRAWTEXT(ISLASTBAR=1,3,'.RSI'),COLORFFFFFF;

A3:=RSI1>RSI2;

RSI金叉:IF(A3,0,0),COLORRED;

RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;

Lwr1:=SMA(RSV,3,1);

LWR2:=SMA(LWR1,3,1);

DRAWICON(LWR1>LWR2,4,1);

DRAWICON(LWR1<LWR2,4,2);

DRAWTEXT(ISLASTBAR=1,4,'.LWR'),COLORFFFFFF;

A4:=LWR1>LWR2;

LWR金叉:IF(A4,0,0),COLORRED;

bbi:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;

DRAWICON(CLOSE>BBI,5,1);

DRAWICON(CLOSE<BBI,5,2);

DRAWTEXT(ISLASTBAR=1,5,'.BBI'),COLORFFFFFF;

A5:=CLOSE>BBI;

BBI金叉:IF(A5,0,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(MMS>MMM,6,1);

DRAWICON(MMS<MMM,6,2);

DRAWTEXT(ISLASTBAR=1,6,'.MTM'),COLORFFFFFF;

A6:=MMS>MMM;

MTM金叉:IF(A6,0,0),COLORRED;

上涨买入:IF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,6,0),COLORYELLOW,LINETHICK2;

通达信双布林MACD主图指标公式