同花顺地平线GLT 抄底公式
同时看到多项指标,根据交叉情况判断股价走势和卖点买点。
源码
//天堂:0,colorwhite;
//SKDJ
LOWV:=LLV(LOW,A);
HIGHV:=HHV(HIGH,A);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,B);
K:EMA(RSV,B);
//D:MA(K,B);
//天堂:0,colorblue;
//KDJ:J
RSV=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
a=SMA(RSV,M1,1);
b=SMA(a,M2,1);
e=3*a-2*b;
IF(a<0) a=0;
IF(a>100) a=100;
IF(b<0) b=0;
IF(b>100) b=100;
IF(e<0) e=0;
IF(e>100) e=100;
//K:a/50;
//D:b;
J:e+2;
//天堂:0,colorred;
//RSI:6
LC := REF(CLOSE,1);
RSI$1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
//RSI$2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
//RSI$3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
//a:20;d:80;
//天堂:0,colorblue;