添加SAR预警
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

请老师帮我在慢牛出击的预警里加个SAR首日翻红,把两者整合一下,谢谢啦!!附上快乐慢牛的慢牛出击预警:DIF:=EMA(C,12)-EMA(C,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;LB:=DYNAINFO(17);出击1:=REF(C,1)0 AND REF(K,1)<80 AND REF(J,1)<100 AND LB>1.5;出击2:=REF(C,1)0 AND MACD>REF(MACD,1) AND REF(K,1)<80 AND REF(J,1)<100 AND LB>1;慢牛出击:出击1 OR 出击2;恳请老师帮忙,万分感谢!

解答:

 DIF:=EMA(C,12)-EMA(C,26);

DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
LB:=DYNAINFO(17);
出击1:=REF(C,1)<REF(C,2)*1.05 AND REF(C,1)<REF(C,4)*1.05 AND REF(MACD,1)<0 AND MACD>0 AND REF(K,1)<80 AND REF(J,1)<100 AND LB>1.5;
出击2:=REF(C,1)<REF(C,2)*1.05 AND REF(C,1)<REF(C,4)*1.05 AND REF(MACD,1)<REF(MACD,2) AND REF(MACD,1)>0 AND MACD>REF(MACD,1) AND REF(K,1)<80 AND REF(J,1)<100 AND LB>1;
慢牛出击: ((出击1 OR 出击2) AND  CROSS(C,SAR.SAR));
 
 

选股票看什么指标最好 >股票指标网