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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[飞狐] 牛气冲天合在成交量上


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

以下是牛气冲天合在成交量上

画面起点:=SYSPARAM(2);
画面终点:=SYSPARAM(3);
画面K线数:=画面终点-画面起点+1;
最高:=HHV(VOL,画面K线数);
视高:最高[画面终点],LINETHICK1,LINEDOT,Color006600;
0.5*视高,Color006600,LINETHICK1,LINEDOT;

{空跌}
var910:=100*(c-cost(10))/cost(10);
空跌幅度:if(var910<0,var910,0),coloryellow,linethick0;
空跌:=视高+空跌幅度*视高/20,linethick0,COLOR008800;
FILLRGN(空跌<视高,if(空跌<视高*0.6,视高*0.6,空跌),视高*0.999),COLOR005000;

VAR2:=0.0001*AMOUNT,;
MA1:=0.0001*MA(AMOUNT,5);
M2:=0.0001*MA(AMOUNT,10);
地量:LLV(VAR2,100)=VAR2,STICK,COLORRED,LINETHICK0;
DRAWTEXT(地量,0.45*视高,'地量'),COLOR00CCDD;

虚量:=IF(BARSTATUS=2,VOL/INDEXV*MA(INDEXV,2),VOL);
STICKLINE(ISLASTBAR,0,IF(虚量>视高,视高,虚量),8,1),COLORYELLOW;
STICKLINE(C>REF(C,1),0,VOL,8,0),Color0000AA;
STICKLINE(C>REF(C,1),0,VOL,6,0),Color0000CC;
STICKLINE(C>REF(C,1),0,VOL,3,0),Color0000DD;
STICKLINE(C>REF(C,1),0,VOL,1,0),Color0000FF;
STICKLINE(C<=REF(C,1),0,VOL,8,0),COLORFF6600;
STICKLINE(C<=REF(C,1),0,VOL,6,0),COLORFF7700;
STICKLINE(C<=REF(C,1),0,VOL,3,0),COLORFF9900;
STICKLINE(C<=REF(C,1),0,VOL,1,0),COLORFFBB00;
0,Color00AA00,LINETHICK1;

{牛气冲天}
VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89);
VAR1E:=EMA(VAR1D,30);
VAR1F:=2*(VAR1D-VAR1E)*10;
VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2);
VAR21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR22:=EMA(VAR21*0.97,3);
VAR23:=(HIGH+LOW+CLOSE)/3;
VAR24:=(VAR23-MA(VAR23,14))/(0.015*AVEDEV(VAR23,14));
VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR27:=EMA(VAR26,100);
VAR28:=2*(VAR26-VAR27);
VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);
VAR2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR2B:=EMA(VAR2A*0.97,3);
VAR2C:=(HIGH+LOW+CLOSE)/3;
VAR2D:=(VAR2C-MA(VAR2C,14))/(0.015*AVEDEV(VAR2C,14));
主力资金:IF(YEAR<2020ANDVAR28>0.1,VAR29,0)*5,COLORFF55FF,LINETHICK0;
主资增:(主力资金-REF(主力资金,1)),COLORFF55FF,LINETHICK0;
拉升资金:IF(YEAR<2020ANDVAR1F>0.015,VAR20,0)/45,COLOR00DDEE,LINETHICK0;
拉资增:(拉升资金-REF(拉升资金,1)),COLOR00DDEE,LINETHICK0;
最高资:=HHV(IF(拉升资金>主力资金,拉升资金,主力资金),画面K线数);
视高资:=最高资[画面终点];
PARTLINE(C,主力资金*视高/视高资),COLORFF55FF,LINETHICK2;
PARTLINE(C,拉升资金*视高/视高资),COLOR00CCDD,LINETHICK2;
STICKLINE(主力资金>0,-视高*0.13,-视高*0.04,8,0),COLORFF00FF;
STICKLINE(主力资金>0,-视高*0.1,-视高*0.04,1,0),COLORFFAAFF;
STICKLINE(拉升资金>0,-视高*0.13,-视高*0.04,8,0),COLOR00DDEE;
STICKLINE(拉升资金>0,-视高*0.1,-视高*0.04,1,0),COLORFFFFFF; 






回复

举报

QQ|

GMT+8, 2024-11-15 18:57

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