C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 画面起点:=SYSPARAM(2);
- 画面终点:=SYSPARAM(3);
- 画面K线数:=画面终点-画面起点+1;
- 最高:=HHV(VOL,画面K线数);
- 视高:最高[画面终点],LINETHICK1,LINEDOT,Color006600;
- 0.5*视高,Color006600,LINETHICK1,LINEDOT;
-
- {空跌}
- var910:=100*(c-cost(10))/cost(10);
- 空跌幅度:if(var910<0,var910,0),coloryellow,linethick0;
- 空跌:=视高+空跌幅度*视高/20,linethick0,COLOR008800;
- FILLRGN(空跌<视高,if(空跌<视高*0.6,视高*0.6,空跌),视高*0.999),COLOR005000;
-
- VAR2:=0.0001*AMOUNT,;
- MA1:=0.0001*MA(AMOUNT,5);
- M2:=0.0001*MA(AMOUNT,10);
- 地量:LLV(VAR2,100)=VAR2,STICK,COLORRED,LINETHICK0;
- DRAWTEXT(地量,0.45*视高,'地量'),COLOR00CCDD;
-
- 虚量:=IF(BARSTATUS=2,VOL/INDEXV*MA(INDEXV,2),VOL);
- STICKLINE(ISLASTBAR,0,IF(虚量>视高,视高,虚量),8,1),COLORYELLOW;
- STICKLINE(C>REF(C,1),0,VOL,8,0),Color0000AA;
- STICKLINE(C>REF(C,1),0,VOL,6,0),Color0000CC;
- STICKLINE(C>REF(C,1),0,VOL,3,0),Color0000DD;
- STICKLINE(C>REF(C,1),0,VOL,1,0),Color0000FF;
- STICKLINE(C<=REF(C,1),0,VOL,8,0),COLORFF6600;
- STICKLINE(C<=REF(C,1),0,VOL,6,0),COLORFF7700;
- STICKLINE(C<=REF(C,1),0,VOL,3,0),COLORFF9900;
- STICKLINE(C<=REF(C,1),0,VOL,1,0),COLORFFBB00;
- 0,Color00AA00,LINETHICK1;
-
- {牛气冲天}
- VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89);
- VAR1E:=EMA(VAR1D,30);
- VAR1F:=2*(VAR1D-VAR1E)*10;
- VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2);
- VAR21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
- VAR22:=EMA(VAR21*0.97,3);
- VAR23:=(HIGH+LOW+CLOSE)/3;
- VAR24:=(VAR23-MA(VAR23,14))/(0.015*AVEDEV(VAR23,14));
- VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150);
- VAR27:=EMA(VAR26,100);
- VAR28:=2*(VAR26-VAR27);
- VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);
- VAR2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
- VAR2B:=EMA(VAR2A*0.97,3);
- VAR2C:=(HIGH+LOW+CLOSE)/3;
- VAR2D:=(VAR2C-MA(VAR2C,14))/(0.015*AVEDEV(VAR2C,14));
- 主力资金:IF(YEAR<2020 AND VAR28>0.1,VAR29,0)*5,COLORFF55FF,LINETHICK0;
- 主资增:(主力资金-REF(主力资金,1)),COLORFF55FF,LINETHICK0;
- 拉升资金:IF(YEAR<2020 AND VAR1F>0.015,VAR20,0)/45,COLOR00DDEE,LINETHICK0;
- 拉资增:(拉升资金-REF(拉升资金,1)),COLOR00DDEE,LINETHICK0;
- 最高资:=HHV(IF(拉升资金>主力资金,拉升资金,主力资金),画面K线数);
- 视高资:=最高资[画面终点];
- PARTLINE(C,主力资金*视高/视高资),COLORFF55FF,LINETHICK2;
- PARTLINE(C,拉升资金*视高/视高资),COLOR00CCDD,LINETHICK2;
- STICKLINE(主力资金>0,-视高*0.13,-视高*0.04,8,0),COLORFF00FF;
- STICKLINE(主力资金>0,-视高*0.1,-视高*0.04,1,0),COLORFFAAFF;
- STICKLINE(拉升资金>0,-视高*0.13,-视高*0.04,8,0),COLOR00DDEE;
- STICKLINE(拉升资金>0,-视高*0.1,-视高*0.04,1,0),COLORFFFFFF;