请老师帮写个同花顺选股公式 13天内换手率小于45%且振幅小于2%
发布网友
发布时间:2022-04-29 13:41
我来回答
共4个回答
热心网友
时间:2023-10-09 04:45
DIFF:=EMA(CLOSE,5)-EMA(CLOSE,34);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
底背:=DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
XG: 低位金叉 AND 二次金叉 AND 底背离;
已通过TDX 测试。换手公式如上即可,不赘。{个人看法,仅供参考。}
热心网友
时间:2023-10-09 04:46
我靠这个需要写公式吗?尤其是13天~这么短的时间!即便你写了公式完全正确,就凭同花顺也无法帮你找到,本人建议你每天收盘后将收盘数据导出EXCEL中~然后将每天的最高最低和换手单独罗列,进行计算~太方便了!
热心网友
时间:2023-10-09 04:46
对不起,我不使用同花顺。
热心网友
时间:2023-10-09 04:47
换手率:=VOL*100/CAPITAL;
XG:SUM(换手率,13)<45
AND HHV(H,13)/LLV(L,13)<1.02;
DIFF:=EMA(CLOSE,5)-EMA(CLOSE,34);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
XG:低位金叉 AND 二次金叉 AND 底背离;