股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[指标编写] 九方小牛之选股指标公式


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-2 22:41:01

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
macd:=(DIFF-DEA)*2;
X_1:=MACD< 0 AND MACD>REF(MACD,1) AND REF(MACD,1)< REF(MACD,2) AND REF(MACD,2)< REF(MACD,3) AND REF(MACD,3)< REF(MACD,4);
X_2:=MACD>0 AND MACD< REF(MACD,1) AND REF(MACD,1)>REF(MACD,2) AND REF(MACD,2)>REF(MACD,3) AND REF(MACD,3)>REF(MACD,4);
X_3:=DEA-DIFF;
X_4:=IF(MACD< 0,SUM(MACD,BARSLAST(X_3< 0)),0);
X_5:=LLV(LOW,BARSLAST(X_3< 0));
X_6:=HHV(HIGH,BARSLAST(X_3>0));
X_7:=IF(MACD< 0,BARSLAST(crOSS(DIFF,DEA)),0);
X_8:=REF(X_4,X_7+1);
X_9:=REF(X_5,X_7+1);
X_10:=IF(X_4< 0 AND Abs(X_4)< ABS(X_8),1,0);
X_11:=MACD< 0 AND REF(MACD,1)< 0 AND CLOSE< X_9 AND ABS(X_4)< ABS(X_8) AND ABS(MACD)< ABS(REF(MACD,1));
X_12:=IF(CROSS(DIFF,DEA),REF(X_10,1),0);
X_13:=IF(DIFF>REF(DIFF,1),REF(X_10,1),0) AND DIFF< 0 AND DEA< 0;
X_14:=BARSLAST(REF(CROSS(DIFF,DEA),1))*1;
X_15:=REF(CLOSE,X_14+1)>CLOSE AND DIFF>REF(DIFF,X_14+1) AND CROSS(DIFF,DEA)*1;
X_16:=FILTER(X_13,10);
九方小牛:X_16;





回复

举报

QQ|

GMT+8, 2024-12-27 02:52

快速回复 返回顶部 返回列表