本帖最后由 股乐共鸣 于 2013-10-22 13:25 编辑
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
VVOL:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
{MAVOL1:MA(VOLUME,M1);
MAVOL2:MA(VOLUME,M2);}
TJ:=C<O;
TJ1:=C>REF(C,1) AND TJ;
TJ2:=AMOUNT/V/100>REF(C,1) AND O>REF(C,1) AND NOT(TJ1) AND TJ;
STICKLINE(TJ1,C,O,1,0),COLORMAGENTA;
STICKLINE(TJ2,C,O,1.5,0),COLORLIRED;
这是主图公式 |