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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信量化日内分时T+0主图指标公式源码


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

VAR1:=EMA(EMA(CLOSE,13),13);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
{STICKLINE(控盘<0,控盘,0,1,1),COLOR00FF00;
STICKLINE(控盘>REF(控盘,1) AND 控盘<0,控盘,0,1,1),COLORFF00FF;}
无庄控盘:=控盘<0;
{STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLOR0000FF;}
有庄控盘:=控盘>REF(控盘,1) AND 控盘>0;
VAR2:=100*WINNER(CLOSE*0.95);
{STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLORFFFF00;}
主力出货:=控盘<REF(控盘,1) AND 控盘>0;
{STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,1),COLOR00FFFF;}
高度控盘:= VAR2>50 AND COST(85)<CLOSE AND 控盘>0,COLOR00FFFF,LINETHICK2;
A10:=crOSS(控盘,0);
控盘B:=FILTER(IF(A10,1,0),5);
{分时价格原码}
JJ:=SUM(AMOUNT,0)/SUM(vol,0)/100;
{波段买卖原码}
P:=55;S:=8;M1:=3;
财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;
神:=EMA(财,M1),COLORGREEN,LINETHICK1;
{财1:=SUM(AMOUNT,5)/SUM(VOL,5)/100;
神1:=SUM(AMOUNT,13)/SUM(VOL,13)/100;
DRAWBAND(财1,RGB(110,0,0),神1,RGB(0,83,22));}
{股价与均线偏离买卖条件}
BTJ1:=(C-JJ)/JJ<-0.005;
BTJ11:=(C-JJ)/JJ<-0.03;
BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005;
STJ1:=(C-JJ)/JJ>0.005;
{控盘买卖条件}
STJ01:=控盘<REF(控盘,1) AND 控盘>0.5;
STJ02:=控盘>0;
BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;
BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;
{波段买卖条件}
BTJ3:=CROSS(财,神) AND 财<-0.3;
BTJ32:=CROSS(财,神) AND 财<-0.1;
STJ31:=CROSS(神,财);
STJ32:=CROSS(神,财) AND 财>1.618;
{以下为信号};
BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);
BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);
BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);
{DRAWICON(BTJ82,C*0.997,23);}{追买};
DRAWICON(BTJ81 AND TIME>10,C*0.997,27);{买底};
DRAWICON(BTJ811 AND TIME>10,C*0.997,26);{必买};
DRAWTEXT(BTJ81,C*0.994,'正T'),COLORRED;
DRAWTEXT(BTJ811,C*0.994,'正T'),COLORWHITE;
STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);
DRAWICON(STJ81,C*1.003,19);
DRAWTEXT(STJ81,C*1.006,'反T'),COLOR00FF00;
STJ82:=FILTER(STJ02 AND STJ32 ,13);
{DRAWICON(STJ82,C*1.003,15);
DRAWTEXT(STJ82,C*1.006,'反T'),COLOR00FF00;}
STJ83:=STJ81 AND STJ82;
DRAWTEXT(STJ83,C*1.006,'反T'),COLOR00FF00;
{MA(C,66),LINETHICK3,COLORLIBLUE;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);};





回复

举报

QQ|

GMT+8, 2024-11-16 12:06

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