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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 宝华均线主图源码


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

宝华均线主图源码

A11:=REF(C,10)=HHV(C,2*10+1);
B1:=FILTER(A11,10);
C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
A22:=REF(C,10)=LLV(C,2*10+1);
B2:=FILTER(A22,10);
C2:=BACKSET(B2,10+1);
LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD));
B:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD);
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波峰:IF(T1,A,A),POINTDOT,COLORYELLOW;
STICKLINE(T1,A,A,4,0),COLORYELLOW;
波谷:IF(T2,B,B),POINTDOT,COLORFFC8FF;
STICKLINE(T2,B,B,4,0),COLORFFC8FF;
工作线14:EMA(C,14);
二号线25:EMA(C,25),COLORRED;
分水岭55:EMA(C,55),COLOR00FF00;
九号线99:EMA(CLOSE,99),LINETHICK2,COLOR008FFF;
M120:MA(C,120),COLORWHITE,LINETHICK2;
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
DEA:=EMA(DIFF,9);
MACD:=0.90*(DIFF-DEA);
TJ:=(DIFF>=DEA);
TJ1:=(DIFF>=0);
STICKLINE(TJ,H,L,0.5,0),COLORYELLOW;
STICKLINE(TJ,O,C,4,0),COLORYELLOW;
STICKLINE(TJ1 AND TJ AND C>O,H,L,0.5,0),COLORF00FF0;
STICKLINE(TJ1 AND TJ AND C>O,O,C,4,0),COLORF00FF0;
STICKLINE(TJ1 AND TJ AND C<O,H,L,0.5,0),COLORFF9933;
STICKLINE(TJ1 AND TJ AND C<O,O,C,4,0),COLORFF9933;
STICKLINE(DIFF<DEA,H,L,0.5,0),COLORGREEN;
STICKLINE(DIFF<DEA,O,C,4,0),COLORGREEN;
VAR1:=(CLOSE*2+HIGH+LOW)/4;
SK:= EMA(VAR1,13)-EMA(VAR1,73);
SD:= EMA(SK,2);
DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'短线'),COLORRED;
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0.5,0),COLORRED;
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,10,1),LINETHICK3,COLORRED;
VAR4:=(LOW+HIGH+CLOSE+OPEN)/4;
CB:=MA(VAR4,5);
A2:=HHV(CB,60);
B11:=LLV(CB,20);
DRAWTEXT(FILTER((A2>REF(A2,1) AND B11>REF(B11,1)),5),H+0.1,'卖'),COLOR00FF00;






gd26986

回复

举报

QQ|

GMT+8, 2024-11-16 23:39

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