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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信牛熊线大黑马副图指标


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

以下是通达信牛熊线大黑马副图指标

通达信牛熊线大黑马副图指标

源码

{庄家吸筹}
MA15:=EMA(CLOSE,21);
VAR11:=IF(YEAR>=2038 AND MONTH>=1,0,1);
VAR21:=REF(LOW,1)*VAR11;
VAR31:=SMA(ABS(LOW-VAR21),3,1)/SMA(MAX(LOW-VAR21,0),3,1)*100*VAR11;
VAR41:=EMA(IF(CLOSE*1.3,VAR31*10,VAR31/10),3)*VAR11;
VAR51:=LLV(LOW,30)*VAR11;
VAR61:=HHV(VAR41,30)*VAR11;
VAR71:=IF(MA(CLOSE,58),1,0)*VAR11;
VAR81:=EMA(IF(LOW<=VAR51,(VAR41+VAR61*2)/2,0),3)/618*VAR71*VAR11;
主力吸筹22:IF(VAR81>100,100,VAR81)*VAR11,COLORFF00FF;
庄家吸筹22:STICKLINE(主力吸筹22>-150,0,主力吸筹22,1,0),COLORFF00FF;

A1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,2)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,2);
牛线:EMA(A1,5),LINETHICK1,COLORYELLOW;
熊线:100-EMA(A1,5),LINETHICK1,COLOR00FF00;
A2:=(牛线-REF(牛线,1))/REF(牛线,1)*100;
A3:=EMA(C,5);
A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
猴线:(EMA(4*SMA(A4,6,1)-3*SMA(SMA(A4,5,1),5,1),2)),LINETHICK1,COLORRED;

庄家吸筹1:STICKLINE(猴线>100,100,猴线,1,0),COLORGREEN;
庄家吸筹2:STICKLINE(猴线<0,0,猴线,1,0),COLORGREEN;
A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;
DRAWTEXT(FILTER(REF(牛线,1)>90 AND A2<0,7),牛线,'跑'),COLOR00FF00;
DRAWTEXT(CROSS(猴线,牛线)AND 牛线>20 AND 牛线<A5,牛线,'黑马');
DRAWTEXT(CROSS(猴线,0)AND 牛线<40,5,'大黑马');
底部:(A2<-10 AND A2>REF(A2,1))*25,COLORRED;
机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),LINETHICK2,COLORE66878;
大势已去:IF(CROSS(牛线,A1)AND 牛线>70 AND 猴线>80,90,100),LINETHICK2,COLORE66878;
DRAWTEXT(CROSS(猴线,牛线)AND 牛线>20 AND 牛线<A5 AND 底部,牛线,'骑马找牛');
A:=CROSS(猴线,牛线) AND CROSS(猴线,熊线);
B:=CROSS(猴线,牛线) AND CROSS(牛线,熊线);
DRAWTEXT(A AND B,牛线,'骑马找牛');
50,LINETHICK3,COLORE66878,POINTDOT;
牛市开始:=CROSS(牛线,熊线);
DRAWTEXT(牛市开始,熊线,'牛市');
马市开始:=CROSS(猴线,熊线);
DRAWTEXT(马市开始,熊线,'马市');
猴市开始:=CROSS(猴线,牛线);
DRAWTEXT(猴市开始,牛线,'猴市');
DRAWTEXT(ISLASTBAR,牛线,' 牛线'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,熊线,' 熊线'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,猴线,' 猴线'),COLORYELLOW;
-6,,LINETHICK0;





回复

举报

QQ|

GMT+8, 2024-11-19 18:25

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