谷谷波峰波谷公式
谷谷周期:=TROUGHBARS(2,p1,2);
峰峰周期:=PEAKBARS(2,p1,1);
下調(diào)周期:IF(谷谷周期<REF(谷谷周期,1),峰峰周期,0);
下調(diào)總量:IF(下調(diào)周期>0,SUM(VOL,下調(diào)周期),0),colorgreen;
下調(diào)換手率:IF(下調(diào)周期>0,SUM(VOL,下調(diào)周期)/CAPITAL*100,0);
DRAWLINE(峰峰周期=0,峰峰周期,峰峰周期=下調(diào)周期,下調(diào)總量,0),colorgreen;
量對沖:=IF(谷谷周期<REF(谷谷周期,1) and 峰峰周期>REF(峰峰周期,1),峰峰周期-REF(峰峰周期,1),0);
量對沖周期:BARSLAST(量對沖);
沖量a:=IF(量對沖周期>0,REF(下調(diào)總量,量對沖周期)-SUM(VOL,量對沖周期),0);
沖量:IF(量對沖周期>0 and 沖量a>0,REF(下調(diào)總量,量對沖周期)-SUM(VOL,量對沖周期),0),colorgreen;
對沖換手:IF(量對沖周期>0,REF(下調(diào)換手率,量對沖周期)-SUM(VOL/CAPITAL*100,量對沖周期),0),colorgreen;
谷谷周期d:=TROUGHBARS(2,p2,2);
峰峰周期d:=PEAKBARS(2,p2,1);
下調(diào)周期d:IF(谷谷周期d<REF(谷谷周期d,1),峰峰周期d,0);
下調(diào)總量d:IF(下調(diào)周期d>0,SUM(VOL,下調(diào)周期d),0),colorred;
下調(diào)換手率d:IF(下調(diào)周期d>0,SUM(VOL,下調(diào)周期d)/CAPITAL*100,0);
DRAWLINE(峰峰周期d=0,峰峰周期d,峰峰周期d=下調(diào)周期d,下調(diào)總量d,0),colorred;
量對沖d:=IF(谷谷周期d<REF(谷谷周期d,1) and 峰峰周期d>REF(峰峰周期d,1),峰峰周期d-REF(峰峰周期d,1),0);
量對沖周期d:BARSLAST(量對沖d);
沖量ad:=IF(量對沖周期d>0,REF(下調(diào)總量d,量對沖周期d)-SUM(VOL,量對沖周期d),0);
沖量d:IF(量對沖周期d>0 and 沖量ad>0,REF(下調(diào)總量d,量對沖周期d)-SUM(VOL,量對沖周期d),0),colorred;
對沖換手d:IF(量對沖周期d>0,REF(下調(diào)換手率d,量對沖周期d)-SUM(VOL/CAPITAL*100,量對沖周期d),0),colorred;