分析家9抢筹K线主图源码公式 :
input:SW(43,7,111),BW(79,33,180);9抢筹K线
QXE:=((((((2*O)+H)+L)+(3*C))/7));
高:HHV(QXE,1);
高十:HHV(QXE,10),linethick1,Color697989;
高二十:HHV(QXE,20),COLORRED;
高百二十:HHV(QXE,120),COLORff9900,LINETHICK1;
CJ:=(H+L+O+C)/4;
DN:=INTPART(276/POW(DATATYPE+0.3,2)-1.1);
短筹:=forcast(PWINNER(SW,BW*CJ/100)*50*pow(1.03,dN-DATATYPE),3*dn);
短筹码一:=DMA((3*HIGH+LOW+OPEN+AMOUNT+2*CLOSE)/7,VOL/(SUM(AMOUNT+短筹, 1)/(AMOUNT/VOL/100)/100));
短筹码五:=DMA((3*HIGH+LOW+OPEN+AMOUNT+2*CLOSE)/7,VOL/(SUM(AMOUNT+短筹, 3)/(AMOUNT/VOL/100)/100));
Q15:=EMA(hhv(短筹码一,10),10);
叉筹:=CROSS(短筹码五,Q15);
{VUR0:((((((2*O)+H)+L)+(3*C))/7));
高:EMA((3*CLOSE+LOW+OPEN+HIGH)/6,1);
筹码一:DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT, 1)/(AMOUNT/VOL/100)/100));}
DIFF:=EMA(CLOSE,6)-EMA(CLOSE,12);
DEA :=EMA(DIFF, 1)*0.0068;
DEAA:=EMA(DIFF, 4)*5.28;
DEAD:=EMA(DIFF,2.8)*4.68;
DEAC:=EMA(DIFF, 1)*5.0;
MACD:=4.8*(DIFF-DEA);
MAC:=2.8*DIFF-2*DEAA;
猫:=(MACD>ref(DEA>1.3,1)and(MACD>ref(MACD,1)))*MACD*8;
猫八:=猫>0;
A6:EMA((EMA(HIGH+LOW,10)+HHV(C-LOW,20))/2,1);
A7:=EMA((EMA(HIGH+LOW,10)+HHV(C-LOW,20) AND 猫>0)/2,1);
MA168:=MA(CLOSE+A7,1);
tj168:=c>=MA168;
tjA998:=c< MA168;
STICKLINE(tjA998,o,c,8, 0),Color2B2BFF;{十压突百黃色K}
STICKLINE(tjA998,o,c,7, 0),Color5959FF;
STICKLINE(tjA998,o,c,6, 0),Color6F6FFF;
STICKLINE(tjA998,o,c,5, 0),Color8080FF;
STICKLINE(tjA998,o,c,4, 0),Color8E8EFF;
STICKLINE(tjA998,o,c,3, 0),Color9F9FFF;
STICKLINE(tjA998,o,c,2, 0),ColorB3B3FF;
STICKLINE(tjA998,o,c,1, 0),ColorC1C1FF;
STICKLINE(tjA998,o,c,0, 0),Color6F6FFF;
STICKLINE(tjA998,H,L,0.5,0),ColorD0D0FF;
MA169:=MA(CLOSE+叉筹,1);
tj169:=c>=MA169;
tjA999:=c< MA169;
STICKLINE(tjA998,o,c,8, 0),Color2B2BFF;{叉筹}
STICKLINE(tjA999,o,c,7, 0),Color008CC1;
STICKLINE(tjA999,o,c,6, 0),Color009AD5;
STICKLINE(tjA999,o,c,5, 0),Color2B2BFF;
STICKLINE(tjA999,o,c,4, 0),Color00A5E3;
STICKLINE(tjA999,o,c,3, 0),Color3C3CFF;
STICKLINE(tjA999,o,c,2, 0),Color00B1F4;
STICKLINE(tjA999,o,c,1, 0),Color4A4AFF;
STICKLINE(tjA999,o,c,0, 0),Color00DBDB;
STICKLINE(tjA999,H,L,0.5,0),Color00F9F9; |