首页 > 编程语言 >通达信金石操盘副图指标波段类操作指标公式源码

通达信金石操盘副图指标波段类操作指标公式源码

时间:2024-02-09 10:12:39浏览次数:26  
标签:EMA VAR9 LLV H5 指标 通达信 源码 CLOSE REF

{ 股票指标 }

 金石操盘,波段类操作指标

就按照信号操作,不亏。

红色持股,蓝色持币

出现“抄底”就建仓,顶部出绿箭头减仓,

源码

N:=12;M:=26;
 

VAR1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;

VAR2:=SMA(VAR1,3,1);

VAR3:=SMA(VAR2,3,1);

VAR4:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-

LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);

VAR5:=CROSS(VAR4,10) AND VAR3<n;< p="">

抄底:IF(VAR5,90,50),COLORRED;

DRAWICON(VAR5,65,5);

DRAWTEXT(VAR5,30,'抄底'),COLORYELLOW;


 

VAR31:=REF(CLOSE,2); 

会员专用:=SMA(MAX(CLOSE-VAR31,0),7,1)/SMA(ABS(CLOSE-VAR31),7,1)*100; 

逃亡: IF(会员专用< REF(会员专用,1) AND 会员专用>79,会员专用,50),COLORGREEN;

中间线:50,COLORYELLOW;


 

VAR6:=(2*CLOSE+HIGH+LOW)/4;

VAR7:=LLV(LOW,M);

VAR8:=HHV(HIGH,M);

VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);

VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);

战术线: VAR9,COLORYELLOW,LINETHICK2;


 

STICKLINE(VAR9>VARA,VAR9,VARA,6,0),COLOR000099;

STICKLINE(VAR9>VARA,VAR9,VARA,4,0),COLOR0000CC;

STICKLINE(VAR9>VARA,VAR9,VARA,2.4,0),COLOR0000FF;

STICKLINE(VAR9>VARA,VAR9,VARA,0.4,0),COLORCC66FF;


 

STICKLINE(VAR9<=VARA,VAR9,VARA,6,0),COLORFF6600;

STICKLINE(VAR9<=VARA,VAR9,VARA,4,0),COLORFF9900;

STICKLINE(VAR9<=VARA,VAR9,VARA,2.4,0),COLORFFCC00;

STICKLINE(VAR9<=VARA,VAR9,VARA,0.4,0),COLORCYAN;


 

战略线: EMA(0.382*REF(VAR9,2)+0.618*VAR9,12),COLORBLUE;


 

VARB:=SUM(IF(CLOSE>REF(CLOSE,7),VOL,IF(CLOSE<ref(close,7),0-vol,0)),0);< p="">


 

A1:=EMA(CLOSE,5);

A2:=EMA(CLOSE,10);

A3:=EMA(CLOSE,20);

A4:=EMA(CLOSE,40);

A5:=EMA(CLOSE,60);

I:=MA(BARSLAST(HIGH=HHV(HIGH,16))*IF(CLOSE<open,vol,1),3);< p="">

R:=MA(BARSLAST(LOW=LLV(LOW,18))*IF(CLOSE>OPEN,VOL,1),4); 

短线逃顶:=IF(I,0,1); 

DRAWICON(短线逃顶,90,2);


 

V8:=600*(EMA(C,3)-EMA(L,30))/EMA(L,30);   

V9:=EMA(V8,7);   

VC:=(2*C+H+L)/4;   

VD:=LLV(L,34);  

VE:=HHV(H,34);   

VF:=LLV(L,21);   

V10:=HHV(H,21);   

V11:=EMA((VC-VF)/(V10-VD)*100,5); 

V12:=EMA((VC-VD)/(VE-VD)*100,8);   

X:V11,COLORWHITE;


 

P1:=5;

P2:=10;

P3:=20;

P4:=30;

P5:=60;

P6:=120;

P7:=240;

P8:=340;

N:=4;

WX:=MA(CLOSE,0);

M1:=MA(CLOSE,P1);

M2:=(MA(CLOSE,P2) * IF((N < 2),WX,1));

M3:=(MA(CLOSE,P3) * IF((N < 3),WX,1));

M4:=(MA(CLOSE,P4) * IF((N < 4),WX,1));

M5:=(MA(CLOSE,P5) * IF((N < 5),WX,1));

M6:=(MA(CLOSE,P6) * IF((N < 6),WX,1));

M7:=(MA(CLOSE,P7) * IF((N < 7),WX,1));

M8:=(MA(CLOSE,P8) * IF((N < 8),WX,1));

C1:=REF(CLOSE,1);

C2:=HHV(C1,2);

C3:=LLV(C1,1);

ET:=HHV(C1,2);

ET1:=REF(ET,1);

XB:=LLV(C1,1);

XB1:=REF(XB,1);

M:=BARSLAST(((CLOSE < XB) AND (C1 >= XB1)));

M11:=REF(M,1);

N9:=BARSLAST(((CLOSE > ET) AND (C1 <= ET1)));

N1:=REF(N9,1);

M21:=(BARSLAST((((M - N9) > 0) AND (M11 <= N1))) + 1);

N2:=(BARSLAST((((N9 - M) > 0) AND (N1 <= M11))) + 1);

ET2:=HHV(ET,M21);

XB2:=LLV(XB,N2);

A:=IF((((M - N9) > 0) AND (M11 <= N1)),1,IF((((N9 - M) > 0) AND (N1 <= M11)),0,2));

H1:=IF(((M - N9) > 0),CLOSE,ET2);

H2:=IF((A = 1),CLOSE,C2);

H3:=IF(((M - N9) < 0),CLOSE,XB2);

H4:=IF((A = 1),CLOSE,XB2);

H5:=IF((((M - N9) > 0) OR (A = 1)),CLOSE,H3);

H6:=REF(H5,1);

H7:=REF(H5,2);

H8:=(H5 > H6);

H9:=(((H4 = REF(H4,1)) AND (REF(H4,1) < REF(H4,2))) AND (H5 > REF(H5,2)));

H10:=(((H2 = REF(H2,1)) AND (H4 = REF(H4,1))) AND (H5 = REF(H5,2)));

W:=((H8 OR H9) OR H10);

T9:=((H5 < H6) AND (H5 < REF(H5,2)));

T10:=((H4 = REF(H4,1)) AND (H5 < REF(H5,2)));

T11:=((H3 > REF(H3,1)) AND (H5 < REF(H5,1)));

T12:=((H5 = REF(H5,1)) AND (H3 = H4));

T13:=((H2 = REF(H2,1)) AND (H2 = H5));

TW:=((((T9 OR T10) OR T11) OR T12) OR T13);

PK:=((AMOUNT * (((OPEN + CLOSE) + HIGH) + LOW)) / 4);

PK1:=IF((VOL > 0),(PK / AMOUNT),((((OPEN + CLOSE) + HIGH) + LOW) / 4));

BBP:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);


 

DRAWTEXT((ISLASTBAR AND (BBP >= 96.5)),85,'明见\短高\龙头\除外'),COLORRED;

DRAWTEXT((ISLASTBAR AND (BBP < 1)),85,'明见\短低\跌停\除外'),COLORGREEN;

DRAWTEXT(((ISLASTBAR AND W) AND (BBP < 96.5)),85,'明日\看涨'),COLORYELLOW;

DRAWTEXT(((ISLASTBAR AND TW) AND (BBP > 1)),85,'明日\看跌'),COLORGREEN;


 


 


 


 

VC1:=(2*C+H+L)/4;   

VD1:=LLV(L,34);  

VE1:=HHV(H,34);   

VF1:=LLV(L,21);   

V110:=HHV(H,21);   

V111:=EMA((VC1-VF1)/(V110-VD1)*100,5); 

V112:=EMA((VC1-VD1)/(VE1-VD1)*100,8);   


 

V13:=EMA(V112,5);

STICKLINE(V112>0 AND V112-V13>=0,79,80,6,0),COLORRED ; 

STICKLINE(V112>0 AND V112-V13<0,79,80,6,1),COLOR00FF00 ; 

STICKLINE(V112>0 AND V112-V13>=0,19,20,6,0),COLORRED, ; 

STICKLINE(V112>0 AND V112-V13<0,19,20,6,1),COLOR00FF00 ; 

 

标签:EMA,VAR9,LLV,H5,指标,通达信,源码,CLOSE,REF
From: https://www.cnblogs.com/zhibiao/p/18012345

相关文章

  • 通达信【狙击龙妖起爆】幅图选股公式 精准狙击妖龙 擒获波段大牛 牛气冲天 源码文件分
    {股票指标} 某地金钻指标,价格千多,还加密限时股海网解密源码文件分享,已经解除时间限制,我们在选股公式,分别做了信号选股公式此指标包含一个幅图+四个选股,详细介绍如下,实盘信号截图,我截图的信号例图都是完整的全图,让大家看的一览无余的明白:指标特色:本选股指标出票量适中,但贵......
  • 通达信长线骑牛指标公式非常好的源码副图
    {股票指标} 长线骑牛非常好的指标,是加密的,已经和谐,有未来函数{长线骑牛}大趋势:MA(C,100),LINETHICK3,COLORYELLOW;长线骑牛1:=CROSS(C*2<refx(c,100),0.3)and=""c="">MA(C,20);长线骑牛2:=CROSS(C*1.6<refx(c,30),0.3)and=""c="">MA(C,10);STICKL......
  • 通达信强势金叉副图公式源码
    {股票指标}X_1:=(3*CLOSE+LOW+OPEN+HIGH)/6;X_2:=(20*X_1+19*REF(X_1,1)+18*REF(X_1,2)+17*REF(X_1,3)+16*REF(X_1,4)+15*REF(X_1,5)+14*REF(X_1,6)+13*REF(X_1,7)+12*REF(X_1,8)+11*REF(X_1,9)+10*REF(X_1,10)+9*REF(X_1,11)+8*REF(X_1,12)+7*REF(X_1,13)+6*REF(X_1,14)+5*......
  • 通达信中线买点主图指标公式源码主图
    {股票指标}ma1:=IF(MA(vol,3)>MA(VOL,12),MA(CLOSE,2),MA(CLOSE,3)),COLORYELLOW;MA2:=MA(CLOSE,6),COLOR00AA00;MA3:=MA(CLOSE,15),COLORADddfA;MA4:=MA(CLOSE,90),COLORYELLOW;MA5:=MA(CLOSE,288),COLORRED;MA6:=MA(CLOSE,576),COLORGREEN;九天:IF(1.1>SMA(CLOSE......
  • 通达信妖网主图指标公式源码主图妖网
    {股票指标}N:=34;M1:=3;M2:=3;DRAWGBK(C>0,RGB(0,10,10),RGB(88,0,0),0,'0',0);DRAWGBK(C>0,RGB(40,120,20),RGB(00,00,00),0,'0',1);DRAWGBK(C>0,RGB(80,100,120),RGB(00,00,00),0,'0',1);Z111:=stRCAT(HYBLOCK,'----......
  • 通达信主力筹码集中指标公式源码副图主力筹码集中
    {股票指标}筹码集中度:(COst(90+(100-90)/2)-COST((100-90)/2))/(COST(90+(100-90)/2)+COST((100-90)/2))+C,COLOR00FFFF,LINETHICK3;前期高点:REF(HHV(筹码集中度,20),0),COLOR0000FF;前期高点2:=REF(HHV(筹码集中度,3),0);前期低点:=REF(LLV(筹码集中度,20),0),COLOR00FF......
  • 通达信前高前底MACD指标公式源码副图
    {股票指标}{指标介绍:只做均线量化评分大于50的个股为佳。}DIFF:=Ema(CLOSE,3)-EMA(CLOSE,15);DEA:=EMA(DIFF,9);macd:2*(DIFF-DEA),COLORstICK,LINETHICK2;中:0,LINETHICK1,COLORRED;VA1:=HHVBARS(MacD,BArslAST(MACD<0)+1);VA2:=crOSS(BACKSET(CROSS(0,MACD),REF(VA1,......
  • 通达信竞开强度排序指标公式源码
    {股票指标}今开:(OPEN/REF(CLOSE,1)-1)*100,NODRAW;创业板:=IF(CODELIKE('300'),1,0);排除一字:=REF((((今开<9.8ANDNOT(创业板))OR(今开<19.5AND创业板))=0),0);涨停创:=IF(C>1.1990*REF(C,1)ANDC=H,1,0);涨停主:=IF(C>1.09*REF(C,1)ANDC=H,1,0);涨停数:=(涨......
  • 通达信与庄共舞主图源码
    {股票指标} 与庄共舞主图使用方法:暗条越长压力越大,暗条越短做多越好 举一反三,股价在暗条的上方那么暗条越长,支撑力度越大。 参数自己填写吧DA1:=IF(130>TOTALBARSCOUNT,TOTALBARSCOUNT,130);DA:=IF(CURRBARSCOUNT>DA1,0,DA1);HI:=REFDATE(HHV(H,DA),DATE);LO:......
  • 通达信金石探庄,底部顶部都明确信号源码副图
    {股票指标}VAR3:=(2*CLOSE+HIGH+LOW)/4;VAR4:=LLV(LOW,34);VAR5:=HHV(HIGH,34);空:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),COLORYELLOW;多:EMA(0.667*REF(空,1)+0.333*空,2),COLORF00FF0;高抛低吸分界线:50,CROSSDOT,COLORYELLOW;危险小心套牢:IF(CROSS(多,空)AND......