大神,能否帮忙写一个MACD指标中MACD的数值连续N天在正负0.1之间的选股工具,通达信软件
答案:1 悬赏:60 手机版
解决时间 2021-11-25 15:59
- 提问者网友:骑士
- 2021-11-25 02:22
大神,能否帮忙写一个MACD指标中MACD的数值连续N天在正负0.1之间的选股工具,通达信软件
最佳答案
- 五星知识达人网友:风格不统一
- 2021-11-25 02:57
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
TJ1:=BETWEEN(DIF,0.05,-0.05)AND BETWEEN(DEA,0.05,-0.05);
TJ2:=REF(MACD,2)>0 AND BETWEEN(REF(MACD,1),-0.05,0.05)AND MACD>0;
TJ3:=REF(MACD,2)>0 AND BETWEEN(REF(MACD,1),-0.05,0.05)AND MACD=REF(MACD,2);
XG1:TJ1 AND TJ2;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
TJ1:=BETWEEN(DIF,0.05,-0.05)AND BETWEEN(DEA,0.05,-0.05);
TJ2:=REF(MACD,2)>0 AND BETWEEN(REF(MACD,1),-0.05,0.05)AND MACD>0;
TJ3:=REF(MACD,2)>0 AND BETWEEN(REF(MACD,1),-0.05,0.05)AND MACD=REF(MACD,2);
XG2:TJ1 AND TJ3;追问没有通过测试,暂时用不了呀。
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
TJ1:=BETWEEN(DIF,0.05,-0.05)AND BETWEEN(DEA,0.05,-0.05);
TJ2:=REF(MACD,2)>0 AND BETWEEN(REF(MACD,1),-0.05,0.05)AND MACD>0;
TJ3:=REF(MACD,2)>0 AND BETWEEN(REF(MACD,1),-0.05,0.05)AND MACD=REF(MACD,2);
XG1:TJ1 AND TJ2;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
TJ1:=BETWEEN(DIF,0.05,-0.05)AND BETWEEN(DEA,0.05,-0.05);
TJ2:=REF(MACD,2)>0 AND BETWEEN(REF(MACD,1),-0.05,0.05)AND MACD>0;
TJ3:=REF(MACD,2)>0 AND BETWEEN(REF(MACD,1),-0.05,0.05)AND MACD=REF(MACD,2);
XG2:TJ1 AND TJ3;追问没有通过测试,暂时用不了呀。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯