副图公式源码支持 手机/电脑
1;1.007;
GUP1:=100-EMA((HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100,34);
DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
DRAWTEXT(DIF1>DEA1,1.005,'↑'),COLORRED;
DRAWTEXT(DIF1<DEA1,1.005,'↑'),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,1.005,' MACD'),COLORYELLOW;
RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K1:=SMA(RSV1,3,1);
D1:=SMA(K1,3,1);
DRAWTEXT(K1>D1,1.004,'↑'),COLORRED;
DRAWTEXT(K1<D1,1.004,'↑'),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,1.004,' KDJ'),COLORYELLOW;
J1:=EMA(GUP1,21);
DRAWTEXT(GUP1>J1,1.006,'↑'),COLORRED;
DRAWTEXT(GUP1<J1,1.006,'↑'),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,1.006,' GJ'),COLORYELLOW;
TYP1:=(HIGH+LOW+CLOSE)/3;
CCI1:=(TYP1-MA(TYP1,14))*1000/(15*AVEDEV(TYP1,14));
DRAWTEXT(CCI1>100,1.003,'↑'),COLORRED;
DRAWTEXT(CCI1<100,1.003,'↑'),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,1.003,' CCI'),COLORYELLOW;
DRAWTEXT(C>SAR.SAR,1.002,'↑'),COLORRED;
DRAWTEXT(C<SAR.SAR,1.002,'↑'),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,1.002,' SAR'),COLORYELLOW;
DRAWTEXT(RSI.RSI1>50,1.001,'↑'),COLORRED;
DRAWTEXT(RSI.RSI1<50,1.001,'↑'),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,1.001,' RSI'),COLORYELLOW;
STICKLINE(GUP1>J1 AND DIF1>DEA1 AND K1>D1 AND CCI1>100 AND C>SAR.SAR AND RSI.RSI1>50,1,1.007,0.01,0),COLORLIRED;
六剑齐发:GUP1>J1 AND DIF1>DEA1 AND K1>D1 AND CCI1>100 AND C>SAR.SAR AND RSI.RSI1>50,NODRAW;
选股公式源码
{选股公式:六剑齐发}
GUP1:=100-EMA((HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100,34);
DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K1:=SMA(RSV1,3,1);
D1:=SMA(K1,3,1);
J1:=EMA(GUP1,21);
TYP1:=(HIGH+LOW+CLOSE)/3;
CCI1:=(TYP1-MA(TYP1,14))*1000/(15*AVEDEV(TYP1,14));
六剑齐发:GUP1>J1 AND DIF1>DEA1 AND K1>D1 AND CCI1>100 AND C>SAR.SAR AND RSI.RSI1>50; |