20个极品通达信指标公式源码.docx
《20个极品通达信指标公式源码.docx》由会员分享,可在线阅读,更多相关《20个极品通达信指标公式源码.docx(58页珍藏版)》请在冰豆网上搜索。
20个极品通达信指标公式源码
公式1(未来函数)
代码
N1:
=5;N2:
=10;N3:
=20;N4:
=30;P:
=2;M:
=20;N:
=250;M1:
=55;W:
=21;P3:
=500;N9:
=90;
HR:
=HHV(HIGH,M1);
HRY:
=LLV(LOW,M1);
HRY11:
=HR*HRY;
HRY33:
SQRT(HRY11),COLORGREEN,LINETHICK2;
IF(C>HRY33ANDHRY33>=REF(HRY33,1),HRY33,DRAWNULL),LINETHICK2,COLORRED;
MA1:
EMA(CLOSE,N1);
MA2:
EMA(CLOSE,N2);
MA3:
EMA(CLOSE,N3),COLOR00FFFF;
MA4:
EMA(CLOSE,N4),LINETHICK2;
TJ1:
=CROSS(MA1,MA2)ANDC>OANDC>REF(C,1)ANDC/REF(C,1)>=1.018
ORCROSS(MA1,MA4)ANDC>OANDC>REF(C,1)ANDC/REF(C,1)>=1.018
ORCROSS(MA2,MA3)ANDC>OANDC>REF(C,1)ANDC/REF(C,1)>=1.018
ORCROSS(MA1,MA3)ANDC>OANDC>REF(C,1)ANDC/REF(C,1)>=1.018;
TJ2:
=(MAX(MA1,MAX(MA2,MA3))-MIN(MA1,MIN(MA2,MA3)))/
MIN(MA1,MIN(MA2,MA3))*100<=P;
XG:
=TJ1ANDTJ2;
RSV:
=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:
=SMA(RSV,3,1);
D:
=SMA(K,3,1);
DIFF:
=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:
=EMA(DIFF,9);
MACD:
=2*(DIFF-DEA);
做多:
=IF(K>DANDMACD>0ANDV>1,2,0),COLORRED;
做空:
=IF(K1,-2,0),COLOR00FF00;
强洗:
=IF(MACD>0ANDK1,1,0),COLOR0099FF;
弱升:
=IF(MACD<0ANDK>DANDV>1,-1,0),COLORFFFF00;
STICKLINE(做多ANDC>=O,C,O,3,1),COLORRED;
STICKLINE(做多ANDCSTICKLINE(做多ANDCSTICKLINE(做多ANDCSTICKLINE(做多ANDC>=O,C,O,3,1),COLOR0000FF;
{STICKLINE(做多ANDC>=O,C,O,1.5,0),COLOR0000DD;
STICKLINE(做多ANDC>=O,C,O,0.4,0),COLOR0000FF;}
STICKLINE(做空ANDC>=O,L,H,0.1,0),COLOR0000FF;
STICKLINE(做空ANDC>=O,C,O,3,1),COLOR00FF00;
{STICKLINE(做空ANDCSTICKLINE(做空ANDCSTICKLINE(做空ANDCSTICKLINE(强洗ANDC>=O,L,H,0.1,0),COLOR0000FF;
STICKLINE(强洗ANDC>=O,C,O,3,1),COLORFFFFFF;
STICKLINE(强洗ANDCSTICKLINE(强洗ANDCSTICKLINE(强洗ANDCSTICKLINE(弱升ANDC>=O,C,O,3,1),COLOR00FFFF;
STICKLINE(弱升ANDCSTICKLINE(弱升ANDCSTICKLINE(FILTER(TJ1,3),C,O,4,0),COLOR0000FF;
DRAWICON(FILTER(XG,3),L*0.985,23);
GET:
=ZIG(3,3),COLORYELLOW;
PL5:
=ZIG(3,5);
EN1:
=ZIG(3,5)>REF(ZIG(3,5),1)ANDREF(ZIG(3,5),1)<=REF(ZIG(3,5),2)ANDREF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
EX1:
=ZIG(3,5)[=REF(ZIG(3,5),2)ANDREF(ZIG(3,5),2)>=REF(ZIG(3,5),3);]
PL10:
=ZIG(3,10);
EN2:
=ZIG(3,10)>REF(ZIG(3,10),1)ANDREF(ZIG(3,10),1)<=REF(ZIG(3,10),2)ANDREF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
EX2:
=ZIG(3,10)[=REF(ZIG(3,10),2)ANDREF(ZIG(3,10),2)>=REF(ZIG(3,10),3);]
PL20:
=ZIG(3,20);
EN3:
=ZIG(3,20)>REF(ZIG(3,20),1)ANDREF(ZIG(3,20),1)<=REF(ZIG(3,20),2)ANDREF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
EX3:
=ZIG(3,20)[=REF(ZIG(3,20),2)ANDREF(ZIG(3,20),2)>=REF(ZIG(3,20),3);]
PL40:
=ZIG(3,40);
走强1:
=BARSLAST(PL5走弱1:
=BARSLAST(PL5>REF(PL5,1));
走强2:
=BARSLAST(PL10走弱2:
=BARSLAST(PL10>REF(PL10,1));
走强3:
=BARSLAST(PL20走弱3:
=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:
=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
ZTJD5:
=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
DTJZ5:
=IF(PL10DTJD5:
=IF(PL10ZTJZ10:
=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
ZTJD10:
=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
DTJZ10:
=IF(PL20DTJD10:
=IF(PL20DRAWTEXT(EN1ANDDTJZ5=1,L*0.98,'(A)'),COLORFFFF00;
DRAWTEXT(EX1ANDDTJD5=2,H*1.02,'(B)'),COLORFF00FF;
DRAWTEXT(EN2ANDZTJZ5=1,L*0.98,'(C)'),COLOR0000FF;
DRAWTEXT(EN2ANDDTJZ10=1,L*0.93,'Ⅰ'),COLORFF00FF;
DRAWTEXT(EX2ANDDTJD10=2,H*1.05,'Ⅱ'),COLORFFFF00;
DRAWTEXT(EN3ANDZTJZ10=1,L*0.93,'Ⅲ'),COLOR0000FF;
DRAWTEXT(EX2ANDPL20>REF(PL20,1)ANDZTJD10=1,H*1.03,'①'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2ANDPL20>REF(PL20,1)ANDZTJZ10=2,L*0.95,'②'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EX2ANDPL20>REF(PL20,1)ANDZTJD10=2OR(ZTJD10=0ORZTJD10=2)
ANDEX2,H*1.03,'③'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2ANDPL20>REF(PL20,1)ANDZTJZ10=3,L*0.95,'④'),
LINETHICK3,COLOR00FFFF;
TJ11:
=EN2ANDZTJZ5=1;
TJ22:
=EN1ANDPL10>REF(PL10,1)ANDZTJZ5=2;
TJ33:
=EN2ANDDTJZ10=1;
TJ44:
=EN3ANDZTJZ10=1;
TJ55:
=EN2ANDPL20>REF(PL20,1)ANDZTJZ10=2;
XG22:
=TJ11ORTJ22ORTJ33ORTJ44ORTJ55;
MM:
=C>HRY33ANDHRY33>=REF(HRY33,1);
QQ:
=HRY33>=REF(HRY33,1);
XG11:
=CROSS(C,HRY33)ANDQQANDMM;
BUY1:
=LAST(CLOSE>MA(CLOSE,55),0,5);
BUY2:
=EXIST(CLOSEBUY:
=CLOSE>MA(CLOSE,55)&&BUY1&&BUY2;
W18:
=FILTER(EXIST(XG11ORBUY,1),5);
STICKLINE(W18,C,(C+O)/2,4,0),COLORFF00FF;
DRAWTEXT(W18,L*0.97,'牛'),COLOR00FFFF;
X1:
=REF(C,1)/HHV(H,20)<0.82;
X2:
=(MIN(C,O)-L)/(H-L)>0.67;
X3:
=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)<0.33;
X4:
=ABS(C-O)/C<0.01;
DOWN:
=O>C;
X5:
=COUNT(DOWN,7)>=5;
XG8:
=X1ANDX2ANDX3ANDX4ANDX5;
DRAWTEXT(XG8,L*0.98,'螺'),COLOR00FFFF;
AA:
=REF(C,1)/REF(O,1)<0.96;
BB:
=C/O>1.03;
CC:
=C>REF(O,1);
TJ81:
=AAANDBBANDCC;
X81:
=REF(C,1)/HHV(H,20)<0.82;
DN:
=O>C;
X82:
=COUNT(DN,7)>=5;
X83:
=C=HHV(C,3);
XG81:
=TJ81ANDX81ANDX82;
XG82:
=X81ANDX82ANDX83;
XG88:
=XG81ORXG82;
DRAWTEXT(XG88,L*0.96,'反'),COLOR00FFFF;
X01:
=REF(C,1)/HHV(H,21)<0.77;
{DOWN1:
=O>C;
X02:
=COUNT(DOWN1,9)>=6;}
X03:
=ABS(C-O)/C<0.008;
X04:
=(H-L)/C>0.025;
XG0:
=X01ANDX03ANDX04;
DRAWTEXT(XG0,L*0.97,'星'),COLOR00FFFF;
S1:
=REF(C,1)/LLV(L,W)>1.30;
S2:
=(H-MAX(C,O))/(H-L)>0.60;
S3:
=ABS(C-O)/C<0.03;
S4:
=(H-O)/C>0.05ANDCSAL1:
=S1ANDS2ANDS3;
SAL2:
=S1ANDABS(C-O)/C>0.05ANDCSAL3:
=S1ANDABS(C-O)/C<0.001;
SAL4:
=S1ANDS4;
SAL5:
=(H-MAX(C,O))/(H-L)>0.67ANDCSAL:
=SAL1ORSAL2ORSAL3ORSAL4ORSAL5;
LC:
=REF(CLOSE,1);
RSI:
=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;
黄买:
=FILTER((REF(CLOSE,2)黄卖:
=FILTER((REF(CLOSE,2)>CLOSEANDRSI>80),7);
红买:
=FILTER(CROSS(RSI,11),7);
红卖:
=FILTER(CROSS(89,RSI),7);
绿买:
=FILTER(CROSS(RSI,20),7);
绿卖:
=FILTER(CROSS(80,RSI),7);
SL1:
=红卖AND绿卖;
SL2:
=红卖AND绿卖AND黄卖;
BU:
=红买AND绿买;
SS1:
=CROSS(MA(C,5),C);
SS2:
=(REF(C,1)-C)/REF(C,1)>0.04;
SS3:
=OJJ1:
=SS1ANDSS2ANDSS3;
SSL:
=JJ1ANDS1;
SAL8:
=FILTER(SALORSSL,5);
DRAWTEXT(SAL8ORSL1ORSL2,H*1.02,'卖'),COLOR00FF00;
STICKLINE(SAL8ORSL1ORSL2,C,O,1,0),COLORFF0000;
DRAWTEXT(SAL8ANDSL1ANDSL2,H*1.02,'必卖'),COLOR00FF00;
MA20:
=MA(CLOSE,20);
AA10:
=MA(CLOSE,8);
中期大底:
=LLV(LOW,30);
支撑:
=HHV(EMA(((((OPEN+LOW)+HIGH)+CLOSE)/4),5),60);
压力一:
=HHV(LOW,20);
中线:
=MA(CLOSE,3);
天:
=(MA(LOW,15)*0.985);
人:
=(MA(LOW,15)*0.96);
地:
=(((HIGH+LOW)+CLOSE)/3);
B1:
=HHV(地,(4*15));
B6:
=LLV(地,(4*15));
B7:
=(B1-B6);
B8:
=(MA(((地-B6)/B7),2)*80);
短期底部:
=(LLV(HIGH,30)*0.93);
MA80:
=LLV(HIGH,30);
压力二:
=(SMA(HIGH,21,2)*1.035);
下档线:
=(((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13)))*100);
RSV8:
=SMA(下档线,3,1);
K8:
=SMA(RSV8,3,1);
D8:
=((3*RSV8)-(2*K8));
J12:
=(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*100);
K24:
=SMA(SMA(J12,3,1),3,1);
D24:
=((3*SMA(J12,3,1))-(2*K24));
压力位:
=IF(CROSS(D24,D),HIGH,L);
长期底部:
=LLV(HIGH,30);
X18:
=EMA((((((3*CLOSE)+HIGH)+LOW)+OPEN)/6),10);
逃遁:
=(SMA(HIGH,21,2)*1.05);
TJ18:
=FILTER(((((LLV(LOW,0)AND((MA(CLOSE,37)-REF(MA(CLOSE,37),1))
>0))AND(LOW<=短期底部))AND(WINNER(CLOSE)<0.05))AND
((CLOSE/OPEN)>0.13)),7);
图
公式2
代码
PJJ:
=DMA((H+L+C*2)/4,0.9);
JJ:
=REF(EMA(PJJ,3),1);
QJJ:
=VOL/((H-L)*2-ABS(C-O));
XVL:
=IF(C>O,QJJ*(H-L),IF(C+IF(C>O,0-QJJ*(H-C+(O-L)),IF(CHSL:
=XVL/20/1.15;
攻击流量:
=HSL*0.55+REF(HSL,1)*0.33+REF(HSL,2)*0.22;
GJJ:
=EMA(攻击流量,2);
DIFF:
=(EMA(GJJ,12)-EMA(GJJ,26)),COLORGREEN;
DEA:
=MA(DIFF,2),COLORYELLOW;
VA2:
=LLV(LOW,33);
VA3:
=HHV(HIGH,21);
VA4:
=EMA((CLOSE-VA2)/(VA3-VA2)*100,10)*-1+100;
趋势:
=100-EMA(0.191*REF(VA4,1)+0.809*VA4,1);
趋势线:
=100-EMA(0.191*REF(VA4,1)+0.809*VA4,1);
STICKLINE(DIFF>DEAAND趋势线>REF(趋势线,1),
HHV(H,5)*1.05,LLV(L,5)*0.95,4,0),COLOR781836;
DRAWKLINE(H,O,L,C);
V1:
=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2:
=(1-7/100)*(DMA(CLOSE,V1));
V3:
=(1+7/100)*(DMA(CLOSE,V1));
V5:
=MA((LOW+HIGH+CLOSE)/3,5);
支撑:
REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCC66FF;
阻力:
REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN;
VAR1:
=CLOSE>REF(CLOSE,1)ANDCLOSE>REF(CLOSE,2);
VAR2:
=REF(VAR1,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VAR3:
=REF(VAR2,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VAR4:
=REF(VAR3,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VAR5:
=REF(VAR4,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VAR6:
=REF(VAR5,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VAR7:
=REF(VAR6,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VAR8:
=REF(VAR7,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VAR9:
=REF(VAR8,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VARA:
=REF(VAR9,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VARB:
=REF(VARA,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VARC:
=REF(VARB,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VARD:
=CLOSEVARE:
=REF(VARD,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VARF:
=REF(VARE,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VAR10:
=REF(VARF,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VAR11:
=REF(VAR10,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VAR12:
=REF(VAR11,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VAR13:
=REF(VAR12,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VAR14:
=REF(VAR13,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VAR15:
=REF(VAR14,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VAR16:
=REF(VAR15,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VAR17:
=REF(VAR16,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VAR18:
=REF(VAR17,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VAR19:
=REF(VARDORVAREORVARFORVAR10ORV