首页 > 编程语言 >通达信月周共振三角主图指标公式源码

通达信月周共振三角主图指标公式源码

时间:2024-03-10 11:44:19浏览次数:36  
标签:MA RSI KDJ RSI1 DRAWTEXT 主图 通达信 源码 DEA

{ 通达信月周共振三角主图指标公式源码 }

DRAWTEXT_FIX(1,0.4,0,0,'当主图出现共振信号后1~10个交易日内,观察副图对应的几日内,有无黄金坑,有则最佳'),COLORGRAY;
DRAWTEXT_FIX(1,0.4,0.1,0,'当随后某日,5日线上穿10日线为第一买点;k线放量上穿60均线,则视为是大涨在即,为第二买点'),COLORGRAY;
DRAWTEXT_FIX(1,0.4,0.2,0,'共振信号结合探底点、决策线洋红色三角、量王红色线上穿蓝色线,可判断底部'),COLORGRAY;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.01,0,HYBLOCK),COLOR0000FF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.07,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.13,0,GNBLOCK),COLORFF00FF;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.2,0,FGBLOCK),COLOR0080FF;
M5:=MA(C,5);
M10:=MA(C,10);
M30:=MA(C,30);
MM:=MIN(M5,M30);
MM2:=MIN(M10,M30);
HM:=MAX(M5,M30);
HM2:=MAX(M10,M30);
TC1:DRAWBAND(MM,RGB(255,0,0),MM2,0);
MA5:MA(C,5),COLORWHITE;
MA10:MA(C,10),COLORYELLOW;
MA30:MA(C,30),COLORGREEN;
MA60:MA(C,60),LINETHICK2,COLORFF00FF;{要求必须站上60日均线;经研究发现,在出现金银三角附近,
60均线呈水平一段时间(大于5日)时,容易出现超级牛股启动!此时,该60均线水平段与
回踩支撑位蓝色线呈平行或重叠状态最佳!}
MA120:MA(C,120),LINETHICK2,COLORCYAN,NODRAW;
三角:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,30) AND crOSS(MA(C,10),MA(C,30));
DRAWTEXT(三角 AND MA(C,5)<ma(c,120),ma(c,30)-0.08,'银三角'),colormagenta;
DRAWTEXT(三角 AND MA(C,30)>MA(C,120),MA(C,30)-0.08,'金三角'),COLORYELLOW;
支撑位:IF(BArslAST(三角),REF(M30,BARSLAST(三角)),DRAWNULL),LINETHICK2,COLORFF0000;
DRAWTEXT(ISLASTBAR,支撑位-0.08,'回踩支撑位'),COLOR0000FF;
DD11:=0.9;
DD22:=1.2;
{黄金柱}
M:=30;
N:=15;
AJ:=HHV(H,M)=H;
AJT:=BARSLAST(AJ);
AJ1:=LLV(L,N)=L;
AJ1T:=BARSLAST(AJ1);
TJ:=HHV(H,M)=H;
TJT:=BARSLAST(TJ);
TJ1T:=BARSLAST(AJ1);
{STICKLINE((TJT=0,H,TJ1T=0) AND AJ1 AND FILTERX(AJ1,TJT+1) ,REF(L,TJ1T)
,REF(H,TJT),0,0)COLORBLUE,LINETHICK3;}
OUT:=STICKLINE((TJT=0,H,TJ1T=0) AND AJ1 AND FILTERX(AJ1,TJT+1) ,REF(L,TJ1T)
,REF(H,TJT),0,0);
{kdj日金}
日K:="kdJ.K#DAY"(9,3,3);
日D:="KDJ.D#DAY"(9,3,3);
{macd日金}
日DIF:="MacD.DIF#DAY"(12,26,9);
日DEA:="MACD.DEA#DAY"(12,26,9);
{rsi日}
日RSI:="RSI.RSI1#DAY"(9);
{KDJ周金}
周K:="KDJ.K#WEEK"(9,3,3);
周D:="KDJ.D#WEEK"(9,3,3);
{MACD周金}
周DIF:="MACD.DIF#WEEK"(12,26,9);
周DEA:="MACD.DEA#WEEK"(12,26,9);
{RSI周}
周RSI:="RSI.RSI1#WEEK"(9);
{KDJ月金}
月K:="KDJ.K#MONTH"(9,3,3);
月D:="KDJ.D#MONTH"(9,3,3);
{MACD月金}
月DIF:="MACD.DIF#MONTH"(12,26,9);
月DEA:="MACD.DEA#MONTH"(12,26,9);
{RSI月}
月RSI:="RSI.RSI1#MONTH"(9);
X1:=日K>日D;
X2:=日DIF>日DEA;
X3:=日RSI>50;
X4:=周K>周D;
X5:=周DIF>周DEA;
X6:=周RSI>50;
X7:=月K>月D;
X8:=月DIF>月DEA;
X9:=月RSI>50;
黑马初显:=X1 AND X2 AND X3 AND X4 AND X5 AND X6 AND X7 AND X8 AND X9;
月RSI1:="RSI.RSI1#MONTH"(9);
A:=月RSI1>50;
月共振:=CROSS(A>REF(A,1),0.5);
周RSI1:="RSI.RSI1#WEEK"(9);
AAAA:=周RSI1>50;
周共振:=CROSS(AAAA>REF(AAAA,1),0.5);
周K1:="KDJ.K#WEEK"(9,3,3),COLORBLUE;
周D1:="KDJ.D#WEEK"(9,3,3),COLORBLUE;
AAAAAA:=周K1>周D1;
首周K:=CROSS(AAAAAA>REF(AAAAAA,1),0.5);
AK1:=IF(INBLOCK('创业板'),1,0);
{创业板}
流通市值:=FINANCE(40)/100000000;
AK2:=流通市值<=300 AND FINANCE(42)>10 AND C<=60;
{流通市值小于300亿,上市天数大于10天,股价低于60元}
AK:={AK1 AND }AK2;
MMM1:=月共振 AND NOT(周共振) AND AK;
MMM2:=月共振 AND 周共振 AND AK;
MMM3:=MMM1 AND 首周K;
MMM4:=MMM2 AND 首周K;
DRAWICON(MMM1,L*0.98,24);
DRAWICON(MMM2,L*0.98,25);
DRAWBMP(MMM1,H*1.2,'Q1A');
DRAWBMP(MMM2,H*1.2,'15A');
DRAWICON(MMM1,L*0.92,18);
DRAWICON(MMM2,L*0.92,42);
DRAWICON(MMM3,L*0.87,1);
DRAWICON(MMM4,L*0.87,1);

 

标签:MA,RSI,KDJ,RSI1,DRAWTEXT,主图,通达信,源码,DEA
From: https://www.cnblogs.com/zhibiao/p/18063928

相关文章

  • 通达信洞察主力主图指标公式源码
    {通达信洞察主力主图指标公式源码}DRAWGBK(CLOSE>0,RGB(150,50,175),RGB(0,25,100),0,2,0);DRAWTEXT_FIX(CURRBARSCOUNT=1,0.5,0,0,1),COLORCYAN;赚钱轨道:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORRED,LINETHICK2;X_1:=MA(CLOSE,20);DRAWBAND(赚钱轨......
  • 通达信回调选升级选股指标公式源码
    {通达信回调选升级选股指标公式源码}T:=IF(NAMELIKE('ST'),0,1)ANDIF(NAMELIKE('*'),0,1);T2:=NOT(CODELIKE('688'));T3:=NOT(CODELIKE('3'));T5:=NOT(CODELIKE('4'));T6:=NOT(CODELIKE('8'));T7:=NOT(INBLOCK('......
  • 通达信牛股强势异动指标公式源码
    {通达信牛股强势异动指标公式源码}VAR1:=MA(CLOSE,5);VAR2:=MA(CLOSE,10);VAR3:=MA(CLOSE,60);VAR4:=MA(CLOSE,120);VAR7:=EMA(HHV(HIGH,1),8);VAR8:=EMA(CLOSE,8);VAR9:=VAR8<ref(var8,1)and=""close<var8;<br="">VAR10:=IF(VAR7<ref(var7,......
  • 通达信波浪风险系数指标公式源码
    {通达信波浪风险系数指标公式源码}VAR13:=IF(YEAR>=2018ANDMONTH>=11ANDDAY>=1,0,1);AA:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;BB:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;CC:=EMA(AA,2);DD:=EMA(BB,5);VAR14:=MAX(EMA(AA,2)-EMA(BB,5),0)*1.2;VAR......
  • 通达信中波01号指标公式源码副图
    {通达信中波01号指标公式源码副图}X_1:=(MA(AMOUNT,5)/MA(vol,5)/100-MA(AMOUNT,125)/MA(VOL,125)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100);X_2:=MA((LLV(LOW,28)-CLOSE)/(HHV(HIGH,28)-LLV(LOW,28))*100,5);X_3:=IF(NAMELIKE(1),0,1)ANDIF(NAMELIKE(2),0,1);X_4:=(CLOSE-MA(......
  • 通达信买入翻倍指标公式源码副图
    {通达信买入翻倍指标公式源码副图}{指标介绍:当多空线上穿0轴以后并且沿着45度向上运行时可视为有效突破,此时的信号可视为有效信号。信号出现在平台盘整期间,或者是小多头回调之后向上拉升之际,此时的信号最为有效,其它时间的信号要仔细辨别,下跌趋势中信号或者是高位钝化中的信号......
  • 通达信九转主图指标公式源码主图
    {通达信九转主图指标公式源码主图}买线:=EMA(C,1);卖线:=EMA(SLOPE(C,10)*10+C,20);STICKLINE(买线>=卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR442233;STICKLINE(买线<卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR224056;DRAWKL......
  • 通达信平台支撑线主图指标公式源码
    {通达信平台支撑线主图指标公式源码}N日平台:=20;所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT('【行业】',HYBLOCK),STRCAT('【概念】',GNBLOCK)),STRCAT('【地区】',DYBLOCK)));DRAWTEXT_FIX(ISLASTBAR,0.00,0.0,0,所属板块),COLORBLUE;MA5:MA(CLOSE,5),COLORD......
  • 通达信突破追涨副图指标公式
    {通达信突破追涨副图指标公式}T1:=BARSLAST(EMA(CLOSE,5)<ref(ema(close,5),1))=1;<br="">C1:=MAX(C,O);GAO1:=MAX(REF(C1,1),REF(C1,2));GAO2:=MAX(GAO1,REF(C1,3));GAO3:=MAX(GAO2,REF(C1,4));GAO4:=MAX(GAO3,REF(C1,5));GAO5:=MAX(GAO4,REF(C1,6));GAO6......
  • 通达信三线合一主图,抓住老鼠仓源码
    {通达信三线合一主图,抓住老鼠仓源码}源码参数数量:2参数1:N,最小:0,最大:1000,缺省:6参数2:M,最小:0,最大:1000,缺省:3公式类型:技术指标公式-其他类型画线方法:主图叠加公式版本:0显示小数:缺省位数坐标线位置:自动额外Y轴分界:无参......