通達(dá)信主圖Z1:
{M臺(tái)+本+MK+口:
量能平臺(tái)+估測(cè)量+量能K線+缺口提示
注:以下VV為通達(dá)信估測(cè)量(估測(cè)周期:周、3日、日、10分鐘、60、30、15、5分鐘),以分鐘為計(jì)算單位的動(dòng)態(tài)估測(cè)量(個(gè)股為換手率,指數(shù)為成交金額)}
ZZ:=PERIOD<5 OR PERIOD=8;
{缺口標(biāo)記}
DRAWBAND(DYNAINFO(4),RGB(38,0,0),DYNAINFO(3),RGB(0,0,38));{當(dāng)日開(kāi)盤跳高或跳低標(biāo)記}
VA1:=REF(HIGH,1);
VA2:=REF(LOW,1);
VA3:=LOW>VA1;
VA4:=HIGH<VA2;
STICKLINE(VA3,LOW,VA1,6,1),COLORYELLOW,LINETHICK3;
STICKLINE(VA4,HIGH,VA2,6,1),COLORWHITE,LINETHICK3;
{量估算, 其中周、3日、當(dāng)日、以及當(dāng)下60分鐘、30分鐘、15分鐘、10分鐘、5分鐘為以分鐘為單位的動(dòng)態(tài)估測(cè)量}
VV1:=IF(CLOSE<150,100*VOL/(FINANCE(7)/100),IF(PERIOD=8,VOL/10000,AMOUNT/100000000));
VV2:=IF(MOD(FROMOPEN,60)>0,MOD(FROMOPEN,60),60);
VV3:=IF(MOD(FROMOPEN,30)>0,MOD(FROMOPEN,30),30);
VV4:=IF(MOD(FROMOPEN,15)>0,MOD(FROMOPEN,15),15);
VV7B:=IF(MOD(FROMOPEN,5)>0,MOD(FROMOPEN,5),5);
VV8B:=IF(MOD(FROMOPEN,10)>0,MOD(FROMOPEN,10),10);
VV6:=IF(PERIOD=5,240/FROMOPEN,IF(PERIOD=4,60/VV2,IF(PERIOD=3,30/VV3,IF(PERIOD=2,15/VV4,IF(PERIOD=1,5/VV7B,IF(PERIOD=8,10/VV8B,1))))));
VV9:=ABS(WEEKDAY-REF(WEEKDAY,1));
VV10:=IF(MOD(VV9,3)>0,MOD(VV9,3),3);
VV11:=IF(WEEKDAY=4 OR WEEKDAY=5,3/VV10,1);
VV12:=IF(REF(WEEKDAY,1)=5,IF(WEEKDAY=1,3,IF(WEEKDAY=2,3/2,1)),1);
VV13:=IF(REF(WEEKDAY,1)=4,IF(WEEKDAY=5,3,IF(WEEKDAY=1,3/2,1)),VV12);
VV15:=IF((REF(WEEKDAY,1)=1 AND NOT(WEEKDAY=5)) OR REF(WEEKDAY,1)=2,3/VV10,IF(REF(WEEKDAY,1)=3,VV11,VV13));
VV:=VV1*IF(CURRBARSCOUNT=1,IF(PERIOD<=5 OR PERIOD=8,VV6,IF(PERIOD=6,IF(WEEKDAY=1,5*VV6,IF(WEEKDAY=2,5/2,IF(WEEKDAY=3,5/3,IF(WEEKDAY=4,5/4,1)))),IF(PERIOD=9,VV15,1))),1),COLORGRAY,STICK,LINETHICK1;
{能量K線)
K:=CLOSE;
K2:=0.1;
K3:=VV/REF(VV,1);
VAR1:=K3>=1+K2 AND C>=O;
VAR1B:=RANGE(K3,1,1+K2) AND C>=O;
VAR2:=K3<=1-K2 AND C>=O;
VAR2B:=RANGE(K3,1-K2,1) AND C>=O;
VAR3:=K3<=1-K2 AND C<O;
VAR3B:=RANGE(K3,1-K2,1) AND C<O;
VAR4:=K3>=1+K2 AND C<O;
VAR4B:=RANGE(K3,1,1+K2) AND C<O;
STICKLINE(VAR1,K,O,3,0),COLORRED,LINETHICK2;
STICKLINE(VAR1B,K,O,3,1),COLORRED,LINETHICK2;
STICKLINE(VAR2,K,O,3,0),COLORFF00FF,LINETHICK2;
STICKLINE(VAR2B,K,O,3,1),COLORFF00FF,LINETHICK2;
STICKLINE(VAR3,K,O,3,0),COLORGREEN,LINETHICK2;
STICKLINE(VAR3B,K,O,3,1),COLORGREEN,LINETHICK2;
STICKLINE(VAR4,K,O,3,0),COLORGRAY,LINETHICK2;
STICKLINE(VAR4B,K,O,3,1),COLORGRAY,LINETHICK2;
STICKLINE(VAR1 OR VAR2,C,H,0.18,0),COLORRED;
STICKLINE(VAR1 OR VAR2,L,O,0.18,0),COLORRED;
STICKLINE(VAR3 OR VAR4,O,H,0.18,0),COLORGREEN;
STICKLINE(VAR3 OR VAR4,L,C,0.18,0),COLORGREEN;
{能量平臺(tái)及相應(yīng)成本線}
VH20:=VV=HHV(VV,25);
NVH20:=BARSLAST(VH20)+1;
VVV:=NVH20<=31 AND NVH20>1;
VVV3:=IF(CLOSE<150,AMOUNT/(100*VOL),(HIGH+LOW+OPEN+CLOSE)/4);
VVV4:=BACKSET(VVV,NVH20);
量臺(tái)H:REF(VVV3,NVH20-1),COLOR33CCFF,LINETHICK0;
成本H:IF(CLOSE<150,SUM(AMOUNT,NVH20)/(100*SUM(VOL,NVH20)),MA((HIGH+LOW+OPEN+CLOSE)/4,NVH20)),COLORBROWN,LINETHICK1;
STICKLINE(VVV4>0,REF(VVV3,NVH20-1),REF(VVV3,NVH20-1),3,0),COLOR33CCFF,LINETHICK2;
STICKLINE(VH20>0,IF(ZZ,0.9999,0.999)*VVV3,IF(ZZ,1.0001,1.001)*VVV3,5,0),COLOR33CCFF,LINETHICK5;
BVH20:=VV=HHV(VV,16);
BNVH20:=BARSLAST(BVH20)+1;
BVVV:=BNVH20<=31 AND BNVH20>1;
BVVV2:=BACKSET(BVVV,BNVH20);
STICKLINE(BVVV2>0,REF(VVV3,BNVH20-1),REF(VVV3,BNVH20-1),3,0),COLORRED,LINETHICK4;
成本H2:IF(CLOSE<150,SUM(AMOUNT,BNVH20)/(100*SUM(VOL,BNVH20)),MA((HIGH+LOW+OPEN+CLOSE)/4,BNVH20)),COLORBROWN,LINETHICK1;
VL20:=VV=LLV(VV,10);
NVL20:=BARSLAST(VL20)+1;
VVL:=NVL20<=13 AND NVL20>1;
VVL2:=BACKSET(VVL,NVL20);
量臺(tái)L:REF(VVV3,NVL20-1),COLORBLUE,LINETHICK0;
成本L:IF(CLOSE<150,SUM(AMOUNT,NVL20)/(100*SUM(VOL,NVL20)),MA((HIGH+LOW+OPEN+CLOSE)/4,NVL20)),COLORCYAN,LINETHICK1;
STICKLINE(VVL2>0,REF(VVV3,NVL20-1),REF(VVV3,NVL20-1),3,0),COLORBLUE,LINETHICK2;
STICKLINE(VL20>0,IF(ZZ,0.9999,0.999)*VVV3,IF(ZZ,1.0001,1.001)*VVV3,5,0),COLORBLUE,LINETHICK5;
BVL20:=VV=LLV(VV,16);
BNVL20:=BARSLAST(BVL20)+1;
BVVL:=BNVL20<=13 AND BNVL20>1;
BVVL2:=BACKSET(BVVL,BNVL20);
STICKLINE(BVVL2>0,REF(VVV3,BNVL20-1),REF(VVV3,BNVL20-1),3,0),COLORCYAN,LINETHICK4;
成本L2:IF(CLOSE<150,SUM(AMOUNT,BNVL20)/(100*SUM(VOL,BNVL20)),MA((HIGH+LOW+OPEN+CLOSE)/4,BNVL20)),COLOR33CCFF,LINETHICK1;
{注:量能彩色K線中的量,是指成交金額(或,個(gè)股也可指換手率);
量能彩色K線原理,以4種顏色,分別搭配以實(shí)心、空心K線,表示以下8種含義:
實(shí)心大紅K線:放量上漲,且比上一根K線增量超過(guò)10%;
空心大紅K線:放量上漲,但比上一根K線增量小于10%;
實(shí)心粉紅K線:縮量上漲,且比上一根K線縮量超過(guò)-10%;
空心粉紅K線:縮量上漲,但比上一根K線縮量少于-10%;
實(shí)心大黑K線:放量下跌,且比上一根K線增量超過(guò)10%;
空心大黑K線:放量下跌,但比上一根K線增量小于10%;
實(shí)心大綠K線:縮量下跌,且比上一根K線縮量超過(guò)-10%;
空心大綠K線:縮量下跌,但比上一根K線縮量少于-10%; }
--------------------
通達(dá)信副圖1:
{虛擬成交金額macd,
注:當(dāng)天(日k線及以下)成交金額為以分鐘為單位的動(dòng)態(tài)估測(cè)值}
N1:=1;
N2:=135;
N3:=3;
N4:=10;
N5:=5;
N6:=21;
N7:=35;
VV1:=AMOUNT*IF(CLOSE<150,1/1000000,1/100000000);
VV2:=IF(FROMOPEN<=60,FROMOPEN,IF(FROMOPEN<=120,FROMOPEN-60,IF(FROMOPEN<=180,FROMOPEN-120,IF(FROMOPEN<=240,FROMOPEN-180,FROMOPEN))));
VV3:=IF(FROMOPEN<=30,FROMOPEN,IF(FROMOPEN<=60,FROMOPEN-30,IF(FROMOPEN<=90,FROMOPEN-60,IF(FROMOPEN<=120,FROMOPEN-90,IF(FROMOPEN<=150,FROMOPEN-120,IF(FROMOPEN<=180,FROMOPEN-150,IF(FROMOPEN<=210,FROMOPEN-180,IF(FROMOPEN<=240,FROMOPEN-210,FROMOPEN))))))));
VV4:=IF(FROMOPEN<=15,FROMOPEN,IF(FROMOPEN<=30,FROMOPEN-15,IF(FROMOPEN<=45,FROMOPEN-30,IF(FROMOPEN<=60,FROMOPEN-45,IF(FROMOPEN<=75,FROMOPEN-60,IF(FROMOPEN<=90,FROMOPEN-75,IF(FROMOPEN<=105,FROMOPEN-90,IF(FROMOPEN<=120,FROMOPEN-105,IF(FROMOPEN<=135,FROMOPEN-120,IF(FROMOPEN<=150,FROMOPEN-135,IF(FROMOPEN<=165,FROMOPEN-150,IF(FROMOPEN<=180,FROMOPEN-165,IF(FROMOPEN<=195,FROMOPEN-180,IF(FROMOPEN<=210,FROMOPEN-195,IF(FROMOPEN<=225,FROMOPEN-210,IF(FROMOPEN<=240,FROMOPEN-225,FROMOPEN))))))))))))))));
VV:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VV1*240/FROMOPEN,IF(CURRBARSCOUNT=1 AND
PERIOD=4,VV1*IF(FROMOPEN<=60,60,60)/(VV2),IF(CURRBARSCOUNT=1 AND PERIOD=3,VV1*IF(FROMOPEN<=30,30,30)/(VV3),IF(CURRBARSCOUNT=1 AND PERIOD=2,VV1*IF(FROMOPEN<=15,15,15)/(VV4),VV1))));
{以上當(dāng)日、以及當(dāng)下60分鐘、30分鐘、15分鐘成交金額為以分鐘為單位的動(dòng)態(tài)估測(cè)值}
DIF:MA(VV,N1)-MA(VV,N2),COLORGRAY;
DIF2:MA(VV,N3)-MA(VV,N4),COLORBROWN,LINETHICK2;
DIF3:MA(VV,N5)-MA(VV,N6),COLOR33CCFF;
DIF4:MA(VV,N7)-MA(VV,N2),COLORBLUE;
DRAWTEXT(CROSS(DIF<REF(DIF,1) AND REF(DIF,1)<REF(DIF,2) AND DIF2<REF(DIF2,1),0.5),DIF,'警'),COLORGREEN;
QRD:DIF2-REF(DIF2,1),COLORSTICK;