同花顺SKDJ带提示指标公式源码

N:=9;
M:=3;
LOWV:=LLV(LOW,N);
HIGHV:=HHV(HIGH,N);
RSV:=ema((CLOSE-LOWV)/(HIGHV-LOWV)*100,M);
K:Ema(RSV,M);
D:MA(K,M);
J:3*K-2*D;
A:80;
B:20;
DRAWICON(crOSS(K,D),D,1);
DRAWICON(CROSS(D,K),D,2);
A1:=BArslAst(REF(CROSS(K,D),1));
底背离:REF(CLOSE,A1+1)>CLOSE AND K>REF(K,A1+1) AND CROSS(K,D);
DRAWLINE(A1=0,D,底背离,D,0),colorred,LINETHICK1;
A2:=BARSLAST(REF(CROSS(D,K),1));
顶背离:REF(CLOSE,A2+1)<CLOSE AND REF(D,A2+1)>D AND CROSS(D,K);
DRAWLINE(A2=0,D,顶背离,D,0),colorgreen,LINETHICK1;
DRAWTEXT(底背离>0,D-5,'买'),colorred;
DRAWTEXT(顶背离>0,D-5,'跑'),colorgreen;
高位谨慎减仓:80;
低位留意加仓:20;
SHORT:=12;LONG:=26;MID:=9;
dif:=100*(EMA(CLOSE,SHORT)-EMA(CLOSE,LONG));
DEA:=EMA(DIF,MID);
macd:=(DIF-DEA)*2;
X1_1:=55;
X1_2:=34;
X1_3:=100*(HHV(HIGH,X1_1)-CLOSE)/(HHV(HIGH,X1_1)-LLV(LOW,X1_1));
X1_4:=(CLOSE-LLV(LOW,X1_2))/(HHV(HIGH,X1_2)-LLV(LOW,X1_2))*100;
X1_5:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
X1_6:=SMA(X1_4,3,1);
X1_7:=SMA(X1_6,3,1);
X1_8:=3*X1_6-2*X1_7;
X1_9:=EMA(X1_8,6);
擒妖:CROSS(X1_9,X1_3) AND X1_9<50,colorred;



来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图