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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信牛股翻倍强势主图指标公式源码


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

X_1:=REF(EMA((HIGH+LOW+CLOSE)/3,10),1);
X_2:=EMA(HHV(HIGH,10),3);
X_3:=EMA(LLV(LOW,10),3);
WEKR:EMA(X_1*2-X_3,10),COLORBLUE,LINETHICK9;
IF(CLOSE>=REF(WEKR,1),WEKR,DRAWNULL),COLORMAGENTA,LINETHICK9;
IF(CLOSE<=REF(WEKR,1),WEKR,DRAWNULL),COLORBLUE,LINETHICK9;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
X_4:=(CLOSE/REF(CLOSE,1)-1)*100>7;
X_5:=OPEN<WEKR AND CLOSE>WEKR AND X_4;
STICKLINE(X_5,OPEN,CLOSE,4,0),COLORYELLOW;
DRAWTEXT(X_5,LOW*0.955,'买入'),COLORRED;
STICKLINE(CLOSE>OPEN,HIGH,LOW,0.01,0),COLOR00009A;
STICKLINE(CLOSE>OPEN,HIGH,LOW,0,0),COLOR0000FA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.5,0),COLOR00006A;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.4,0),COLOR00007A;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.3,0),COLOR00008A;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.2,0),COLOR00009A;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.1,0),COLOR0000AA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.8,0),COLOR0000BA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.5,0),COLOR0000CA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.1,0),COLOR0000DA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.7,0),COLOR0000E5;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.2,0),COLOR0000EF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.7,0),COLOR0000F5;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.2,0),COLOR0000FA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.05,0),COLOR0000FC;
STICKLINE(CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10,LOW,HIGH,0,0),COLOR00AACC;
STICKLINE(CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10,LOW,HIGH,0,0),COLOR11FFFF;
STICKLINE(CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10,CLOSE,OPEN,3.5,0),COLOR0044AA;
STICKLINE(CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10,CLOSE,OPEN,3.4,0),COLOR0055AA;
STICKLINE(CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10,CLOSE,OPEN,3.3,0),COLOR0066BB;
STICKLINE(CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10,CLOSE,OPEN,3.2,0),COLOR0077BB;
STICKLINE(CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10,CLOSE,OPEN,3.1,0),COLOR0088CC;
STICKLINE(CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10,CLOSE,OPEN,2.8,0),COLOR0099CC;
STICKLINE(CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10,CLOSE,OPEN,2.5,0),COLOR00AADD;
STICKLINE(CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10,CLOSE,OPEN,2.1,0),COLOR00bbdD;
STICKLINE(CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10,CLOSE,OPEN,1.7,0),COLOR00CCEE;
STICKLINE(CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10,CLOSE,OPEN,1.2,0),COLOR00ddeE;
STICKLINE(CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10,CLOSE,OPEN,0.7,0),COLOR00EEEE;
STICKLINE(CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10,CLOSE,OPEN,0.2,0),COLOR00F0F3;
STICKLINE(CLOSE=OPEN OR (CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10,CLOSE,OPEN,0.05,0),COLOR00F6F3;
STICKLINE(CLOSE<OPEN,HIGH,LOW,0.01,0),COLORAA4433;
STICKLINE(CLOSE<OPEN,LOW,HIGH,0,0),COLORAABB33;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3.5,0),COLORAA4433;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3.4,0),COLORAA5533;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3.3,0),COLORAA6633;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3.2,0),COLORAA7733;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3.1,0),COLORAA8833;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.8,0),COLORAA9933;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.5,0),COLORAAAA33;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.1,0),COLORAABB33;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1.7,0),COLORAACC33;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1.2,0),COLORAADD33;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.7,0),COLORAAE933;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.2,0),COLORAAF333;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.05,0),COLORAAF633;
X_6:=STRCAT(2,FGBLOCK);
DRAWTEXT_FIX(1,0.05,0,0,GNBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(1,0.65,0,0,3),COLORFF6000;
DRAWTEXT_FIX(1,0.75,0,0,HYBLOCK),COLORRED;
DRAWTEXT_FIX(1,0.85,0,0,DYBLOCK),COLORBLUE;





回复

举报

QQ|

GMT+8, 2024-11-16 13:25

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