C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 实际量: VOL,LINETHICK0,PRECIS0 ;
- Var1:=DYNAINFO(17)*REF(MA(VOL,5),1);
- Var2:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;
- 预测量1:=IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,Var1,Var2);
- 预测量:IF(实际量>=预测量1,实际量,预测量1),LINETHICK0,PRECIS0;
- STICKLINE(DYNAINFO(8)=VOL,DYNAINFO(17)*REF(MA(VOL,5),1),v,6,1),COLOR888888;
- MA5:MA(VOL,5),LAYER0;
- MA10:MA(VOL,10),LINETHICK2,LAYER0;
- ye:=(high+low+close)/3;
- ye1:=if(high=low,1,HIGH-Max(OPEN,CLOSE));
- ye2:=if(high=low,1,max(CLOSE,OPEN)-ye);
- ye3:=if(high=low,1,Min(OPEN,CLOSE)-LOW);
- ye4:=if(high=low,1,ye-min(close,open));
- ye5:=vol/if(high=low,4,HIGH-LOW);
- YE6:=SUM((ye1*ye5),1);
- YE7:=SUM((ye2*ye5),1);
- YE8:=SUM((ye3*ye5),1);
- YE9:=SUM((ye4*ye5),1);
- 主买:(ye9+ye8),LINETHICK0,COLORRED;
- STICKLINE((ye9+ye8)>0,(YE9+YE8),0,8,0),COLOR0000AA;
- STICKLINE((ye9+ye8)>0,(YE9+YE8),0,5,0),COLOR0000CC;
- STICKLINE((ye9+ye8)>0,(YE9+YE8),0,3,0),COLOR0000DD;
- STICKLINE((ye9+ye8)>0,(YE9+YE8),0,1,0),COLOR0000FF;
- STICKLINE((ye6+ye7)>0,(ye6+ye7)+(YE9+YE8),(YE9+YE8),8,0),COLOR00FF00;
- STICKLINE((ye6+ye7)>0,(ye6+ye7)+(YE9+YE8),(YE9+YE8),5,0),COLOR30FF30;
- STICKLINE((ye6+ye7)>0,(ye6+ye7)+(YE9+YE8),(YE9+YE8),3,0),COLOR60FF60;
- STICKLINE((ye6+ye7)>0,(ye6+ye7)+(YE9+YE8),(YE9+YE8),1,0),COLOR90FF90;
- 主卖:(ye6+ye7)*(-1),LINETHICK0,COLORGREEN;