打开光标可看往日变动
input:时间(20,1,100),图形(10,1,100);
DRAWGBK(1, COLORRGB(50,80,220),COLORRGB(250,250,250),1);
机构:=EXTDATA(11);
净量:=EXTDATA(5);
大户:=EXTDATA(12);
中户:=EXTDATA(13);
主力:=EXTDATA(6);
散户:=EXTDATA(7);
机金額:=机构*c;
主金額:=主力*C;
大金額:=大户*c;
中金額:=中户*c;
散金額:=散户*c;
庄家资金进出:(机构+主力+大户)/图形,COLORMAGENTA,LINETHICK2;
散户资金进出:(散户+中户)/图形,COLORGREEN,LINETHICK2;
庄减昨:=庄家资金进出-REF(庄家资金进出,1);
散减昨:=散户资金进出-REF(散户资金进出,1);
STICKLINE(1,庄家资金进出+庄减昨,庄家资金进出,2,0),colorred;
STICKLINE(1,散户资金进出,散户资金进出+散减昨,2,1),COLORCYAN;
机构均价:=机金額/机构;
主力均价:=主金額/主力;
大户均价:=大金額/大户;
中户均价:=中金額/中户;
散户均价:=散金額/散户;
机构20:=SUM(机构,时间)/图形;主力20:=SUM(主力,时间)/图形;大户20:=SUM(大户,时间)/图形;
中户20:=SUM(中户,时间)/图形;散户20:=SUM(散户,时间)/图形;净量20:=SUM(净量,时间)/图形;
总01:=净量+机构+主力+大户+中户+散户;
总02:=散户-中户-大户-主力-机构-净量;
总03:=净量20+机构20+主力20+大户20+中户20+散户20;
总04:=散户20-中户20-大户20-主力20-机构20-净量20;
总:=MAX(总01,总03); 总3:=MIN(总02,总04);
p:=SYSPARAM(1);
STICKLINE(BARPOS=SYSPARAM(3)-20,0,总[p]*1.02,150,0),SHIFT1,ALIGN2,COLORWHITE;
STICKLINE(BARPOS=SYSPARAM(3)-20,0,总3[p]*1.02,150,0),SHIFT1,ALIGN2,COLORWHITE;
STICKLINE(BARPOS=SYSPARAM(3)-20,0,总[p]*0.99,140,0),SHIFT1,ALIGN2,COLORGRAY;
STICKLINE(BARPOS=SYSPARAM(3)-20,0,总3[p]*0.99,140,0),SHIFT1,ALIGN2,COLORGRAY;
STICKLINE(BARPOS=DATACOUNT-13,0,净量[p],20,0),COLORBROWN;
STICKLINE(BARPOS=DATACOUNT-16,0,机构[p],15,0),COLORRED;
STICKLINE(BARPOS=DATACOUNT-18,0,主力[p],15,0),COLORYELLOW;
STICKLINE(BARPOS=DATACOUNT-20,0,大户[p],15,0),COLORMAGENTA;
STICKLINE(BARPOS=DATACOUNT-22,0,中户[p],15,0),COLORCYAN;
STICKLINE(BARPOS=DATACOUNT-24,0,散户[p],15,0),COLOR8000;
DRAWTEXT(BARPOS=DATACOUNT-25,总[p],'散 \n户'),PXUP38,align5,COLORBLUE;
DRAWTEXT(BARPOS=DATACOUNT-23,总[p],'中 \n户'),PXUP38,align5,COLORBLUE;
DRAWTEXT(BARPOS=DATACOUNT-21,总[p],'大 \n户'),PXUP38,align5,COLORBLUE;
DRAWTEXT(BARPOS=DATACOUNT-19,总[p],'主 \n力'),PXUP38,align5,COLORBLUE;
DRAWTEXT(BARPOS=DATACOUNT-17,总[p],'机 \n构'),PXUP38,align5,COLORBLUE;
DRAWTEXT(BARPOS=DATACOUNT -14,总[p],'净 \n量'),PXUP38,align5,COLORBLUE;
STICKLINE(BARPOS=SYSPARAM(3)-35,0,总[p]*1.02,150,0),SHIFT1,ALIGN2,COLORBLUE;
STICKLINE(BARPOS=SYSPARAM(3)-35,0,总3[p]*1.02,150,0),SHIFT1,ALIGN2,COLORBLUE;
STICKLINE(BARPOS=SYSPARAM(3)-35,0,总[p]*0.99,140,0),SHIFT1,ALIGN2,COLORGRAY;
STICKLINE(BARPOS=SYSPARAM(3)-35,0,总3[p]*0.99,140,0),SHIFT1,ALIGN2,COLORGRAY;
STICKLINE(BARPOS=DATACOUNT-28,0,净量20[p],20,0),COLORBROWN;
STICKLINE(BARPOS=DATACOUNT-31,0,机构20[p],15,0),COLORRED;
STICKLINE(BARPOS=DATACOUNT-33,0,主力20[p],15,0),COLORYELLOW;
STICKLINE(BARPOS=DATACOUNT-35,0,大户20[p],15,0),COLORMAGENTA;
STICKLINE(BARPOS=DATACOUNT-37,0,中户20[p],15,0),COLORCYAN;
STICKLINE(BARPOS=DATACOUNT-39,0,散户20[p],15,0),COLOR8000;
DRAWTEXT(BARPOS=DATACOUNT-40,总[p],'N天总量'),PXUP38,align5,COLORBLUE;
扩展请找千均老师或秀山版主的应用,没有扩展是不能应用本公式。
想要盘中实时变化可改成 IF(CURRENTDATE=DATE,STKINDI('','指标名.大单',0,0),EXTDATA(11));
|