累计DDX: JJ:=(OPEN+HIGH+LOW+CLOSE)/4; AA:=IF(BETWEEN(C,JJ,H) OR C=O,vol,0); BB:=IF(BETWEEN(C,JJ,L),vol,0); CC:=IF(AA and BB,0,vol/3); P3:=10*(AA-(BB+CC)); P4:=P3/IF(CAPITAL<1,SUM(vol,13),CAPITAL); P55:=SUM(P4,55); 累加55日:FORCAST(P55,5),LINETHICK0; 累加五日:SUM(P4,5),color3d; 五日回归:FORCAST(累加五日,5); partline(五日回归,五日回归>=ref(五日回归,1),rgb(255,0,0),五日回归<ref(五日回归,1),rgb(0,255,0)),linethick3; 累计DDY: AA:=IF(BETWEEN(C,REF(C,1),H),vol,0); BB:=IF(BETWEEN(C,REF(C,1),L),vol,0); CC:=IF(AA and BB,0,vol/3); P3:=3*(AA-(BB+CC)); P4:=P3/IF(CAPITAL<1,SUM(INDEXV,71),CAPITAL); P55:=SUM(P4,55); 累加55日:FORCAST(P55,5),LINETHICK0; 累加五日:SUM(P4,5),color3d; 五日回归:FORCAST(累加五日,5); partline(五日回归,五日回归>=ref(五日回归,1),rgb(255,0,0),五日回归<ref(五日回归,1),rgb(0,255,0)),linethick3; |
