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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信东郭均线主图指标


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

以下是通达信东郭均线主图指标

通达信东郭均线主图指标

源码

{东郭均线 通达信 主图 东郭常用}
{参数 M5 2 1000 5 M10 2 1000 10 M20 2 1000 20 M30 2 1000 30
M60 2 1000 60 M120 2 1000 120 M250 2 1000 250}
STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR000033;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000066;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR000099;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000CC;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000FF;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORCC66FF;
STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR990000;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLORCC0000;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORCYAN;
STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR555555;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;
MA5:MA(CLOSE,M5);
MA10:MA(CLOSE,M10);
MA20:MA(CLOSE,M20);
MA30:MA(CLOSE,M30);
MA60:MA(CLOSE,M60);
{红绿箭头}
AA1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1);
加仓:=IF(CROSS(AA1,REF(AA1+0.01,1)) AND LLV(AA1,2)=LLV(AA1,8) AND BETWEEN(AA1,20,60),1,0);
波段底:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) -
(2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));
减仓:=(CROSS(C,MA5) OR (OMA5)) AND V>REF(V,1) AND MA5>REF(MA5,1) AND MA10>REF(MA10,1);
回头:=(MA10>MA30 AND MA(C,20)>MA30 AND MA30>REF(MA30,1)) AND MA5>MA10 AND NOT(MA5>REF(MA5,1)) AND REF(MA5>REF(MA5,1),1);
DRAWICON(加仓,L*0.97,1);
DRAWICON(CROSS(波段底,3),L*0.97,1);
DRAWICON(减仓>0 ,H*1.03,2);
DRAWICON(回头>0 ,H*1.03,2);


{VOL/120>MA(VOL,5)/120 AND CLOSE>OPEN*(1+4.8/100) AND CLOSE
{VAR1:=IF(MA(VOL,5)/120 AND CLOSE>REF(CLOSE,1)*1,8,0);
VAR2:=IF(CLOSE/REF(CLOSE,1)>=1.05 AND VOL/CAPITAL*100<10 AND CLOSE<18 AND HIGH/CLOSE<1.01 AND VAR1>0,10,0);
VAR3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR4:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;}
{FNZH:=VAR4<-50 AND VAR3>7;}
{VAR2>9 OR FNZH;}
{AR1:=IF(CLOSE AND MA(VOL,5)/120 AND CLOSE>REF(CLOSE,1)*1 AND CLOSE,88,0);}
{VAR2:=IF(CLOSE/REF(CLOSE,1)>1.05 AND VOL/CAPITAL*100<10 AND CLOSE<17 AND HIGH/CLOSE<1.01 AND VAR1>0,91,0);}
{VAR2>90;}
A:=HHV(MA((LOW+HIGH+CLOSE)/3,3),3);
B:=LLV(MA((LOW+HIGH+CLOSE)/3,3),5);
DRAWICON(CLOSE>=A,L*0.97,1);
{DRAWICON(REF(CLOSE,1)=A,L*0.96,7);}
DRAWICON(REF(CLOSE,1)>REF(A,1) AND CLOSE
DRAWICON(REF(CLOSE,1)>REF(B,1) AND CLOSE





回复

举报

QQ|

GMT+8, 2024-11-18 14:45

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