资金博弈(1分钟周期使用)
AA:=DATEDIFF(REF(DATE,1),DATE)<>CURRENTDATE-REF(CURRENTDATE,1);
VERTLINE(AA<>0),LINEDASHDOT;
AA:=DATEDIFF(REF(DATE,1),DATE)<>CURRENTDATE-REF(CURRENTDATE,1);
0,LINEDOT;
QA:=BARSLAST(AA);
总额:SUM(AMOUNT/10000,QA+1),LINETHICK0,PRECISION2;
QC:=IF(ABS(AMOUNT/10000>=100) AND C>=REF(C,1),AMOUNT/10000,0);//大单
QG:=IF(ABS(AMOUNT/10000>=100) AND C<REF(C,1),AMOUNT/10000,0);
QD:=IF(ABS(AMOUNT/10000<50) AND C>=REF(C,1),AMOUNT/10000,0);//小单
QH:=IF(ABS(AMOUNT/10000<50) AND C<REF(C,1),AMOUNT/10000,0);
ZD:=IF(ABS(AMOUNT/10000<100 AND AMOUNT/10000>50) AND C>=REF(C,1),AMOUNT/10000,0);//中单
ZH:=IF(ABS(AMOUNT/10000<100 AND AMOUNT/10000>50) AND C<REF(C,1),AMOUNT/10000,0);
大单:SUM(QC-QG,QA+1),COLORRED,PRECISION2;
中单:SUM(ZD-ZH,QA+1),COLORYELLOW,PRECISION2;
小单:SUM(QD-QH,QA+1),COLORGREEN,PRECISION2;
大小单比:(大单/小单-1)*100,LINETHICK0,COLORWHITE,PRECISION2;
DRAWTEXT(ISLASTBAR,大单,'大单'),COLORRED;
DRAWTEXT(ISLASTBAR,中单,'中单'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,小单,'小单'),COLORGREEN;
- 上一篇公式:捕捉分时OBV
- 下一篇公式:财神指路 紫气东来及选股公式源码(主图 源码)