以下是大智慧自创指标源码
大智慧自创成交量指标源码:
UME:VOL,VOLstICK;
DRAWLINE(V =HHV(V,30),V,V =LLV(V,10),HHV(V,6),1),COLORFFCCCC;
AB:DRAWLINE(V =HHV(V,10),V,V =LLV(V,3),HHV(V,3),1),COLORYELLOW;
DRAWTEXT(crOSS(C,AB),C+5000,'B'),COLORGRAY;
{DRAWICON(CROSS(C,AB),L*0.98,7);}
市盈率:DYNAINFO(39);
换手:VOL/CAPITAL*100LINETHICK0,NODRAW;
流通【亿】:CAPITAL/1000000,LINETHICK0;
ma5:=MA(V,5),COLORWHITE,LINETHICK0;
MA10:=MA(V,10),COLORYELLOW,LINETHICK0;
MA30:=MA(V,30),COLORMAGENTA,LINETHICK0;
VAR7:=(HIGH-LOW);
VAR8:=Abs((OPEN-CLOSE));
VAR9:=(HIGH-IF((CLOSE OPEN),CLOSE,OPEN));
VAR10:=(IF((CLOSE OPEN),OPEN,CLOSE)-LOW);
VAR11:=((VAR8/VAR7)*VOL);
VAR12:=((VAR9/VAR7)*VOL);
VAR13:=((VAR10/VAR7)*VOL);
VAR14:=IF(((VOL/CAPITAL) 0.001),1,EXP(ABS(LOG(((VOL/CAPITAL)*100)))));
VARA:=(((CLOSE-MA(CLOSE,5))/MA(CLOSE,5))*100);
VARB:=(((MA(CLOSE,5) MA(CLOSE,10))AND(MA(CLOSE,10) MA(CLOSE,30)))AND(MA(CLOSE,30) MA(CLOSE,60)));
VARC:=((MA(CLOSE,5) MA(CLOSE,10))AND(MA(CLOSE,10) MA(CLOSE,30)));
VARD:=REF(CLOSE,1);
DRAWTEXT(((VAR14 2)AND(VOL (MA(VOL,5)/2))),V-15000,'◆'),COLORFB2DFB;
DRAWTEXT(((VAR14 2)AND(VOL (MA(VOL,5)/2))),V+59000,'地'),COLORFB2DFB;
:=((VOL/CAPITAL)*100);
DRAWTEXT((((VOL/REF((SUM(VOL,5)/5),1)) =2)AND(换手率 1)),(V+55000),'变'),COLORFFFFCC;
量:=IF((CLOSE 200),(VOL/1000000),(VOL/100)),LINETHICK0;
振幅:=(((HIGH-LOW)/LOW)*100);
DRAWTEXT(VAR12 VAR11ANDVARA 2ANDVAR12 VAR13ANDCLOSE MA(CLOSE,5)ANDCLOSE MA(CLOSE,30)ANDHIGH MA(CLOSE,60)ANDVOL MA(VOL,5)ANDVAR12 =MA(VOL,5),V+5000,'高'),COLORGREEN;
DRAWTEXT(VAR13 VAR11ANDVAR13 VAR12ANDVARA -2ANDCLOSE MA(CLOSE,30)ANDVAR13 MA(VOL,5)/2ANDMA(VOL,5) MA(VOL,10),V+5000,'低'),COLORYELLOW;
LC1:=REF(CLOSE,1);
1:=SMA(MAX(CLOSE-LC1,0),6,1)/SMA(ABS(CLOSE-LC1),6,1)*100;
抓大牛:CROSS(RSI1,11);
DRAWTEXT(抓大牛,V+55000,'抓'),COLORRED;
EMA13:=EMA(C,13),COLORFF8080;
DRAWTEXT(CROSS(HIGH,EMA13),V+5000,'底'),COLORYELLOW;
MA5:=MA(VOL,5);
MA80:=MA(VOL,80);
中间价:=(H+L)/2;
C大于中间价:=C =中间价;
C小于中间价:=C
0.56,COLOR8C7853,DOTLINE;
0.50,COLOR8C7853,DOTLINE;
0.44,COLOR8C7853,DOTLINE;
红VOL均数:COUNT(C大于中间价,统计周期)/统计周期,COLOR000ABC,LINETHICK2;
蓝VOL均数:COUNT(C小于中间价,统计周期)/统计周期,COLORCYAN,LINETHICK2;
{设统计周期为55}
虚拟成交:=IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,虚拟成交,0,-1,-1),COLORC0C0C0;
量高:HHV(V,120)*0.382,COLORCYAN,DOTLINE;
:V/REF(V,1),NODRAW,COLOR0000FF;
STICKLINE(IF(V REF(HHV(V,239),1),0.99,1) 1,V,0,-1,1),COLORDD00DD;
STICKLINE(IF(V REF(HHV(V,239),1),0.99,1) 1ANDO C,V,0,-1,0),COLORDD00DD;
STICKLINE(IF(V REF(LLV(V,119),1),0.99,1) 1,V,0,-1,0),COLOR00DD00;
STICKLINE(IF(V REF(LLV(V,239),1),0.99,1) 1,V,0,-1,0),COLORDD0000;
STICKLINE(V/REF(V,1) 2,0,V/2,2,0),COLORDDDDDD;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA),STICK;
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;
STICKLINE(DIF =DEA,0,VOL,3,-1),COLORRED;
STICKLINE(DIF =DEA,0,VOL,3,-1),COLORGREEN;
STICKLINE(J D,VOL/2,VOL,3,-1),COLORRED;
STICKLINE(J D,VOL/2,VOL,3,-1),COLORGREEN;
{STICKLINE(((MACD =0)AND(MACD REF(MACD,1))),0,VOL/8,2,0),COLORMAGENTA;
STICKLINE((MACD =0)ANDMACD REF(MACD,1),0,VOL/8,2,0),COLORRED;}
0.COLORLIBLUE;
MAC5:=SUM(C*V,5)/SUM(V,5);
红色持股:=C MAC5ANDMACD REF(MACD,1)ANDDIF =REF(DIF,1)ANDJ REF(J,1)ANDDIF DEAANDJ D,COLOR0000CC;
STICKLINE(红色持股,0,VOL/4,2.8,0),COLORYELLOW;
STICKLINE(红色持股,0,VOL/4,1.5,0),COLOR11BBBB;
STICKLINE(红色持股,0,VOL/4,0.8,0),COLOR11DDDD;
STICKLINE(红色持股,0,VOL/4,0.1,0),COLOR11FFFF;
大智慧自创成交量指标截图