以下是通达信VOL量能增强版副图公式源码
VAR1:=MAX(CLOSE,OPEN);
VAR2:=MIN(CLOSE,OPEN);
VAR3:=1;
VAR4:=IF(VAR3=1,VOL,IF(VAR3=2,AMOUNT/100000000,VOL*10000/FINANCE(7)));
VAR5:=0.1*CONST(HHV(VAR4,240));
VAR6:=MA(VAR4,5);
VAR7:=VAR6<=LLV(VAR6,50) AND VAR4>0 AND BARSCOUNT(VOL)>=50;
STICKLINE(FILTER(VAR7,4),VAR4+1.3*VAR5,VAR4+1.6*VAR5,10,0),COLORBLUE;
VAR8:=VAR4<=LLV(VAR4,100)*1;
VAR9:=COUNT(VAR8,5)>=3 OR VAR6<=LLV(VAR6,100) AND VAR4>0 AND BARSCOUNT(VAR4)>=100;
STICKLINE(FILTER(VAR9,6),VAR4+1.3*VAR5,VAR4+1.6*VAR5,10,0),COLORGRAY;
VAR10:=CLOSE/REF(CLOSE,1)<=0.96 OR CLOSE/OPEN<=0.96 AND VAR4/HHV(VAR4,20)<=0.618;
STICKLINE(VAR10,VAR4+1.5*VAR5,VAR4+1.7*VAR5,1,0),COLORLICYAN;
STICKLINE(VAR10,VAR4+2*VAR5,VAR4+2.6*VAR5,1,0),COLORLICYAN;
MA(VAR4,135),COLORLIBLUE;
洗40:MA(VAR4,40),COLORMAGENTA;
启5:VAR6,COLORWHITE;
VAR11:=CURRBARSCOUNT=1 AND PERIOD=5;
VAR12:=IF(VAR11,VAR4*240/FROMOPEN,VAR4);
STICKLINE(VAR11,VAR12,0,1,(-1)),COLOR00C0C0;
V_:VAR4,VOLSTICK;
亿额:AMOUNT/100000000,NODRAW,COLORBROWN;
VAR13:=IF(FROMOPEN<240,VAR12,VAR4);
几倍:VAR13/REF(VAR4,1),NODRAW,COLORYELLOW;
量比:VAR4/REF(MA(VAR4,5),1),NODRAW,COLORBROWN;
换手:VOL*100/CAPITAL,NODRAW,COLORRED;
倍换手T:SUMBARS(VOL,2*CAPITAL),NODRAW,COLORLIBLUE;
低量T:LOWRANGE(VAR4)+1,NODRAW,COLORGREEN;
高量T:TOPRANGE(VAR4)+1,NODRAW,COLORLIMAGENTA;
获利%:WINNER(CLOSE)*100,NODRAW;
VAR14:=COST(50);
集中度:(WINNER(VAR14*1.1)-WINNER(VAR14*0.9))*100,NODRAW,COLORLIRED;
涨幅:(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,NODRAW,COLORRED;
推升比:涨幅/换手,NODRAW,COLORWHITE;
VAR15:=VAR4>=REF(VAR4,1)*1.89;
VAR16:=VAR4<=REF(VAR4,1)*0.56;
VAR17:=RANGE(VAR4/REF(VAR4,1),0.966,1.034) AND BARSCOUNT(VOL)>=2;
VAR18:=10;
VAR19:=50;
VAR20:=100;
VAR21:=低量T>=VAR18 AND BARSCOUNT(CLOSE)>=VAR18;
VAR22:=低量T>=VAR19 AND BARSCOUNT(CLOSE)>=VAR19;
VAR23:=低量T>=VAR20 AND BARSCOUNT(CLOSE)>=VAR20;
VAR24:=VAR4*0.9;
VAR25:=VAR4*0.8;
VAR26:=VAR4*0.98;
STICKLINE(VAR15,VAR4*0.5,VAR4*0.5,1,0),COLORYELLOW;
STICKLINE(VAR15,0,VAR26,0,0),COLORYELLOW;
STICKLINE(VAR17,0,VAR26,0,0),COLORWHITE;
STICKLINE(VAR21,0,VAR25,1,0),COLOR008800;
STICKLINE(VAR22,0,VAR25,1,0),COLORBLUE;
STICKLINE(VAR23,0,VAR25,1,0),COLORGRAY;
STICKLINE(VAR16,0,VAR4*0.45,1,0),COLORMAGENTA;
STICKLINE(CLOSE<OPEN AND CLOSE>REF(CLOSE,1),0,VAR26,0,0),COLORRED;
VAR27:=1.01;
VAR28:=VOL=REFX(HHV(VAR4,8),3);
VAR29:=VAR28 AND BETWEEN(VAR4/REF(VAR4,1),1.01,5);
VAR30:=VAR4>REF(VAR4,1);
VAR31:=CLOSE/REF(CLOSE,1)>=1.03 OR CLOSE/OPEN>=1.03;
VAR32:=CLOSE>OPEN OR CLOSE>REF(CLOSE,1);
VAR33:=CLOSE>REF(MAX(CLOSE,OPEN),1);
VAR34:=VAR31;
VAR35:=VAR33 AND REFX(VAR17 AND COUNT(CLOSE>OPEN,2)=2,1);
VAR36:=BETWEEN(VAR4/REF(VAR4,1),1.01,4.99) AND VAR32;
VAR37:=VAR30 AND VAR33;
VAR38:=REFX(COUNT(VAR4>=REF(VAR4,1) AND VAR32,2)=2,2);
VAR39:=REFX(COUNT(BETWEEN(CLOSE/REF(CLOSE,1),1.001,1.04),2)=2,2);
VAR40:=VAR29 OR VAR34 OR VAR35 OR VAR36 OR VAR37 OR VAR38 OR VAR39;
VAR41:=FILTER(VAR32 AND VAR40,0);
VAR42:=MIN(CLOSE,OPEN);
VAR43:=LLV(CLOSE,3)>=REF(VAR42,3);
VAR44:=1*(VAR41 AND REFX(VAR43,3));
VAR45:=EMA(VAR4,3)<=REF(VAR4,3)*1.03;
VAR46:=(EMA(VAR4,3)-REF(VAR4,3))/REF(VAR4,3)<=(EMA(CLOSE,3)-REF(CLOSE,3))/REF(CLOSE,3);
VAR47:=VAR45 OR VAR46;
VAR48:=REFX(MIN(EMA(CLOSE,3),CLOSE),3)>=CLOSE;
VAR49:=1*(VAR44 AND REFX(VAR47,3) AND VAR48);
VAR50:=COUNT(VAR4<=REF(VAR4,1),3)=3;
VAR51:=COUNT(CLOSE>=REF(CLOSE,1),3)=3;
VAR52:=COUNT(CLOSE>OPEN,4)=4;
VAR53:=VAR50 AND VAR51 AND VAR52;
VAR54:=REFX(VAR53,3);
VAR55:=VAR2>REF(VAR1,1);
VAR56:=1*(VAR32 AND REFX(VAR49,1) AND MAX(CLOSE,OPEN)<REFX(OPEN,1));
VAR57:=VAR4+0.5*VAR5;
VAR58:=VAR57+0.4*VAR5;
VAR59:=VAR57+0.2*VAR5;
VAR60:=VAR57+0.1*VAR5;
VAR61:=22;
STICKLINE(VAR44 AND REF(VAR44=0,1),VAR57,VAR58,1,0),COLORGRAY;
STICKLINE(VAR49 AND REF(VAR49=0,1),VAR57,VAR59,1,0),COLORYELLOW;
STICKLINE(VAR54,0.3*VAR4,0.7*VAR4,1,0),COLORRED;
STICKLINE(VAR56 AND REF(VAR56=0,1),VAR57,VAR60,1,0),COLORMAGENTA;
VAR62:=0.03;
VAR63:=RANGE(VAR4/REF(VAR4,2),1-VAR62,1+VAR62) AND REF(VAR4,1)<VAR4;
VAR64:=RANGE(VAR4/REF(VAR4,3),1-VAR62,1+VAR62) AND REF(HHV(VAR4,2),1)<VAR4;
VAR65:=RANGE(VAR4/REF(VAR4,4),1-VAR62,1+VAR62) AND REF(HHV(VAR4,3),1)<VAR4;
VAR66:=RANGE(VAR4/REF(VAR4,5),1-VAR62,1+VAR62) AND REF(HHV(VAR4,4),1)<VAR4;
VAR67:=RANGE(VAR4/REF(VAR4,6),1-VAR62,1+VAR62) AND REF(HHV(VAR4,5),1)<VAR4;
VAR68:=RANGE(VAR4/REF(VAR4,7),1-VAR62,1+VAR62) AND REF(HHV(VAR4,6),1)<VAR4;
VAR69:=RANGE(VAR4/REF(VAR4,8),1-VAR62,1+VAR62) AND REF(HHV(VAR4,7),1)<VAR4;
VAR70:=RANGE(VAR4/REF(VAR4,9),1-VAR62,1+VAR62) AND REF(HHV(VAR4,8),1)<VAR4;
VAR71:=RANGE(VAR4/REF(VAR4,9),1-VAR62,1+VAR62) AND REF(HHV(VAR4,9),1)<VAR4;
VAR72:=RANGE(VAR4/REF(VAR4,9),1-VAR62,1+VAR62) AND REF(HHV(VAR4,10),1)<VAR4;
VAR73:=RANGE(VAR4/REF(VAR4,9),1-VAR62,1+VAR62) AND REF(HHV(VAR4,11),1)<VAR4;
VAR74:=RANGE(VAR4/REF(VAR4,9),1-VAR62,1+VAR62) AND REF(HHV(VAR4,12),1)<VAR4;
VAR75:=VAR63 OR VAR64 OR VAR65 OR VAR66 OR VAR67 OR VAR68 OR VAR69 OR VAR70 OR VAR71 OR VAR72 OR VAR73 OR VAR74;
STICKLINE(VAR75,VAR4*0.97,VAR26,1,0),COLORWHITE;
评论(0)