同花顺介入买精准主图指标 源码介绍
同花顺介入买精准主图指标 源码
MA10:MA(CLOSE,10);
STICKLINE((CLOSE > MA10),LOW,HIGH,0.8,0),colorred;
STICKLINE((CLOSE > MA10),OPEN,CLOSE,4,0),colorred;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),9,1) / SMA(ABS((CLOSE - LC)),9,1)) * 100);
STICKLINE((RSI < 20),LOW,HIGH,0.8,0),colorFF6600;
STICKLINE((RSI < 20),OPEN,CLOSE,4,0),colorCC5000;
DRAWTEXT(CROSS(RSI,(20 - 0.0005)),LOW*0.99,'短线');
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
YX:=((CLOSE > LC) AND C>O);
KK:=HHV(K,5);
DD:=HHV(D,5);
D1:=REF(D,1);
K1:=REF(K,1);
DRAWTEXT((((D1 < 30) AND CROSS(K,D)) AND YX),(LOW * 1),'介入');
DRAWTEXT((((D1 < 30) AND CROSS(K,D)) AND YX),(LOW * 0.97),'↑买');
DRAWTEXT (((DD > 70) AND CROSS(D,K)),HIGH*1.03,'↓卖'),colorFF00cc;
BW1:=MA(C,10);
BW:=ATAN((BW1-REF(BW1,1)))*180/2;
STICKLINE(BW>1 AND BW1>REF(BW1,1), BW1,REF(BW1,1),8,0);
STICKLINE(BW<1 AND BW1<REF(BW1,1), BW1,REF(BW1,1),8,1),colorgreen;
BW2:=MA(C,20);
BW3:=ATAN((BW2-REF(BW2,1)))*180/2;
STICKLINE(BW3>1,BW2,REF(BW2,1),8,0),colorred;
STICKLINE(BW3<1,BW2,REF(BW2,1),8,1),colorblue;
gd47734