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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[同花顺] 同花顺多空K线趋势副图指标 源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-29 17:44:36
同花顺多空K线趋势副图指标 源码介绍

同花顺多空K线趋势副图指标 源码

多空k线趋势指标公式
本指标来源于网络,收藏测试用。

强势线:80,DOTLINE,colorlicyan;
分水岭:50,DOTLINE,colorlicyan;
弱势线:20,DOTLINE,colorlicyan;
RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
a=SMA(RSV,3,1);
b=SMA(a,3,1);
e=3*a-2*b;
IF(a<0) a=0;
IF(a>100) a=100;
IF(b<0) b=0;
IF(b>100) b=100;
K:a,nodraw;
D:b,nodraw;
STICKLINE(K>=D,k,D,8,0), colormagenta;
STICKLINE(K<D,k,d,8,0), colorgreen;
DRAWICON(CROSS(K,D),d,1);
DRAWICON(CROSS(d,k),d,2);
VAR1:=REF(LOW,1);
VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,38);
VAR5:=HHV(VAR3,38);
VAR6:=IF(LLV(LOW,90),1,0);
VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR9:=SMA(VAR8,13,8);
主力吸货:VAR7,colorred,nodraw;
STICKLINE(主力吸货,50,80,3,0), colorred;
Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
Var2:=LLV(LOW,34);
Var3:=HHV(HIGH,34);
SK: EMA((Var1-Var2)/(Var3-Var2)*100,13),coloryellow;
SD: EMA(SK,3),colorliblue;
DRAWTEXT(CROSS(Sd,Sk) AND sk>80,90,"大顶"),coloryellow;
jl:=MA(C,13)-MA(C,60);
FILLRGN(20,25, MA(C,13)>MA(C,120) AND MA(C,60)>=MA(C,120) AND C>MA(C,13) AND jl>=REF(jl,1),colorred);
FILLRGN(20,25, MA(C,13)>MA(C,120) AND MA(C,60)<=MA(C,120) AND C>MA(C,13) AND jl>=REF(jl,1),colorlired);
FILLRGN(20,22, MA(C,13)>MA(C,60) AND MA(C,60)>MA(C,120) AND MA(C,120)>=MA(C,250) AND C>MA(C,13) AND jl>=REF(jl,1),coloryellow);
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),colormagenta;






gd46202

回复

举报

QQ|

GMT+8, 2024-11-18 02:38

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