量价系统组合,判读最佳的买入点(通达信公式 主图 源码 测试图)
{量价系统组合}MA5:EMA(CLOSE,5),COLORWHITE; MA10:EMA(CLOSE,10),COLORYELLOW; MA20:EMA(CLOSE,20),COLORFF00FF; MA40:EMA(CLOSE,40),COLOR00FF00; MA60:EMA(C,60),COLOR888888; MA250:EMA(C,250),COLORFFCC66; 月价托:=MA5>MA20 AND MA5>MA10 AND CROSS(MA10,MA20); 季价托:=MA20>MA60 AND MA20>MA40 AND CROSS(MA40,MA60); 短长价托:=MA5>MA60 AND MA5>MA10 AND CROSS(MA10,MA60); DRAWICON(月价托,L-0.10,3); DRAWICON(季价托,L-0.10,4); DRAWICON(短长价托,L-0.10,5); VOL5:=MA(VOL,5); VOL10:=MA(VOL,10); VOL20:=MA(VOL,20); 量托:=VOL5>=VOL20 AND CROSS(VOL10,VOL20) AND REF(VOL10,1)<REF(VOL20,1); DRAWICON(量托,L-0.10,6); AA:=BARSLAST(MA40>MA60 AND (MA20=MA40 OR MA20>MA40)); BB:=REF(COUNT(C<MA60,AA)=AA,1); CC:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3; 芙蓉出水:=BB AND CC; DRAWICON(芙蓉出水,L-0.10,9);STICKLINE(C>REF(C,1),H,L,0,1),COLOR0000FF;STICKLINE(C>REF(C,1),O,C,3.2,0),COLOR000055;STICKLINE(C>REF(C,1),O,C,2.7,0),COLOR000077; STICKLINE(C>REF(C,1),O,C,2.1,0),COLOR000099;STICKLINE(C>REF(C,1),O,C,1.5,0),COLOR0000BB;STICKLINE(C>REF(C,1),O,C,0.9,0),COLOR0000DD;STICKLINE(C<REF(C,1),O,C,0.3,0),COLOR0000FF;STICKLINE(C<REF(C,1),H,L,0,1),COLORFFFF00;STICKLINE(C<REF(C,1),O,C,3.2,0),COLOR990000;STICKLINE(C<REF(C,1),O,C,2.7,0),COLORCC0000; STICKLINE(C<REF(C,1),O,C,2.1,0),COLORFF4400;STICKLINE(C<REF(C,1),O,C,1.5,0),COLORFF8800;STICKLINE(C<REF(C,1),O,C,0.9,0),COLORFFCC00;STICKLINE(C<REF(C,1),O,C,0.3,0),COLORFFFF00;STICKLINE(C=REF(C,1),H,L,0,1),COLORFFFFFF;STICKLINE(C=REF(C,1),O,C,3.2,0),COLOR555555;STICKLINE(C=REF(C,1),O,C,2.7,0),COLOR777777; STICKLINE(C=REF(C,1),O,C,2.1,0),COLOR999999;STICKLINE(C=REF(C,1),O,C,1.5,0),COLORBBBBBB;STICKLINE(C=REF(C,1),O,C,0.9,0),COLORDDDDDD;STICKLINE(C=REF(C,1),O,C,0.3,0),COLORFFFFFF;BC:=(IF(C>(H+L+C)/3,(H*0.618+L*0.382)*0.382,(H*0.382+L*0.618)*0.382)+(O*0.382+C*0.618)*0.618);市价:=AMOUNT/(VOL*100);DEM3:EMA(DMA(BC,(VOL/(SUM(AMOUNT,3)/(市价*100)))),1),COLORWHITE;DEM7:EMA(DMA(BC,(VOL/(SUM(AMOUNT,7)/(市价*100)))),1),COLORYELLOW;DEM13:EMA(DMA(BC,(VOL/(SUM(AMOUNT,13)/(市价*100)))),1),COLOR6600FF;CB:EMA(DMA(BC,(VOL/(SUM(AMOUNT,38)/(市价*100)))),1),COLOR00BB00,LINETHICK2;转弱:CB*(1-997/10000),DOTLINE,COLORCYAN;反弹:CB*0.809,COLOR0077FF,DOTLINE;转强:CB*(1+997/10000),DOTLINE,COLORMAGENTA;警示:CB*1.191,COLOR0077FF,DOTLINE;GLC:=((BC/DEM3-1)*100+(BC/DEM7-1)*100+(BC/DEM13-1)*100+(BC/CB-1)*100)/4,COLORRED;GL3:=((DEM3/DEM7-1)*100+(DEM3/DEM13-1)*100+(DEM3/REF(DEM3,1)-1)*100)/3;GL7:=((DEM7/DEM13-1)*100+(DEM7/REF(DEM7,1)-1)*100)/2;GL13:=(DEM13/REF(DEM13,1)-1)*100;GL21:=((DEM3/CB-1)*100+(DEM7/CB-1)*100+(DEM13/CB-1)*100+(CB/REF(CB,1)-1)*100)/4;乖:=(GL3+GL7+GL13);合:=(GLC+GL3+GL7+GL13+GL21)/5;离:=((EMA(合,12)+EMA(合,14))/2+EMA(合,13))/2,COLORGREEN;DRAWTEXT(CROSS(乖,0)AND (离>REF(离,1)),L*0.96,'★'),COLORYELLOW;DRAWTEXT(CROSS(乖,离)AND 离>0,L*0.96,'★'),COLORRED;