首页 > 编程语言 >通达信平台支撑线主图指标公式源码

通达信平台支撑线主图指标公式源码

时间:2024-03-10 11:14:22浏览次数:31  
标签:MA H3 CROSS 线主图 通达信 源码 CLOSE BARSLAST REF

{ 通达信平台支撑线主图指标公式源码 }

N日平台:=20;
所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT('【行业】',HYBLOCK),STRCAT('【概念】',GNBLOCK)),STRCAT('【地区】',DYBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0.00,0.0,0,所属板块),COLORBLUE;
MA5:MA(CLOSE,5),COLORDDDDDD;
MA10:MA(CLOSE,10),COLOR00DDDD;
MA20:MA(CLOSE,20),DOTLINE,COLORDD00DD;
MA60:MA(CLOSE,60),DOTLINE,COLOR00DD00;
X_1:=vol/REF(MA(VOL,5),1);
X_2:=(CLOSE/REF(CLOSE,1)-1)*100;
X_3:=CLOSE=HHV(CLOSE,N日平台);
X_4:=BArslAST(FILTER(crOSS(0.9,X_3),2))+1;
平台高点:REF(CLOSE,X_4),NODRAW,COLOR8800FF;
X_5:=CLOSE=LLV(CLOSE,N日平台);
X_6:=BARSLAST(FILTER(CROSS(0.9,X_5),2))+1;
平台低点:REF(CLOSE,X_6),NODRAW,COLORFF8800;
X_7:=IF(FINDHIGHBARS(平台高点,1,20,1)>=10,1,0);
X_8:=CROSS(CLOSE,平台高点);
STICKLINE(X_8>0 AND X_1>1 AND X_2>=3 AND X_7>0,OPEN,CLOSE,2,0),COLORYELLOW;
平台突破:IF(X_8>0 AND X_1>1 AND X_2>=3 AND X_7>0,1,0),NODRAW,COLORYELLOW;
STICKLINE(X_4<=30,平台高点,平台高点,4,0),COLOR8800FF;
STICKLINE(X_6<=30,平台低点,平台低点,4,0),COLORFF8800;
KCBB:=IF(CODELIKE('68') OR CODELIKE('30'),1,0);
ZF0:=IF(KCBB=1,1.195,1.093);
炸1:=H>REF(C,1)*ZF0 AND C<h;
涨停10:=C>REF(C,1)*ZF0;
炸2:=IF(炸1 AND NOT(涨停10),1,0);
LX11:=BARSLAST(炸2>0);
炸3:IF(炸1 AND NOT(涨停10),H*1,DRAWNULL),CIRCLEDOT,COLORBLUE,LINETHICK2;
ZB:=炸1 AND NOT(涨停10);
Z16:=BARSLAST(ZB>0);
Z26:=REF(HHV(H,2),Z16);
Z36:=CROSS(C,Z26 )AND 涨停10;
H3:=IF(BARSLAST(ZB)>0 AND BARSLAST(ZB)<190,REF(H,BARSLAST(ZB)),DRAWNULL),LINETHICK1,COLORGREEN;
{STICKLINE(CURRBARSCOUNT>=1,H3,H3,-1,0),,COLOR7CAE39,NODRAW;}
DRAWTEXT(ISLASTBAR,H3,'--炸'),COLOR7CAE39;
BK:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(FILTER(H3,3)))+1);
{DT:=REF(REF(H,1),BK),DOTLINE,COLORGREEN;}
STICKLINE(BK,H3,H3,-1,0),COLOR7CAE39;
{DT1:=REF(H3,BK),DOTLINE,COLORGREEN;};
快线:MA(CLOSE,6),COLORWHITE,LINETHICK1;
慢线:MA(CLOSE,18),COLORYELLOW,LINETHICK1;
生命线:MA(CLOSE,89),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(快线,慢线) AND REF(CLOSE,1)>快线 AND VOL/REF(VOL,1)>1,LOW,'买入');
DRAWTEXT(CROSS(快线,(CLOSE,1)) AND (CLOSE,1)>慢线 ,HIGH,'减仓');
{MA01 : MA(CLOSE,P1);
MA02 : MA(CLOSE,P2);
MA03 : MA(CLOSE,P3);
MA04 : MA(CLOSE,P4);
MA05 : MA(CLOSE,P5);
MA06 : MA(CLOSE,P6);
MA07 : MA(CLOSE,P7);
MA08 : MA(CLOSE,P8);}
X_1X:=(C+L+H)/3;
X_2X:=EMA(X_1X,6);
X_3X:=EMA(X_2X,5);
B点:=CROSS(X_2X,X_3X);
S点:=CROSS(X_3X,X_2X);
持股:=B点>0 AND REF(B点,1)>0;
信号:=IF( B点,2,IF(S点,-1, IF(持股,1,0)));
DRAWICON(CROSS(X_2X,X_3X),L*0.98,7);{B}
DRAWICON(CROSS(X_3X,X_2X),H*1.02,8);{S};

 

标签:MA,H3,CROSS,线主图,通达信,源码,CLOSE,BARSLAST,REF
From: https://www.cnblogs.com/zhibiao/p/18063860

相关文章

  • 通达信突破追涨副图指标公式
    {通达信突破追涨副图指标公式}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轴分界:无参......
  • 通达信牛股平台突破,副图指标公式
    {通达信牛股平台突破,副图指标公式}MA10A:=MA(CLOSE,10);MA54A:=MA(CLOSE,54);HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;HJ_9:=FILTER(HJ_8,10);HJ_10:=BArslAST(HJ_9);HJ_11:=REF(HIGH,HJ_10+2);HJ_12:=REF(HIGH,HJ_10+1);HJ_13:=REF(HIGH,HJ_10);HJ_14:=MAX(......
  • 通达信涨停阴阳绝杀主图源码
    {通达信涨停阴阳绝杀主图源码} DRAWGBK(C>0,RGB(20,10,60),RGB(350,60,150),0,'1',0);DRAWKLINE(H,O,L,C);涨停:=IF((C-REF(C,1))/REF(C,1)>0.097,1,0);STICKLINE(涨停,OPEN,CLOSE,3,0),COLORMAGENTA;BL:=MA(CLOSE,10);UB:=BL+2*STD(CLOSE,10);LB:=BL-2*STD(CLOSE,......
  • 通达信精进3号主图,清楚显示支撑压力位置源码
    {通达信精进3号主图,清楚显示支撑压力位置源码}清楚显示支撑压力位置用法:1、当天进出价位均用白色线显示,(只显示当天和变盘的那一天),其余时间表示趋势未变。向上突破白色线进入,向下破位白色线必出,必须严格执行;2、当天发生变盘分别用黄K线和绿色K线提示;3、进出价位分别用红......
  • 通达信发现庄家主图指标公式源码
    {通达信发现庄家主图指标公式源码}支撑线:EMA((O+C)/2,20),DOTLINE,COLORCYAN;妖股起爆:MA(CLOSE,25)+MA(CLOSE,25)*20/100*0.35,COLORRED,LINETHICK2;Z1:=STRCAT(HYBLOCK,'');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,'');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNB......
  • 通达信海龟升级版指标很好的短线主图
    {通达信海龟升级版指标很好的短线主图}N1:=55;N2:=20;LC:=REF(CLOSE,1);WTR:=MAX((HIGH-LOW),MAX((HIGH-LC),(LC-LOW)));ATR:=SMA(WTR,20,1);AA:=(HHV(HIGH,N1)-(2*ATR));BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);BBB......
  • 通达信神舟一号选股指标公式源码副图选股
    {通达信神舟一号选股指标公式源码副图选股}QQ:=REF(LLV(LOW,30),1);DD:=REF(HHV(HIGH,30),1);ZZ:=REF(MA(V,3),1);VV:=((DD-QQ)/QQ)<10;BB:=V>=1.5*ZZ;CC:=(C-REF(C,1))/REF(C,1)>=0.05ANDDD/C<1.03;QQ1:=LLV(LOW,18);DD1:=HHV(HIGH,18);ZZ1:=MA(V,3);VV1:=((DD1......
  • 通达信黑马天龙出击指标公式源码
    {通达信黑马天龙出击指标公式源码}A18:=(EMA(CLOSE,2));A19:=(EMA((((SLOPE(CLOSE,21))*20)+CLOSE),42));A20:=(HHV((MA(HIGH,13)),13));A21:=(LLV((MA(HIGH,13)),1));A22:=(EMA(CLOSE,4));A23:=((((A18>=A19)AND(A21=A20))AND(A18>A22))AND(CLOSE>A21))AND((REF......
  • 通达信筹码资金动态指标公式源码
    {通达信筹码资金动态指标公式源码}XA_1:=COST(0.1);XA_2:=COST(99.900002);XA_3:=(XA_2-XA_1)/10;资金一:(WINNER(XA_1+XA_3)-WINNER(XA_1))*100;资金二:(WINNER(XA_1+XA_3*2)-WINNER(XA_1+XA_3))*100;资金三:(WINNER(XA_1+XA_3*3)-WINNER(XA_1+XA_3*2))*100;资金四:(WI......