VAR0:=MIN(COUNT(c,0),9);n:=60;bbc:=count(c>ma(c,5)*1.03,16); VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 主買l:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL )); 主賣l:=IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL )); ma1:=sum(amount,0)/sum(vol,0)/100;買入1:=(主買l-主賣l)*ma1/100; DDX2:=買入1/CAPITAL*100; DDX12:=EMA(DDX2,VAR0)*VAR0; xg1:=(ddx12>=hhv(ddx12,n)); JJ1:=(OPEN+HIGH+LOW+CLOSE)/4;AA:=IF(BETWEEN(C,JJ1,H) OR C=O,VOL,0); BB:=IF(BETWEEN(C,JJ1,L),VOL,0);CC:=IF(AA AND BB,0,VOL/3); 買入2:=(AA+(BB+CC))*ma1/100;DDX3:=買入2/CAPITAL*100; DDX13:=EMA(DDX3,VAR0)*VAR0; xg2:=(ddx13>=hhv(ddx13,n)); xg222:=(ddx13<=llv(ddx13,n)); WJ:=(HIGH+LOW+CLOSE)/3;VD1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE)); VD2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);VD3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW); VD4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));VD5:=VOL/IF(HIGH=LOW,4,HIGH-LOW); VD6:=(VD1*VD5);VD7:=(VD2*VD5);VD8:=(VD3*VD5);VD9:=(VD4*VD5); 買入量:=(VD9+VD8);賣出量:=(VD6+VD7); 買入資金:=買入量*ma1/100;賣出資金:=賣出量*ma1/100; 買入3:=(買入資金-賣出資金);DDX4:=買入3/CAPITAL*100; DDX14:=EMA(DDX4,VAR0)*VAR0; xg3:=(ddx14>=hhv(ddx14,n)); JE8:=VOL;JJ8:=(HIGH+LOW+CLOSE)/3; QJ08:=VOL/IF(HIGH=LOW,4,HIGH-LOW);WP8:=(QJ08*(JJ8-MIN(CLOSE,OPEN))); NP8:=(QJ08*(MIN(OPEN,CLOSE)-LOW));HS8:=VOL/CAPITAL*100; DLX:=(WP8-NP8)/V*HS8; DlX4:=EMA(Dlx,VAR0)*VAR0; xg4:=(dlx4>=hhv(dlx4,n)); xg444:=(dlx4<=llv(dlx4,n)); N:=20;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW); QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW))); QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN)))); QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE)))); QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ))); DDX5:=(((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000))*100000/CAPITAL; DDX15:=EMA(DDX5,VAR0)*VAR0; xg5:=(ddx15>=hhv(ddx15,n)); A1:=IF(O>REF(C,1) AND C>O,VOL,0);A2:=IF(O>REF(C,1) AND C<O AND C>REF(C,1),VOL,0);A3:=IF(O>REF(C,1) AND C<REF(C,1),VOL,0);A4:=IF(O>REF(C,1) AND C=REF(C,1),VOL,0); A5:=IF(O<REF(C,1) AND C>REF(C,1),VOL,0);A6:=IF(O<REF(C,1) AND C=REF(C,1),VOL,0);A7:=IF(O<REF(C,1) AND C>O AND C<REF(C,1),VOL,0);A8:=IF(O<REF(C,1) AND C<O AND C<REF(C,1),VOL,0); A9:=IF(O=REF(C,1) AND C>REF(C,1),VOL,0);A10:=IF(O=REF(C,1) AND C=REF(C,1),VOL,0);A11:=IF(O=REF(C,1) AND C<REF(C,1),VOL,0);A12:=IF(O>REF(C,1) AND C=H AND C=L,VOL,0); A13:=IF(O>REF(C,1) AND C=O,VOL,0);A14:=IF(O<REF(C,1) AND c=l,VOL,0);A15:=IF(O<REF(C,1) AND o=c and c=h and c=l,VOL,0);A16:=IF(O>REF(C,1) AND c=l,VOL,0); 買入6:=(((A1+A5+A9+A12+A13)*1.2+A2*0.8)-((A3+A8+A10+A11+A14+A15+A16)*1.2+A6+A7+A4*0.8))*ma1/100; DDX6:=買入6/CAPITAL*100; DDX16:=EMA(DDX6,VAR0)*VAR0; xg6:=(ddx16>=hhv(ddx16,n)); zz:=(hhv(h,4)+llv(l,4))/2;a:=if(c>zz,vol,0);b:=if(c<zz,vol,0);總0:=(a-b);BBD:=EMA(總0,3)/sum(vol,5)*100; DDX7:=BBD/CAPITAL*100; DDX17:=EMA(DDX7,VAR0)*VAR0; xg7:=(ddx17>=hhv(ddx17,n)); ja:=(c+o+h+l+ref(c,1)+ma1)/6.5;b1:=IF(c>=ja,VOL,0);b2:=IF(c<ja,VOL,0); 買入8:=(b1-b2)*ma1/100; DDX8:=買入8/CAPITAL*100; DDX18:=EMA(DDX8,VAR0)*VAR0; xg8:=(ddx18>=hhv(ddx18,n)); xg888:=(ddx18<=llv(ddx18,n)); 總資金:=ABS(O-L)+ABS(H-L)+ABS(H-C); 拉升資金:=IF(CLOSE>OPEN,(HIGH-LOW),IF(CLOSE<OPEN,(HIGH-OPEN)+(CLOSE-LOW),(C-L))); 打壓資金:=IF(CLOSE>OPEN,(HIGH-CLOSE)+(OPEN-LOW),IF(CLOSE<OPEN,(HIGH-LOW),(H-C))); 主買9:=(拉升資金/總資金)*VOL;主賣9:=(打壓資金/總資金)*VOL; 流通9:=CAPITAL/100;ddx9:=(主買9-主賣9)/流通9; DDX19:=EMA(DDX9,VAR0)*VAR0; xg9:=(ddx19>=hhv(ddx19,n)); 買10:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L)); 買101:=買10/AMOUNT*100;流入億元:=AMOUNT*買101/10000000000; 流出億元:=AMOUNT/100000000-流入億元; 凈流億元:=流入億元-流出億元;ddx10:=凈流億元; DDX110:=EMA(DDX10,VAR0)*VAR0; xg10:=(ddx110>=hhv(ddx110,n)); AAX:=(c-ma(c,9))/ma(c,9)*100; DDX111:=EMA(aax,VAR0)*VAR0; xg101:=(ddx111>=hhv(ddx111,n)); AAa:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 買量:=IF(CLOSE>OPEN,AAa*(HIGH-LOW),IF(CLOSE<OPEN,AAa*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)); 賣量:=IF(CLOSE>OPEN,0-AAa*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AAa*(HIGH-LOW),0-VOL/2)); 大單動(dòng)向:=(買量+賣量)/capital*100; DDX112:=EMA(大單動(dòng)向,VAR0)*VAR0; xg102:=(ddx112>=hhv(ddx112,n)); m:=-1; xg11:=if(XG1,1,m);xg22:=if(XG2,1,m);xg33:=if(XG3,1,m);xg44:=if(XG4,1,m); xg55:=if(XG5,1,m);xg66:=if(XG6,1,m);xg77:=if(XG7,1,m);xg88:=if(XG8,1,m); xg99:=if(XG9,1,m);xg110:=if(XG10,1,m);xg111:=if(XG101,1,m); xg112:=if(XG102,1,m); sdf:=(DDX3+DDX5+DDX6+DDX7+DDX9+DDX10+2*aaX+DDX2+DDX4+DDX8+大單動(dòng)向){,LINETHICK0}; sdfg:=(DDX13+DDX15+DDX16+DDX17+DDX19+DDX110+2*DDX111+DDX12+DDX14+DDX18+DDX112){,LINETHICK0}; ma1:=(ema((sdf+sdfg)*bbc,60)); ma2:=ma(ma1,3); ma3:=ma(ma1,6); {STICKLINE((ma1)>0,0,(ma1),6,0 ),COLORyellow; STICKLINE((ma1)<0,0,(ma1),6,0 ),COLORFFFF00}; SD:=(XG11+XG33+XG55+XG66+XG77+XG99+xg110+xg111+XG22+XG44+xg88+xg112+10); df1:=ema(count(c>=ma(c,34) and c<ma(c,34)*1.06,60)*sd*bbc,60); df2:=ma(df1,3); df3:=ma(df1,6); {STICKLINE((df1)>0,0,(df1),6,0 ),COLOR0022FF; STICKLINE((df1)<0,0,(df1),6,0 ),COLORgreen}; jh:if(ma1>0 and df1>0,ma1+df1,0)+if(ma1<0 and df1<0,ma1+df1,0) +if(ma1<0 and df1>0,ma1+df1,0)+if(ma1>0 and df1<0,ma1+df1,0),COLORred,LINETHICK2; STICKLINE(ma1>0 ,0,ma1,6,0),COLORyellow; STICKLINE(ma1>0 and df1>0,ma1,ma1+df1,6,0),COLOR0022FF; STICKLINE(ma1<0 ,0,ma1,6,0),COLORFFFF00; STICKLINE(ma1<0 and df1<0,ma1,ma1+df1,6,0),COLORgreen; STICKLINE(ma1>0 and df1<0 ,0,df1,6,0),COLORgreen; STICKLINE(ma1<0 and df1>0 ,0,df1,6,0),COLORred; sdfg2:=(DDX12+DDX14+DDX15+DDX16+DDX17+DDX19+DDX110+2*DDX111+DDX112){,LINETHICK0}; ma12:=(ema((sdfg2)*bbc,60)); SD2:=(XG11+XG33+XG55+XG66+XG77+XG99+xg110+xg111+xg112+7); df12:=ema(count(c>=ma(c,34) and c<ma(c,34)*1.06,60)*sd2*bbc,60); jh2:if(ma12>0 and df12>0,ma12+df12,0)+if(ma12<0 and df12<0,ma12+df12,0) +if(ma12<0 and df12>0,ma12+df12,0)+if(ma12>0 and df12<0,ma12+df12,0),COLORyellow,LINETHICK2; xg2:=jh>=0 and jh2>=0 and jh>=ref(jh,1) and jh2>=ref(jh2,1); xg:(ma1>=0 and df1>=0 and ma12>=0 and df12>=0 and jh>=ref(jh,1) and jh2>=ref(jh2,1))*(-100),COLORred,LINETHICK3; xg3:df1>0 and df12>0 and jh>=ref(jh,1) and jh2>=ref(jh2,1); DRAWTEXT(xg3,jh,'0 '); 底:abs(jh-jh2)<1 and jh>=ref(jh,1) and jh2>=ref(jh2,1); DRAWTEXT(底,10,'底 '),COLORred; STICKLINE(ma12>0 ,0,ma12,6,0),COLORyellow; STICKLINE(ma12>0 and df12>0,ma12,ma12+df12,6,0),COLOR0022FF; STICKLINE(ma12<0 ,0,ma12,6,0),COLORFFFF00; STICKLINE(ma12<0 and df12<0,ma12,ma12+df12,6,0),COLORgreen; STICKLINE(ma12>0 and df12<0 ,0,df12,6,0),COLORgreen; STICKLINE(ma12<0 and df12>0 ,0,df12,6,0),COLORred;
|
|