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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信决策之王主图指标公式


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

以下是通达信决策之王主图指标公式

MA5:MA(C,5),LINETHICK1;MA10:MA(C,10),LINETHICK2;MA20:MA(C,20),LINETHICK1;MA60:MA(C,60),LINETHICK2;
{A点:MA60*1.03,LINETHICK0;B点:MA60*0.97,LINETHICK0;C点:MA20*1.04,LINETHICK0;D点:MA20*0.96,LINETHICK0;}
XX:=(HHV(C,10)-LLV(C,10))*0.999;
V1:=IF((C>(LLV(C,10)+XX) OR C>LLV(C,10)*1.1) AND C=HHV(C,5) AND C>REF(C,1),1,0);
{比10日低点高一定幅度,是五日高点}
V2:=IF((C<(HHV(C,10)-XX) OR C<HHV(C,10)*0.9) AND C=LLV(C,5) AND C<REF(C,1),1,0);
V3:=IF(V1=1,1,IF(V2=1,0,2));
MR:=V3=1 AND REF(V3,1)!=1;
MC:=V3=0 AND REF(V3,1)!=0;
V4:=IF(BARSLAST(MR)>BARSLAST(MC),0,1);

STICKLINE(V4=1 ,CLOSE,OPEN,2,0)COLORRED;
STICKLINE(V4=1 AND REF(V4,1)=1 AND C<HHV(C,10)*0.97 AND C>HHV(C,10)*0.93
AND C<LLV(C,10)*1.15,CLOSE,OPEN,2,0)COLORYELLOW;{黄色回调买入提示}
STICKLINE(V4=0 ,CLOSE,OPEN,2,0)COLORGREEN;

DRAWICON(V4=1 AND REF(V4,1)=0 ,L*0.99,1);
DRAWICON(V4=0 AND REF(V4,1)=1 ,H*1.01,2);


{=1持股,=0持币?}
{STICKLINE((V4 = 0) AND CLOSE >= OPEN,CLOSE,OPEN,8,1),COLORF0F000;
STICKLINE((V4 = 0) AND CLOSE >= OPEN,CLOSE,HIGH,0.001,0),COLORF0F000;
STICKLINE((V4 = 0) AND CLOSE >= OPEN,LOW,OPEN,0.001,0),COLORF0F000;
STICKLINE((V4 = 0) AND CLOSE < OPEN,CLOSE,OPEN,8,0),COLORF0F000;
STICKLINE((V4 = 0) AND CLOSE < OPEN,CLOSE,LOW,0.001,0),COLORF0F000;
STICKLINE((V4 = 0) AND CLOSE < OPEN,HIGH,OPEN,0.001,0),COLORF0F000;
STICKLINE((V4 = 1) AND CLOSE >= OPEN,CLOSE,OPEN,8,1),COLOR0000FF;
STICKLINE((V4 = 1) AND CLOSE >= OPEN,CLOSE,HIGH,0.001,1),COLOR0000FF;
STICKLINE((V4 = 1) AND CLOSE >= OPEN,LOW,OPEN,0.001,1),COLOR0000FF;
STICKLINE((V4 = 1) AND CLOSE < OPEN,CLOSE,OPEN,7,1),LINETHICK3,COLOR0000FF;
STICKLINE((V4 = 1) AND CLOSE < OPEN,CLOSE,OPEN,7,0),COLORF0F000;
STICKLINE((V4 = 1) AND CLOSE < OPEN,HIGH,OPEN,0.001,0),COLOR0000FF;
STICKLINE((V4 = 1) AND CLOSE < OPEN,CLOSE,LOW,0.001,0),COLOR0000FF;





回复

举报

QQ|

GMT+8, 2024-11-17 21:16

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