代碼教程 飛狐大單副圖代碼教程轉(zhuǎn)文華

AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
買量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
賣量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2));
大單動(dòng)向:買量+賣量,LINETHICK1;
STICKLINE(大單動(dòng)向<0,0,大單動(dòng)向,6,0),COLORCYAN;
STICKLINE(大單動(dòng)向<0,0,大單動(dòng)向,6,0),COLORCYAN;
STICKLINE(大單動(dòng)向<0,0,大單動(dòng)向,6,0),COLORCYAN;
STICKLINE(大單動(dòng)向<0,0,大單動(dòng)向,4,0),COLORCYAN;
STICKLINE(大單動(dòng)向>0,0,大單動(dòng)向,6,0),COLORRED;
STICKLINE(大單動(dòng)向>0,0,大單動(dòng)向,8,0),COLORRED;
STICKLINE(大單動(dòng)向>0,0,大單動(dòng)向,6,0),COLORRED;
STICKLINE(大單動(dòng)向>0,0,大單動(dòng)向,4,0),COLORRED;
MA1:MA(大單動(dòng)向,3),COLORFF00FF;
MA2:MA(大單動(dòng)向,5),COLORGREEN;
MA3:MA(大單動(dòng)向,10),COLORYELLOW;
標(biāo)簽: