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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[飞狐] 经过修改后的黄金主图


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

以下是经过修改后的黄金主图

DRAWTEXT((SYSPARAM(2)=BARPOS),CLOSE,('版块:'+BLKNAME)),ALIGN4;
DRAWTEXTEX(c,1,10,50,'收益:'+NUMTOSTR(FINANCE(33),2)+'元'),ColorFFB060;
DRAWTEXTEX(c,1,200,50,'净资产:'+NUMTOSTR(FINANCE(34),2)+'元'),ColorFFB060;
DRAWTEXTEX(c,1,10,100,'流通股:'+NUMTOSTR(FINANCE(7)/10000,2)+'亿'),ColorFFB060;
DRAWTEXTEX(c,1,200,100,'占总股本:'+NUMTOSTR(FINANCE(7)/FINANCE(1)*100,2)+'%'),ColorFFB060;

{均线系统}
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA60:MA(CLOSE,60);

{通用条件}
LASTK:=(REFX(ISLASTBAR,2)=0);
上涨:=CLOSE>REF(CLOSE,1);
未跌破:=REFX(CLOSE,1)>LOWANDREFX(CLOSE,2)>LOWANDREFX(CLOSE,3)>LOW;
缩量:=VOL>0.35*(REFX(VOL,1)+REFX(VOL,2)+REFX(VOL,3))ANDVOL>REFX(VOL,1);{1.05/3,5%}
逐级缩量:=VOL>REFX(VOL,1)ANDREFX(VOL,1)>REFX(VOL,2)ANDREFX(VOL,2)>REFX(VOL,3);
逐级价升:=CLOSE<REFX(CLOSE,1)ANDREFX(CLOSE,1)<REFX(CLOSE,2)ANDREFX(CLOSE,2)<REFX(CLOSE,3);
{倍量柱}
倍量柱:VOL>=(REF(VOL,1)+REF(VOL,1))*0.9,LINETHICK0,COLORWHITE;
{高量柱}
高量柱:VOL>0.3*(REF(SUM(VOL,3),1)+REFX(SUM(VOL,3),3))ANDVOL>REF(VOL,1)ANDVOL>REFX(VOL,1),LINETHICK0,COLORWHITE;{1.8/6,1.8倍}
{平量柱}
平量柱:VOL>REFX(VOL,1)*0.97ANDVOL<REFX(VOL,1)*1.03ANDVOL>=2*REF(VOL,1),LINETHICK0,COLORWHITE;
{梯量柱}
梯量柱:VOL>REF(VOL,1)ANDREF(VOL,1)>REF(VOL,2)ANDCLOSE>REF(CLOSE,1)ANDREF(CLOSE,1)>REF(CLOSE,2),LINETHICK0,COLORWHITE;{虽然是梯量柱,但也不能太小}
{将军柱}
将军柱:LASTKAND上涨AND未跌破AND(倍量柱OR高量柱OR平量柱OR梯量柱),LINETHICK0,COLORYELLOW;
{黄金柱}
黄金柱:将军柱AND缩量,LINETHICK0,COLORYELLOW;
{标准黄金柱}
标准黄金柱:黄金柱AND逐级缩量AND逐级价升,LINETHICK0,COLORRED;

{输出}
DRAWICON(黄金柱AND标准黄金柱=0ANDBARSLAST(REF(黄金柱,1))>1,LOW,8),COLORRED;
DRAWICON(标准黄金柱,LOW,4),COLORRED;
DRAWICON(将军柱ANDBARSLAST(REF(将军柱,1))>1ANDBARSLAST(黄金柱)>1,LOW,10),COLORRED;

MA135:=MA(VOL,135);
TJ1:=(VOL=HHV(VOL,10)ANDVOL>1.7*REF(VOL,1)ANDC>=REF(C,1)ANDC>=OANDVOL<=MA135*3.5);

LJL:=FILTER(TJ1,3);

TJ3:=IF(BARSLAST(LJL)=1ANDCLOSE>REF(LOW,3),1,0);

ST:=TJ3=1;

CL:=FILTER(ST,3);

STICKLINE(C,REF(L,BARSLAST(CL)),REF(L,BARSLAST(CL)),5,0),COLORYELLOW;

STICKLINE(CLOSE,REF(L,BARSLAST(LJL)),REF(L,BARSLAST(LJL)),5,0),COLORCYAN;

STICKLINE(LJL,OPEN,CLOSE,6,0),COLORYELLOW;

DRAWTEXT(LJL,L*0.99,'支撑'),COLORF00FF0;
GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2ANDBARSLAST(CROSS(GJTJ1,50))<2;
BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2ANDGJTJ1>GJTJ4;
BAIJIN3:=GJTJ1>60ANDGJTJ4>70;
DRAWTEXT(BAIJIN1ANDBAIJIN2ANDBAIJIN3,L-0.02,'白金');

HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3ANDBARSLAST(CROSS(GJTJ1,50))<3;
HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2ANDGJTJ1>GJTJ4;
DRAWTEXT(HUANGJIN1ANDHUANGJIN2,L-0.03,'黄金');

XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5ANDGJTJ1>GJTJ4;
DRAWTEXT(COUNT(XG,3)=1ANDXGANDC>MA(C,20),L-0.02,'暴涨启动'),COLORRED;

ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;
ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2));
ZHENCANG3:=GJTJ3<GJTJ4ANDGJTJ2<GJTJ4;
ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;
ZHENCANG5:=GJTJ2<GJTJ3ANDGJTJ1=100;
ZCB1:=ZHENCANG1>0ANDREF(ZHENCANG1,1)=0ANDREF(ZHENCANG1,2)>0;
DRAWTEXT(ZHENCANG1ANDZHENCANG2ANDZHENCANG3ANDZHENCANG4ANDZHENCANG5,L-0.05,'震仓启点');

AA:=BARSLAST(CROSS(97,GJTJ1))<=1ANDBARSLAST(CROSS(GJTJ1,85))<=1;
BB:=BARSLAST(CROSS(97,GJTJ2))<=1ANDBARSLAST(CROSS(GJTJ2,85))<=1;
AA1:=AAANDBB;
AAA:=BARSLAST(CROSS(97,GJTJ1))<=2ANDBARSLAST(CROSS(GJTJ1,85))<=1;
BAA:=BARSLAST(CROSS(97,GJTJ2))<=2ANDBARSLAST(CROSS(GJTJ2,85))<=1;
AA2:=AAANDBB;
AAAA:=BARSLAST(CROSS(97,GJTJ1))<=3ANDBARSLAST(CROSS(GJTJ1,85))<=1;
BAAA:=BARSLAST(CROSS(97,GJTJ2))<=3ANDBARSLAST(CROSS(GJTJ2,85))<=1;
AA3:=AAAAANDBAAA;
BB1:=REF(AA1,1);
BB2:=REF(AA2,1);
BB3:=REF(AA3,1);
DD1:=GJTJ1=100ANDGJTJ2=100ANDAA1;
DD2:=GJTJ1=100ANDGJTJ2=100ANDAA2;
DD3:=GJTJ1=100ANDGJTJ2=100ANDAA3;
DRAWTEXT(DD1ORDD2ORDD3,L-0.02,'短线追涨');

AW:=BARSLAST(CROSS(95,GJTJ1))<=2;
BW:=BARSLAST(CROSS(95,GJTJ2))<=2;
EW:=GJTJ4<GJTJ1ANDGJTJ1<GJTJ3;
FW:=GJTJ2>50ANDGJTJ3>50;
GW:=GJTJ1=100ANDGJTJ2=100;
TXW:=COUNT(GW,2)=1;
DRAWTEXT(AWANDBWANDEWANDFWANDTXW,L-0.03,'起涨首日');

AQ:=GJTJ3=100;
BQ:=GJTJ4<90;
DRAWTEXT(COUNT(AQ,2)=2ANDBQ,L-0.02,'波启前兆');
AA1:=AMOUNT/V;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=V<MA(V,5)*1.5;
老鼠仓:=BB1ANDCC1ANDDD1ANDEE1,LINETHICK0;
DRAWTEXT(老鼠仓,(LOW*0.99),'老鼠仓'),COLOR40CCFF;






回复

举报

QQ|

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

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