首页 > 编程语言 >通达信波段低位主图指标公式源码

通达信波段低位主图指标公式源码

时间:2024-03-09 15:22:22浏览次数:29  
标签:MA DIF 主图 20 60 通达信 源码 CLOSE REF

{ 通达信波段低位主图指标公式源码 }

MA3:MA(C,3),COLORRED,LINETHICK3;
MA5:MA(C,5),COLORWHITE;
MA10:MA(C,10),COLORGREEN;
MA20:MA(C,20),COLORYELLOW,LINETHICK3;
NOTEXT1:IF(SAR.sar>=H,SAR.SAR,DRAWNULL),CIRCLEDOT,COLORGREEN;
NOTEXT2:IF(SAR.SAR<=L,SAR.SAR,DRAWNULL),CIRCLEDOT,COLORRED;
DIF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIF,9);
macd:=2*(DIF-DEA);
UB:=REF(MA(C,20)+2*SQRT(MA(POW((C-MA(C,20)),2),20)),1);
ZP:=topRANGE(MacD);
BP:=TOPRANGE(DIF);
JP:=TOPRANGE(C);
突破:=MACD>REF(MACD,1) AND (ZP-REF(ZP,1)>100 OR BP-REF(BP,1)>100 OR JP-REF(JP,1)>100)
AND (HOD(DIF,10)=1 OR (crOSS(DIF,DEA) AND HOD(DIF,10)<=2 AND JP>100))
AND (EXIST(CROSS(DIF,DEA) OR CROSS(DIF,0),3) OR (REF(EVERY(BP<20,5),1) AND BP>100))
AND DIF>-0.01 AND (C>EMA(C,250) OR C>UB) AND C/REF(C,1)>1.08 AND C/HHV(C,120)>0.9;
CG:=MA(C,10);
FL:=HHV(CG,5);
FS:=CG-(FL-CG);
MA60:=MA(CLOSE,60);
{CG:=MA(C,10);
FL:=HHV(CG,5);
FS:=CG-(FL-CG);
MA60:=MA(CLOSE,60);}
常:=-110*(HHV(HIGH,600)-CLOSE)/(HHV(HIGH,600)-LLV(LOW,600))+110,COLOR00FF00,LINETHICK2;
XG:=C > REF(C,1) AND MA(C,5) > MA(C,10) AND MA(C,20) > MA(C,60) AND REF(MA(C,20),1) > REF(MA(C,60),1) AND MA(C,60) > REF(MA(C,60),1) AND FL > MA(C,60) AND FS > MA(C,60) AND FL=FS AND REF(FL,1) > REF(FS,1) AND C/REF(C,1)>1.080 AND (HOD(MACD.MACD,20)<=2 OR HOD(MACD.DIF,20)<=2) ;
DRAWTEXT(XG,L*0.98,'↑强'),COLORYELLOW;
XG2:=C > REF(C,1) AND MA(C,5) > MA(C,10) AND MA(C,20) > MA(C,60) AND REF(MA(C,20),1) > REF(MA(C,60),1) AND MA(C,60) > REF(MA(C,60),1) AND FL > MA(C,60) AND FS > MA(C,60) AND FL=FS AND REF(FL,1) > REF(FS,1) AND C/REF(C,1)>1.080 AND (HOD(MACD.MACD,20)<=2 OR HOD(MACD.DIF,20)<=2) AND 常<25;
DRAWTEXT(XG2,L*1.02,'△wr强')COLORYELLOW;
{DIF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
UB:=REF(MA(C,20)+2*SQRT(MA(POW((C-MA(C,20)),2),20)),1);
ZP:=TOPRANGE(MACD);
BP:=TOPRANGE(DIF);
JP:=TOPRANGE(C);}
突破1:=MACD>REF(MACD,1) AND (ZP-REF(ZP,1)>100 OR BP-REF(BP,1)>100 OR JP-REF(JP,1)>100)
AND (HOD(DIF,10)=1 OR (CROSS(DIF,DEA) AND HOD(DIF,10)<=2 AND JP>100))
AND (EXIST(CROSS(DIF,DEA) OR CROSS(DIF,0),3) OR (REF(EVERY(BP<20,5),1) AND BP>100))
AND DIF>-0.01 AND (C>EMA(C,250) OR C>UB) AND C/REF(C,1)>1.08 AND C/HHV(C,120)>0.9;
DRAWTEXT(突破1,L*0.96,'↙突破1'),COLORFF00FF;
突破2:=MACD>REF(MACD,1) AND (ZP-REF(ZP,1)>100 OR BP-REF(BP,1)>100 OR JP-REF(JP,1)>100)
AND (HOD(DIF,10)=1 OR (CROSS(DIF,DEA) AND HOD(DIF,10)<=2 AND JP>100))
AND (EXIST(CROSS(DIF,DEA) OR CROSS(DIF,0),4) OR (REF(EVERY(BP<20,5),1) AND BP>100))
AND (C>EMA(C,250) OR C>UB) AND C/REF(C,1)>1.08 AND C/HHV(C,120)>0.9 AND L<h
AND REF(EXIST(H/REF(C,1)>1.09,2),1) AND C/EMA(C,250)<1.7 AND FINANCE(46)/100000000<15;
DRAWTEXT(突破2,L*0.94,'▲突破2'),COLORCYAN;
常WR:=突破1 AND 常<25;
DRAWTEXT(常WR,L*1.01,'●WR突破'),COLORFF00FF;
{黄绿信号}
VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARD:=CLOSE<ref(close,1) and="" close<ref(close,2);<br=""> VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR
VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;
STICKLINE(VAR19,L,L*0.997,2,0),COLORYELLOW;
VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR
VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;
STICKLINE(VAR1A,H*1.003,H,2,0),COLOR00FF00{98FD};
X1:=(LOW+HIGH+CLOSE*2)/4;
上:=EMA(X1,14)*1.1382;
涨停:=C/REF(C,1)>1.098 AND H=C;
涨幅:=(C/REF(C,1)-1)*100;
三日涨幅:=IF(REF(C>REF(C,1),2),SUM(涨幅,3)>=20,COUNT(涨停,2)=2);
二板:=CROSS(C,上) AND REF(涨停,1) AND 三日涨幅 AND BARSCOUNT(C)>13;
DRAWTEXT(二板,H*1.02,'★二板'),COLORFF00FF;

 

标签:MA,DIF,主图,20,60,通达信,源码,CLOSE,REF
From: https://www.cnblogs.com/zhibiao/p/18062752

相关文章

  • 通达信山谷淘金指标公式源码副图
    {通达信山谷淘金指标公式源码副图}DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,'',0),LINETHICK2;DRAWTEXT_FIX(1,0,0.1,0,'山谷淘金'),COLOR00FFFF;VAR1:=REF(LOW,1);VAR2:=SMA(Abs(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;VAR3:=EMA(IF(CLOSE*1.3,VAR2*......
  • 通达信买入翻倍选股指标公式源码副图
    {通达信买入翻倍选股指标公式源码副图}通达信买入翻倍选股指标公式VAR1:=REF(CLOSE,1);VAR2:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(Abs(CLOSE-VAR1),6,1)*100;VAR3:=SMA(MAX(CLOSE-VAR1,0),12,1)/SMA(ABS(CLOSE-VAR1),12,1)*100;VAR4:=(BArslAst(VAR3<20)<=3ANDcrOSS(VAR2,V......
  • 通达信资金进出捉妖指标公式源码附图
    {通达信资金进出捉妖指标公式源码附图}{指标介绍:红线上穿紫线和绿线,后面通常会有一波行情,如果结合后面的红柱那就上升的可能性更大。}VAR1:=C-REF(C,1);VAR2:=O-REF(O,2);VAR3:=H-REF(H,1);VAR4:=L-REF(L,1);VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;资金:=(MA(VAR5*vol,10)+EMA(......
  • 通达信波段强弱指标公式源码副图
    {通达信波段强弱指标公式源码副图}AA:=REF(CLOSE,1);BBB:=SMA(MAX(CLOSE-AA,0),34,1)/SMA(Abs(CLOSE-AA),34,1)*1000;HHH:=BBB-LLV(BBB,36);短期:(MA(HHH,2)*3+HHH*13)/16;中期:MA(HHH,10);差值:短期-中期,NODRAW;CCC:=LLV(BBB,36)-BBB;短期二:(MA(CCC,2)*3+CCC*13)/......
  • 通达信价格中枢主图指标公式源码
    {通达信价格中枢主图指标公式源码}年认同价:=MA(C,240);价格中枢:=(SUM(年认同价,0)/(BARSSINCE(年认同价>0)+239));G:=价格中枢*1.2,LINETHICK2,COLOR009900;G2:价格中枢*1.618,POINTDOT,COLORWHITE;G3:价格中枢*1.382,POINTDOT,COLORWHITE;G1:=价格中枢*0.8,LINETHICK2......
  • 01.基于javaEE_大学生就业信息管理系统源码
    基于javaEE_大学生就业信息管理系统:本系统分系统管理员,教师用户,企业用户和毕业生用户4个用户角色。**系统管理员主要功能有系别管理、专业管理、老师管理员管理、站内新闻管理、企业用户管理、岗位管理、文档管理、公告管理、留言管理、就业查询统计(包括就业情况查询,区域分布统......
  • 通达信钻石黄金操盘指标公式源码
    {通达信钻石黄金操盘指标公式源码}  N:=5;N1:=21;VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-3*Sma(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK1;VAR2:=8,COLORGREEN,LINETHICK0;尝试买:I......
  • 通达信牛股启动信号,牛股启动源码
    {通达信牛股启动信号,牛股启动源码}GUP1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;GUP2:=SMA(SMA(GUP1,3,1),3,1)/28.57;GUP3:=EMA(GUP2,5);GUP4:=3*GUP2-2*GUP3;GUP5:=CROSS(GUP4,GUP2)ANDGUP2<2.1ANDCLOSE>OPEN;STICKLINE(GUP5,82,0,0.005,0),colorre......
  • 通达信拐点起飞主图 通达信主图指标源码附图
    {通达信拐点起飞主图通达信主图指标源码附图}{拐点起飞主图} YX:=C<o;<br="">ZGJ:=HHV(H,0);ZD:=LLV(L,60);DWTS:=YXANDCOUNT(YX,0)=4;TS:=BARSLAST(DWTS);SJ:=INTPART(TS/6);ZQ:=BARSLASTCOUNT(SJ=REF(SJ,1))=5;TJ11:=(DWTSORZQ)ANDTS>=0;FB:=C=ZTPRICE(......
  • 通达信风云彩带副图指标公式源码
    {通达信风云彩带副图指标公式源码}DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA),LINETHICK0;DRAWBAND(DIFF,RGB(255,128,192),DEA,RGB(128,255,128));STICKLINE(MACD>=0,MACD,0,2.5,1),COLORF00FF0;STICKLINE(MACD<0,MACD,0,2.5,1),COLORWHITE......