C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 测量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
- {STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预测量,0,4,-1),COLOR00FF00;}
- JE:=预测量;
- JJ:=(HIGH+LOW+CLOSE)/3;
- QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
- 主买:=ABS(QJ0*(JJ-MIN(CLOSE,OPEN)));
- 主卖:=(QJ0*(MIN(OPEN,CLOSE)-LOW));
- 散买:=(QJ0*(HIGH-MAX(OPEN,CLOSE)));
- 散卖:=ABS(QJ0*(MAX(CLOSE,OPEN)-JJ));
- 庄净入:=IF((主买-主卖)>0,主买-主卖,0)COLORRED;
- 庄净出:=IF((主买-主卖)<0,主买-主卖,0)COLORGREEN;
- 散净入:=IF((散买-散卖)>0,散买-散卖,0)COLORGREEN;
- 散净出:=IF((散买-散卖)<0,散买-散卖,0)COLORRED;
- 净:=主买+散买-主卖-散卖;
- STICKLINE(庄净出,O,C,3,0),COLOR00AA00;
- STICKLINE(庄净出,O,C,1.5,0),COLOR00CC00;
- STICKLINE(散净入,C,H,3,0),COLORAA0000;
- STICKLINE(散净入,C,H,1.5,0),COLORCC0000;
- STICKLINE(庄净入,O,C,3,0),COLOR0000AA;
- STICKLINE(庄净入,O,C,1.5,0),COLOR0000CC;
- STICKLINE(散净出,O,L,3,0),COLORAA00AA;
- STICKLINE(散净出,O,L,1.5,0),COLORCC00CC;
- STICKLINE(净>0,O,C,0.5,1),COLORYELLOW;
- STICKLINE(净<0,O,C,0.5,1),COLORWHITE;