大智慧新涨停王大交易师分时副图指标公式源码[大智慧公式]
[code]{新涨停王}A1:=(VOL/CLOSE)/3;
{A222:=IF(A1>0.29 AND CLOSE>ref(CLOSE,1),A1,0);}
{A22:=SUM(A222,0);}
A2:=SUM((IF(((A1>0.20) AND (CLOSE>(ref(CLOSE,1)))),A1,0)),0);
A3:=SUM((IF(((A1>0.20) AND (CLOSE<(ref(CLOSE,1)))),A1,0)),0);
A4:=SUM((IF(((A1<0.29) AND (CLOSE>(ref(CLOSE,1)))),A1,0)),0);
A5:=SUM((IF(((A1<0.29) AND (CLOSE<(ref(CLOSE,1)))),A1,0)),0);
A6:=((A2+A3)+A4)+A5;
{A7:=IF((BARSCOUNT( CLOSE)=1),((100*A2)/A6),0);
A8:=((IF((BARSCOUNT( CLOSE)=1),((100*A3)/A6),0)));
A9:=((IF((BARSCOUNT( CLOSE)=1),((100*A4)/A6),0)));
A10:=((IF((BARSCOUNT( CLOSE)=1),((100*A5)/A6),0)));}
机构买盘红:(A2),LINETHICK3,COLORRED;
机构卖盘绿:(A3),LINETHICK3,COLORGREEN;
散户买盘黄:(A4),COLORYELLOW;
散户卖盘蓝:(A5),COLORBLUE;
DRAWTEXT(BARSCOUNT( CLOSE)=240,机构买盘红*0.9,'机构买盘'),LINETHICK2,COLORRED;
DRAWTEXT(BARSCOUNT( CLOSE)=240,机构卖盘绿*0.9,'机构卖盘'),LINETHICK2,COLORGREEN;
DRAWTEXT(BARSCOUNT( CLOSE)=240,散户买盘黄*0.9,'散户买盘'),LINETHICK2,COLORMAGENTA;
DRAWTEXT(BARSCOUNT( CLOSE)=240,散户卖盘蓝*0.9,'散户卖盘'),LINETHICK2,COLORBLUE;
买卖差额:(机构买盘红-机构卖盘绿)>0.5,LINETHICK6,COLORWHITE;
抄底:IF(CROSS(A2,A3),10,0),LINETHICK3,COLORMAGENTA;
VERTLINE(抄底>0),LINEDOT;
[/code]
[code]
{图上抄底的预警-飞狐、大智慧新一代、通达信通用预警公式---一分钟周期}
A1:=(VOL/CLOSE)/3;
A2:=SUM((IF(((A1>0.20) AND (CLOSE>(ref(CLOSE,1)))),A1,0)),0);
A3:=SUM((IF(((A1>0.20) AND (CLOSE<(ref(CLOSE,1)))),A1,0)),0);
抄底:CROSS(A2,A3);
[/code]
页:
[1]