分享一款通达信准确度很高的选股指标源码:...
分享一款通达信准确度很高的选股指标
源码:
sA7:=EMA(C,7);
sA14:=EMA(CLOSE,14);
sA21:=EMA(CLOSE,21);
sA34:=EMA(CLOSE,34);
sA42:=EMA(CLOSE,42);
sA54:=EMA(CLOSE,54);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);{财神指标网财神指标网-通达信指标公式-股票指标公式-选股公式}
MACD:=2*(DIFF-DEA);
rYI:=EMA(C,120)>=REF(EMA(C,120),1);
rYI1:=EMA(C,240)>=REF(EMA(C,240),1);
rYI2:=EMA(C,360)>=REF(EMA(C,360),1);
rYI3:=EMA(C,90)>=REF(EMA(C,90),1);
坑底s:(CROSS(sA7,sA14) OR CROSS(sA7,sA21) OR CROSS(sA7,sA34) OR CROSS(sA7,sA42) OR
CROSS(sA7,sA54) OR CROSS(sA14,sA21) OR CROSS(sA14,sA34) OR CROSS(sA14,sA42) OR
CROSS(sA14,sA54) OR CROSS(sA21,sA34) OR CROSS(sA21,sA42) OR CROSS(sA34,sA54) OR
CROSS(sA14,sA21) OR CROSS(sA21,sA34) OR CROSS(sA34,sA42) OR CROSS(sA42,sA54))
AND DEA>0 AND rYI AND rYI1 AND rYI2 AND rYI3 ;