以下是超爽好用通达信指标源码和使用说明
超爽好用通达信抄底逃顶指标源码:
N:=14;M:=6;A:=-5;
TYP:=(H+L+C)/3;
CCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
BIAS:=(CLOSE-MA(CLOSE,M))/MA(CLOSE,M)*100;
BIASMA:=MA(BIAS,M);
AA:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
XG:EXIST((CCI -100ANDAA 30ANDCROSS(BIAS,BIASMA)ANDEXIST((BIAS A),2)),5);
抄底逃顶指标:=AMOUNT/VOL/100;
M5:MA(抄底逃顶指标,5),COLORFF00FF,LINETHICK1;
大集合:MA(抄底逃顶指标,13),COLOR00FFFF,LINETHICK1;
通达信:MA(抄底逃顶指标,21),COLORRED,LINETHICK1;
VVDDD1:MA(抄底逃顶指标,34),COLORFFFFFF,LINETHICK2;
STICKLINE(C O,C,O,3.2,1),COLORFFF333;
STICKLINE(C O,C,O,3.2,1),COLORRED;
STICKLINE(抄底逃顶指标 VVDDD1ANDVVDDD1 REF(VVDDD1,1)AND抄底逃顶指标 大集合,C,O,3.2,0),COLORRED;
STICKLINE(抄底逃顶指标 VVDDD1ANDVVDDD1 REF(VVDDD1,1)AND抄底逃顶指标 大集合ANDC O,C,O,3.2,1),COLORDDDDDD;
STICKLINE(抄底逃顶指标 =VVDDD1ANDVVDDD1 REF(VVDDD1,1)ANDC =O,C,O,3.2,1),COLOR00FFFF;
STICKLINE(抄底逃顶指标 =VVDDD1ANDVVDDD1 REF(VVDDD1,1),C,O,3.2,0),COLOR00FFFF;
STICKLINE(抄底逃顶指标 =VVDDD1ANDVVDDD1 REF(VVDDD1,1)ANDC =O,C,O,3.2,1),COLOR00FFFF;
STICKLINE(抄底逃顶指标 =VVDDD1ANDVVDDD1 =REF(VVDDD1,1),C,O,3.2,1),COLORFF0000;
STICKLINE(抄底逃顶指标 =VVDDD1ANDVVDDD1 =REF(VVDDD1,1)ANDC =O,C,O,3.2,0),COLORFF0000;
VVDDD1,COLORFFFFFF,LINETHICK2;
IF(VVDDD1 REF(VVDDD1,1),VVDDD1,DRAWNULL),COLORFF0000,LINETHICK2;
通达信,COLORRED;
IF(通达信 REF(通达信,1),通达信,DRAWNULL),COLOR00FF00,LINETHICK1;
大集合,COLOR00FFFF;
IF(大集合 REF(大集合,1),大集合,DRAWNULL),COLORFFF333,LINETHICK1;
M5,COLORFF00FF;
IF(M5 REF(M5,1),M5,DRAWNULL),COLOR009880,LINETHICK1;
VVDDD2:=SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2.5,1);
VVDDD3:=VVDDD2 REF(VVDDD2,1)ANDCROSS(VVDDD2,SMA(VVDDD2,2.5,1))ANDVVDDD2
DRAWICON(VVDDD3,L*0.96,13);
VVDDD4:=REF(COUNT("KDJ.K" REF("KDJ.K",1),5) =5,1)ANDCOUNT("KDJ.K" 30,5) =2
ANDCOUNT("KDJ.J" 0,3) 0ANDCROSS("KDJ.J",0);
DRAWTEXT(VVDDD4ANDNOT((抄底逃顶指标 VVDDD1ORVVDDD1 REF(VVDDD1,1))),L*0.98,'')
,COLOR00FFFF;
DRAWTEXT(VVDDD4AND(抄底逃顶指标 VVDDD1ORVVDDD1 REF(VVDDD1,1)),L*0.98,''),COLORRED;
VVDDD6:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D")ANDREF("KDJ.K",1) 35,1));
VVDDD5:=C REF(C,VVDDD6+1)*1.1ANDREF("KDJ.K",1) 60AND(VVDDD6+1) 25AND(VVDDD6+1) 5AND"KDJ.K" REF("KDJ.K",VVDDD6+1)ANDCROSS("KDJ.K","KDJ.D");
DRAWTEXT(VVDDD5ANDNOT((抄底逃顶指标 VVDDD1ORVVDDD1 REF(VVDDD1,1))),L*0.98,'')
,COLOR5599FF;
DRAWTEXT(VVDDD5AND(抄底逃顶指标 VVDDD1ORVVDDD1 REF(VVDDD1,1)),L*0.98,''),COLORFF00FF;
DRAWICON(CROSS("KDJ.J",0)AND(抄底逃顶指标 VVDDD1ORVVDDD1 REF(VVDDD1,1)),L*0.97,1);
VVDDD7:=CONST(HHV(H,75));
LL0:=CONST(LLV(L,75));
MM0:=CONST((VVDDD7+LL0)/2);
VVDDD8:=CONST(IF(CONST(C) =MM0,LL0-(VVDDD7-LL0)*0.2,VVDDD7+(VVDDD7-LL0)*0.2));
HH1:=IF(CONST(C) MM0,VVDDD7*1.01,VVDDD8);
LL1:=IF(CONST(C) =MM0,LL0*0.99,VVDDD8);
HL1:=(HH1+LL1)/2,COLORFFFFFF;
STICKLINE("MACD.MACD" 0,"MACD.MACD"+HL1,HL1,2.5,1),COLORDD55CC;
STICKLINE("MACD.MACD" 0AND"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" 0AND"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" 0AND"MACD.MACD" 0,HL1*0.975,DRAWNULL),COLOR00FFFF,CIRCLEDOT;
IF("MACD.DIF" 0AND"MACD.MACD" 0,HL1*0.975,DRAWNULL),COLORFF0080,CIRCLEDOT;
QW1:=(HIGH+LOW+CLOSE*2)/4;
QW3:=Ema(QW1,10);
QW4:=stD(QW1,10);
QW5:=(QW1-QW3)*100/QW4;
QW6:=EMA(QW5,5);
涨:EMA(QW6,10)+100/2-5,LINETHICK2,COLORYELLOW;
跌:EMA(涨,4),LINETHICK2,COLORRED;
获利了结:IF(涨 160,120,160),COLORFFFF00,LINETHICK2;
出局:IF(涨 180,140,190),COLORYELLOW,LINETHICK2;
观注:IF(crOSS(涨,跌)AND涨 90AND涨 0,30,-80),COLORE500E5;
介入:IF(CROSS(涨,跌)AND涨 -60,60,-90),COLORYELLOW,LINETHICK2;
预警:IF(CROSS(涨,跌)AND涨 -7,30,-10),COLORGREEN,CIRCLEDOT;
DRAWTEXT(涨 180ANDREF(涨,1) 180,135,'出局');
DRAWTEXT(涨 160ANDREF(涨,1) 160,110,'逐步'),COLORYELLOW;
DRAWTEXT(涨 160ANDREF(涨,1) 160,80,'获利'),COLORYELLOW;
DRAWTEXT(涨 160ANDREF(涨,1) 160,50,'了结'),COLORYELLOW;
DRAWTEXT(CROSS(涨,跌)AND涨 -7,40,'预警'),COLORGREEN;
DRAWTEXT(CROSS(涨,跌)AND涨 90AND涨 0,-30,'观注'),COLORFFFF00;
DRAWTEXT(CROSS(涨,跌)AND涨 -60,80,'建仓'),COLORFFFFFF;
超爽好用通达信抄底逃顶指标截图