首页 > 编程语言 >通达信趋势主图源码主图趋势主图

通达信趋势主图源码主图趋势主图

时间:2024-02-25 11:14:05浏览次数:36  
标签:KDJ M34 主图 HL1 通达信 源码 CCC REF MACD

{ 股票指标 }


CCC:=AMOUNT/VOL/100;
M5:MA(CCC,5),COLORFF00FF,LINETHICK1;
M13:MA(CCC,13),COLOR00FFFF,LINETHICK1;
M21:MA(CCC,21),COLORRED,LINETHICK1;
M34:MA(CCC,34),COLORFFFFFF,LINETHICK2;
STICKLINE(C<o,c,o,3.2,1),colorfff333; <br="">STICKLINE(C>O,C,O,3.2,1),COLORRED;
STICKLINE(CCC>M34 AND M34>REF(M34,1) AND CCC>M13,C,O,3.2,0),COLORRED;
STICKLINE(CCC>M34 AND M34>REF(M34,1) AND CCC>M13 AND C<o,c,o,3.2,1),colordddddd; <br="">STICKLINE(CCC<=M34 AND M34>REF(M34,1) AND C<=O,C,O,3.2,1),COLOR00FFFF;
STICKLINE(CCC<=M34 AND M34>REF(M34,1),C,O,3.2,0),COLOR00FFFF;
STICKLINE(CCC<=M34 AND M34>REF(M34,1) AND C<=O,C,O,3.2,1),COLOR00FFFF;
STICKLINE(CCC<=M34 AND M34<=REF(M34,1),C,O,3.2,1),COLORFF0000;
STICKLINE(CCC<=M34 AND M34<=REF(M34,1) AND C<=O,C,O,3.2,0),COLORFF0000;
M34,COLORFFFFFF,LINETHICK2;
IF(M34<ref(m34,1),m34,drawnull),colorff0000,linethick2; <br="">M21,COLORRED;
IF(M21<ref(m21,1),m21,drawnull),color00ff00,linethick1; <br="">M13,COLOR00FFFF;
IF(M13<ref(m13,1),m13,drawnull),colorfff333,linethick1; <br="">M5,COLORFF00FF;
IF(M5<ref(m5,1),m5,drawnull),color009880,linethick1; <br="">K8:=SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2.5,1);
短入:=K8>REF(K8,1) AND CROSS(K8,SMA(K8,2.5,1)) AND K8<50;
DRAWICON(短入,L*0.96,13);
抄底:=REF(COUNT("KDJ.K"<ref("kdj.k",1),5)>=5,1) AND COUNT("KDJ.K"<30,5)>=2 
AND COUNT("KDJ.J"<0,3)>0 AND CROSS("KDJ.J",0);
DRAWTEXT(抄底 AND NOT((CCC>M34 OR M34>REF(M34,1))),L*0.98,'--抄底')
,COLOR00FFFF;
DRAWTEXT(抄底 AND (CCC>M34 OR M34>REF(M34,1)),L*0.98,'--确认'),COLORRED;
TJ00:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D") AND REF("KDJ.K",1)<35,1));
加仓:=C<ref(c,tj00+1)*1.1 and="" ref("kdj.k",1)<60="" (tj00+1)<25="" (tj00+1)="">5 AND "KDJ.K">REF("KDJ.K",TJ00+1) AND CROSS("KDJ.K","KDJ.D");
DRAWTEXT(加仓 AND NOT((CCC>M34 OR M34>REF(M34,1))),L*0.98,'--回抽')
,COLOR5599FF;
DRAWTEXT(加仓 AND (CCC>M34 OR M34>REF(M34,1)),L*0.98,'--加仓'),COLORFF00FF;
DRAWICON(CROSS("KDJ.J",0) AND (CCC>M34 OR M34>REF(M34,1)),L*0.97,1);
HH0:=CONST(HHV(H,75));
LL0:=CONST(LLV(L,75));
MM0:=CONST((HH0+LL0)/2);
HL0:=CONST(IF(CONST(C)>=MM0,LL0-(HH0-LL0)*0.2,HH0+(HH0-LL0)*0.2));
HH1:=IF(CONST(C)<mm0,hh0*1.01,hl0); <br="">LL1:=IF(CONST(C)>=MM0,LL0*0.99,HL0);
HL1:=(HH1+LL1)/2,COLORFFFFFF;
{www.gspt.com}
STICKLINE("MACD.MACD">0,"MACD.MACD"+HL1,HL1,2.5,1),COLORDD55CC;
STICKLINE("MACD.MACD">0 AND "MACD.MACD">REF("MACD.MACD",1),
"MACD.MACD"+HL1,HL1,2.5,0),COLORDD55CC;
STICKLINE("MACD.MACD"<0,"MACD.MACD"+HL1,HL1,2.5,0),COLOR00D080;
STICKLINE("MACD.MACD"<0 AND "MACD.MACD">REF("MACD.MACD",1),
"MACD.MACD"+HL1,HL1,2.5,1),COLOR00D080;
IF("MACD.DIF">0,HL1*0.975,DRAWNULL),COLOR0000FF,LINETHICK1,CIRCLEDOT;
IF("MACD.DIF">0 AND "MACD.MACD"<0,HL1*0.975,DRAWNULL),COLOR00FFFF,CIRCLEDOT;
IF("MACD.DIF"<0 AND "MACD.MACD">0,HL1*0.975,DRAWNULL),COLORFF0080,CIRCLEDOT;

 

标签:KDJ,M34,主图,HL1,通达信,源码,CCC,REF,MACD
From: https://www.cnblogs.com/zhibiao/p/18032155

相关文章

  • 通达信个股大盘比较,金叉点就是进入点源码
    {股票指标}个股大盘比较个股大盘比较 信号类型:统计对比信号质量:客观记录------------------实战使用说明:   本指标个股趋势线位于大盘走势线上方说明个股强于大盘,反之则弱于大盘。只有个股走势强于有大盘,短线操作才有明确的获利机会。在实战操作中紧紧跟随市场......
  • 通达信财富战神指标公式源码副图
    {股票指标}X_1:=ma(CLOSE,5);X_2:=MA(CLOSE,10);X_3:=MA(CLOSE,20);X_4:=MA(CLOSE,60);X_5:=MA(CLOSE,120);X_6:=X_1>X_2ANDX_2>X_3ANDX_3>X_4ANDX_4>X_5ANDX_1>REF(X_1,1)ANDX_2>REF(X_2,1)ANDX_3>REF(X_3,1)ANDX_4>REF(X_4,1)A......
  • 通达信精选涨停追涨选股指标公式源码
    {股票指标}RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=(SMA(RSV,3,1));D:=(Sma(K,3,1));J:=(3*K-2*D);N:=K+D;KX:=N<55;KX1:=N<60;F:=crOSS(MA(CLOSE,10),MA(CLOSE,15));F1:=CROSS(MA(CLOSE,10),MA(CLOSE,19));F2:=REF(KX,3)AND(REF(KX,18)O......
  • 通达信量化资金流向指标公式源码副图
    {股票指标}X_1:=1231212;X_2:=IF(DATE<x_1,1,drawnull);X_3:=(2*CLOSE+HIGH+LOW)/4*X_2;X_4:=LLV(LOW,34)*X_2;X_5:=HHV(HIGH,34)*X_2;X_6:=Ema((X_3-X_4)/(X_5-X_4)*100,9)*X_2;X_7:=EMA(0.667*REF(X_6,1)+0.333*X_6,2)*X_2;多头:EMA((X_3-X_4)/(X_5-X_4)*100,30)*X_......
  • 通达信量化侦察兵指标公式源码副图
    {股票指标}X_1:=1231212;X_2:=IF(DATE<x_1,1,drawnull);主力持仓:Ema(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)*X_2,COLORMAGENTA,LINETHICK2;警戒线:80*X_2,COLORYELLOW;X_3:=REF((LOW+OPEN+CLOSE+HIGH)/4,1)*X_2;X_4:=SMA(Abs(LOW-X_3),13,1)/SMA(MAX(L......
  • 通达信暴涨金牛指标公式源码选股
    {股票指标}X_1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*Sma(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);X_2:=8;X_3:=crOSS(X_1,X_2);X_4:=CROSS(X_1,X_2)ANDHIGH>REF(HIGH,1)ANDCLOSE>REF(CLOSE,1);X_5:=CROSS......
  • 通达信乾坤骑牛选股指标公式源码
    {股票指标}TJ1:=O=LANDC>OANDO/REF(C,1)<0.95;TJ2:=ma(C,5)<ma(c,10)and=""l<ma(c,5)=""h=""o="">1.1;TJ3:=H/C>1.07ANDV>REF(HHV(V,800),1);TJ4:=TJ1ANDTJ2ANDTJ3;TJ5:=REF(TJ4,1)ANDC>......
  • 通达信短线动力指标公式源码副图
    {股票指标}VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);注意:50,COLORGREEN;70,POINTDOT;清仓:90,COLORRED;动力线:=Ema((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*20;stICKLINE(动力线>REF(动力线,1),动力线,REF(动力线,1),3,1),COLORBROWN;STICKLINE(动力线<=REF(动力线,1),动......
  • 通达信持股量能指标公式源码副图
    {股票指标}M1:=5;M2:=135;volUME:VOL,VOLstICK;maVOL1:MA(VOLUME,M1);MAVOL2:MA(VOLUME,M2);绿低量:=13;蓝低量:=55;灰低量:=100;H_L:=0.1*CONST(HHV(VOL,240));{MAV10:MA(V,10),COLORYELLOW;}启动5:=MA(V,5),COLORWHITE;洗盘40:=MA(V,40),COLORBLUE;异动135:=MA(......
  • 通达信利波量价指标公式源码副图
    {股票指标}MV3:=Ema(V,3);MA3:=EMA(C,3);MV3角度:=ATAN((MV3/REF(MV3,1)-1)*100)*180/3.1416;MA3角度:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416;MV5:=EMA(V,5);MA5:=EMA(C,5);MV5角度:=ATAN((MV5/REF(MV5,1)-1)*100)*180/3.1416;MA5角度:=ATAN((MA5/REF(MA5,1)-1)*10......