大智慧的分时作为公式代码怎么用?
发布网友
发布时间:2022-04-19 19:33
我来回答
共1个回答
热心网友
时间:2023-09-08 00:26
大智慧分时指标公式很多:
N:=(IF((DYNAINFO(57)>10000000000),2,1))
AND
(IF((DYNAINFO(57)<10000000000)
AND
(DYNAINFO(57)>5000000000),1,1))
AND
(IF((DYNAINFO(57)<5000000000)
AND
(DYNAINFO(57)>1000000000),0.5,1))
AND
(IF((DYNAINFO(57)<1000000000)
AND
(DYNAINFO(57)>500000000),0.25,1))
AND
(IF((DYNAINFO(57)<500000000),0.5,1));
X:=((DYNAINFO(57)/(10000*N)))/10000;
A1:=AMOUNT/10000;
A2:=SUM((IF(((A1>X)
AND
(CLOSE>(REF(CLOSE,1)))),A1,0)),0);
A3:=SUM((IF(((A1>X)
AND
(CLOSE<(REF(CLOSE,1)))),A1,0)),0);
A4:=SUM((IF(((A1<X)
AND
(CLOSE>(REF(CLOSE,1)))),A1,0)),0);
A5:=SUM((IF(((A1<X)
AND
(CLOSE<(REF(CLOSE,1)))),A1,0)),0);
A6:=((A2+A3)+A4)+A5;
A7:=IF((BARSTATUS=2),((100*A2)/A6),0);
A8:=IF((BARSTATUS=2),((100*A3)/A6),0);
A9:=IF((BARSTATUS=2),((100*A4)/A6),0);
A10:=IF((BARSTATUS=2),((100*A5)/A6),0);
机构买盘:(A2),LINETHICK3,COLORFF55FF;
机构卖盘:(A3),LINETHICK3,COLORFFFF55;
散户买盘:(A4),COLOR5555FF;
散户卖盘:(A5),COLOR55FF55;
DRAWTEXTREL(1003,50,'机构买盘'),LINETHICK2,COLORFF55FF;
DRAWTEXTREL(1003,320,'机构卖盘'),LINETHICK2,COLORFFFF55;
DRAWTEXTREL(1003,570,'散户买盘'),LINETHICK2,COLOR5555FF;
DRAWTEXTREL(1003,870,'散户卖盘'),LINETHICK2,COLOR55FF55;
IF
((BARSTATUS=2)
)
THEN
DRAWTEXTREL(1020,-30,''+FLOOR(A7)+'%'),LINETHICK2,COLORFF55FF;
IF
((BARSTATUS=2)
)
THEN
DRAWTEXTREL(1020,230,''+FLOOR(A8)+'%'),LINETHICK2,COLORFFFF55;
IF
((BARSTATUS=2)
)
THEN
DRAWTEXTREL(1020,490,''+FLOOR(A9)+'%'),LINETHICK2,COLOR5555FF;
IF
((BARSTATUS=2)
)
THEN
DRAWTEXTREL(1020,780,''+FLOOR(A10)+'%'),LINETHICK2,COLOR55FF55;
(A2-A3)*10000/DYNAINFO(57);
这个可直接引入分时付图。