首页 > 编程语言 >通达信擒庄多空短中指标公式源码副图

通达信擒庄多空短中指标公式源码副图

时间:2024-01-27 20:56:41浏览次数:26  
标签:MA STICKLINE 通达信 源码 CLOSE 100 庄多空 REF MACD

N:=9; M:=9;
VAR1:=(C-ma(C,6))/MA(C,6)*100;
VAR2:=(C-MA(C,24))/MA(C,24)*100;
VAR3:=(C-MA(C,32))/MA(C,32)*100;
VAR4:=(VAR1+VAR2+VAR3)/3;
VAR5:=EMA(VAR4,5);
VAR6:=MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20;
VAR7:=SMA(SMA(100-3*(C-LLV(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+SMA(2*(C-LLV(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
VAR8:=VAR7<ref(var7,1) and="" v="">REF(V,1) AND C>REF(C,1);
A:=PERIOD;
BL:=IF(A=0,150,IF(A=1,50,IF(A=2,30,IF(A=3,17,IF(A=4,15,IF(A=5,8,IF(A=6,3,IF(A=7,2,IF(A=8,50,IF(A=9,3,1.3))))))))));
FM:=(EMA(CLOSE,1.414*N+1));
FCL:=IF(FM<=0.05,Abs(FM)+0.1,0);
DIF:=(EMA(CLOSE,N)-EMA(CLOSE,2*N+2))/(FCL+FM)*100*BL,COLORLIRED,LINETHICK2;
DEA:=EMA(DIF,N*0.75),COLORGREEN,LINETHICK2;
DRAWBAND(DEA,RGB(55,250,96),DIF,RGB(155,50,196));
ED:=(-0.4*REF(C,4)-0.4*REF(C,3)-1.1*REF(C,2)+0.9*REF(C,1)+2*C);
VARR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VARR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VARR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VARR6:=(VARR3+VARR4+VARR5)/3;
VARR7:=EMA(VARR6,5);
指标:=EMA(EMA(VARR3,5),5)*3, COLORstICK;
VARR8:=IF(VARR6<=-20,10,0);
VAR9:=HHV(VARR8,10);
STICKLINE(VARR8=10,20,10,5,0),COLOR6666FF;
VARA:=IF(VAR9 AND crOSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
RSV:=(SMA(ED,4,1)-LLV(L,M))/(HHV(H,M)-LLV(L,M))*100;
K:SMA(RSV,3,1),COLORWHITE,LINETHICK1;
D:SMA(K,3,1),COLORYELLOW,LINETHICK1;
J:2*K-1*D,COLORGREEN,LINETHICK1;
DRAWBAND(K,RGB(240,50,50),D,RGB(50,98,240));
macd:2*(DIF-DEA),COLORRED,COLORSTICK;
黄色转强买:(MacD<0 AND MACD>REF(MACD,1),MACD),COLOR00FFFF,NODRAW;
STICKLINE(MACD>0 AND MACD<ref(macd,1),0,macd,0.1,0)color00ff00; <br=""> STICKLINE(MACD>0 AND MACD>REF(MACD,1),0,MACD,0.1,0)COLORRED;
STICKLINE(MACD<0 AND MACD<ref(macd,1),0,macd,0.1,0),colorcyan; <br=""> STICKLINE(MACD<0 AND MACD>REF(MACD,1),0,MACD,0.1,0),COLOR00FFFF;
看多:IF(LLV(VAR6,3)<var6,-60,drawnull),linethick2,colorred; <br=""> 看空:IF(VAR6=LLV(VAR6,3),-60,DRAWNULL),LINETHICK2,COLORGREEN;
中短:IF(J>D,-50,DRAWNULL),LINETHICK2,COLORCC66FF;
超短:IF(VAR8>0,-40,DRAWNULL),LINETHICK2,COLORYELLOW;
观望:IF(J<d,-50,drawnull),linethick1,colorff9900; <br=""> 战区:IF(VAR8=0,-40,DRAWNULL),LINETHICK1,COLOR6B8E23;
金叉:=CROSS(DIF,DEA) AND DIF<0.3;
STICKLINE(金叉,0,8,3,0),COLORYELLOW;
危险: STICKLINE(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+10,0,1,0);
注意止损:STICKLINE(VAR2 AND FILTER(VAR1< REF(VAR1,1),3)
AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,0,3,0);
DRAWTEXT(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+10,'危'),COLORBLUE;
DRAWTEXT(VAR2 AND FILTER(VAR1< REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,'损'),COLORBLUE;
TYP:=(HIGH+LOW+CLOSE)/3;
cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
转点:=IF(K>D AND CCI>0 AND DIF>DEA AND MACD>0,1,0);
STICKLINE(转点=1,50,50,2,0),COLORYELLOW;
STICKLINE(转点=0,50,50,2,0),COLORCYAN;
STICKLINE(C,90,90,1,0),COLORYELLOW;
STICKLINE(C,10,10,1,0),COLORCYAN;
STICKLINE(C,-90,-90,1,0),COLORCYAN;

 

标签:MA,STICKLINE,通达信,源码,CLOSE,100,庄多空,REF,MACD
From: https://www.cnblogs.com/zhibiao/p/17991926

相关文章

  • 通达信大阳操盘主图指标公式源码
    DRAWTEXT_FIX(ISLAstBAR,0,0,0,HYBLOCK);DRAWTEXT_FIX(ISLASTBAR,1,0,0,DYBLOCK);DRAWTEXT_FIX(ISLASTBAR,0.5,2,0,GNBLOCK);DRAWTEXT_FIX(ISLASTBAR,0,0,3,FGBLOCK);PE:=DYNAINFO(39),NODRAW;EPSRATE:=FINANCE(43);PEG:=DYNAINFO(39)/FINANCE(43),NODRAW;DRAWTEXT_FIX......
  • 通达信白帝飞天主图指标公式源码
    N:=3;KKK:=SMA(H,11,1);CX:=IF(KKK>REF(KKK,1),KKK,HHV(KKK,63));GGG:=Sma(L,11,1);DD:=IF(GGG<ref(ggg,1),ggg,llv(ggg,63));成仙黄色线上涨:IF(C>=CX,CX,DRAWNULL),LINETHICK2,COLORYELLOW;得道:DD,COLORLIBLUE;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1);B1:=FILTER(A1......
  • 通达信擒黑马大牛选股指标公式源码
    TJ1:=REF(crOSS(ma(C,5),C),1)ANDCROSS(C,MA(C,5));TJ2:=REF(CROSS(MA(C,10),C),1)ANDCROSS(C,MA(C,10));TJ3:=REF(CROSS(MA(C,20),C),1)ANDCROSS(C,MA(C,20));TJ4:=TJ1ORTJ2ORTJ3;TJ5:=REF(C,2)/REF(C,1)>=1.045ANDREF(C,1)<ref(o,1)and=""......
  • 通达信底部结构形成选股指标公式源码
    DIF:=100*(Ema(CLOSE,12)-EMA(CLOSE,26));DEA:=EMA(DIF,9);macd:=(DIF-DEA)*2;{底部结构预警}死叉:=crOSS(DEA,DIF);N1:=BArslAst(死叉);{最近一次死叉的位置}N2:=REF(BARSLAST(死叉),N1+1);{倒数第二次死叉与倒数第一次死叉的区间}N3:=REF(BARSLAST(死叉),N2+N1+2);{倒数......
  • 通达信波段底王中王指标公式源码副图
    X_01:=5;X_02:=Ema(CLOSE,X_01);X_03:=EMA(X_02,X_01);X_04:=X_02-REF(X_02,1);X_05:=X_03-REF(X_03,1);X_06:=Abs(X_02-X_03);X_07:=(X_04+X_05)/2;X_08:=POW(X_06,1)*POW(X_07,3);X_09:=X_08/HHV(ABS(X_08),X_01*3);波段底:crOSS(X_09,-0.9),COLORGREEN;X_1......
  • 通达信擒涨停主图指标公式源码副图
    神秘均线75:=ma(CLOSE,75);ZJ:=EMA(C,13),COLOR0000FF;HY:=EMA(C,20),COLORFF00FF;ZJ升:=IF(ZJ>REF(ZJ,1),ZJ,DRAWNULL),COLORRED,LINETHICK2;ZJ降:=IF(ZJ<=REF(ZJ,1),ZJ,DRAWNULL),COLORBLUE,LINETHICK2;HY升:=IF(HY>REF(HY,1),HY,DRAWNULL),COLORFF00FF,LINETHICK2;......
  • 通达信十战功成选股指标公式源码副图
    ma111:=MA(CLOSE,20);MA112:=MA(CLOSE,40);MA113:=MA(CLOSE,60);A11:=OPENA12:=C>MAX(MA111,MAX(MA112,MA113));A13:=V/MA(V,30)>1.2;A14:=C/REF(C,1)>1.049;SSSS:=expma(EXPMA(CLOSE,50),1);BBBB:=MA(CLOSE,125);NNNN:=MA(CLOSE,240);ZF:=(C-REF(C,1))/RE......
  • 真正的黄金K线主图源码
    TT2:=DMA((((HIGH+LOW)+(CLOSE*2))/4.15),0.9);TT1:=REF(EMA(TT2,3),1);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;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,......
  • 通达信超级逃顶指标公式明确买卖点,规避风险
    基础线:MA(C,5),LINETHICK3,COLOR00CCFF;刚柔线:MA(C,13),CIRCLEDOT,COLORYELLOW;生命线:MA(C,34),CIRCLEDOT,COLORMAGENTA;MA05:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);五日乖离率:=(C-MA05)/MA05*100;BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.141......
  • 通达信回调就买主图指标,一个指标,觉得有帮助就用
    MA5:MA(C,5),COLORFFFFFF;MA10:MA(C,10),COLOR00FFFF;MA20:MA(C,20),COLORLIBLUE;MA60:MA(C,60),COLORLIGREEN;MA120:=MA(C,120),COLOR0000FF;DRAWKLINE(H,O,L,C);BDGD:=C=HHV(C,13);GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;高点:REF(C,GDSJ),COLORFF00FF,POINTDO......