编写要求:
解答:
?网友求助:
请老师帮忙把大智慧自带源码:量比合并进分时成交的副图里谢谢
大智慧L2 另如有可能把第三个分时预警的指标也一起合并进去用不同颜色表达!!
源码:
(分时量比)--大智慧自带源码
sum(vol,0)*240/dynainfo(38)/barscount(c);
(分时成交)
VOL,LINETHICK0,COLORWHITE;
VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));
卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));
买卖差:=(买盘 + 卖盘);
STICKLINE((V > 0),买盘-卖盘,0,1,0),COLOR00FFFF;
VAR2:=(HIGH - LOW);
VAR3:=ABS((OPEN - CLOSE));
VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));
VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);
VAR6:=((VAR3 / VAR2) * VOL);
VAR7:=((VAR4 / VAR2) * VOL);
VAR8:=((VAR5 / VAR2) * VOL);
{多头:}STICKLINE((CLOSE > MA(CLOSE,2)),0,VOL,3,1),COLOR0000FF;
{空头:}STICKLINE((CLOSE < MA(CLOSE,2)),0,VOL,3,1),COLOR00FF00;
STICKLINE((CLOSE > OPEN),买盘,0,0,0),COLOR0000FF;
STICKLINE((CLOSE < OPEN),-卖盘,0,0,0),COLOR00FF00;
(分时预警)
AA:=BARSLAST(TIME=110000);
CC:=REF(HHV(C,0),AA+1);
VV:=REF(HHV(V,0),AA+1);
ZF:=CC/DYNAINFO(3)<1.05;
XG:CROSS(C,CC) AND V>VV AND ZF;
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!