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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信主力操盘主图指标公式源码


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

X_1:=REF(EMA((H+L+C)/3,9),1);
X_2:=EMA(HHV(HIGH,9),3);
X_3:=EMA(LLV(LOW,9),3);
主力操盘线:EMA(X_1*2-X_3,5),COLORMAGENTA,LINETHICK2;
NOTEXT11:IF(CLOSE<主力操盘线,主力操盘线,DRAWNULL),COLORLIGREEN,LINETHICK2;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
X_5:=(REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*100>=10;
STICKLINE(X_5,CLOSE,OPEN,2,0),COLORGREEN;
X_6:=DMA(CLOSE,vol/CAPITAL);
X_7:=(CLOSE/REF(CLOSE,1)-1)*100>7;
X_8:=(CLOSE/REF(CLOSE,1)-1)*100<=(-3);
X_9:=OPEN<主力操盘线 AND CLOSE>主力操盘线 AND X_7;
STICKLINE(X_9,OPEN,CLOSE,3,0),COLORYELLOW;
DRAWTEXT(X_9,LOW*0.95,'↑主力进')COLORYELLOW;
CPR:=CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10;
STICKLINE(CPR,CLOSE,OPEN,1.7,0),COLOR00CCEE;
STICKLINE(CPR,LOW,HIGH,0,0),COLOR00AACC;
CPR1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>=6.98;
STICKLINE(CPR1,CLOSE,CLOSE*1,1.7,0),COLOR00DDDD;
STICKLINE(CPR1,CLOSE,CLOSE*1,0,0),COLOR00AACC;
CPR2:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>4.99;
STICKLINE(CPR2,OPEN,OPEN*1,1.7,0),COLOR00DDDD;
STICKLINE(CPR2,OPEN,OPEN*1,0,0),COLOR00AACC;
DRAWTEXT_FIX(1,0.01,0.17,0,GNBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(1,0.01,0.01,0,HYBLOCK),COLORRED;
DRAWTEXT_FIX(1,0.01,0.08,0,DYBLOCK),COLORYELLOW;





回复

举报

QQ|

GMT+8, 2024-11-16 16:31

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