当前位置:→ 公式网 > 大智慧公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是操盘线指标,适用L2版本-(源码)(无源码的请下载附件导入)
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- {操盘线}
- B1:=MA(CLOSE,1);
- B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1) ;
- 天狼线:MA(MA(B2,3),3),ColorFFFFFF ;
- 生命线:EMA(EMA(EMA(EMA(CLOSE,9),3),3),3),ColorFFFF00,LINETHICK1;
- PARTLINE(生命线,生命线>REF(生命线,1)),Color0000FF,LINETHICK2,LAYER0;
- PARTLINE(天狼线,天狼线>REF(天狼线,1)),ColorFF9500,LINETHICK1,LAYER0;
- DRAWICON( FILTER(CROSS(天狼线,生命线),1),生命线,7);
- DRAWICON( FILTER(CROSS(生命线,天狼线),1),H*1.03,8);
- V2:=IF(BARSTATUS=2=1,VOL*240/MINUTE/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
- STICKLINE(V2>=1,C,生命线,4,0),COLORYELLOW;
- LC:=REF(CLOSE,1);
- RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
- FF:=EMA(CLOSE,3);
- MA15:=EMA(CLOSE,21);
- DRAWTEXT(CROSS(FF,MA15),生命线,#39;底背离'),COLORYELLOW,LINETHICK2;
- A:=(H+L)/2;
- B:=(REF(H,1)+REF(L,1))/2;
- MID:=A-B;
- BRO:=VOL/(H-L);
- EMV:=MA(MID/BRO,13)*EMA(V,250);
- AA:=(HHV(HIGH,20) - (2 * EMV));
- BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));
- SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);
- BBB:=BARSLAST(BB);
- SSSB:=BARSLAST(SSS);
- 加买1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)))*5;
- DRAWICON(加买1,天狼线+0.5,10);
- DRAWTEXT(加买1,天狼线+0.5,#39; 加买1'),ColorFF00FF;
- B1B:=BARSLAST(加买1);
- 加买2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3))*5;
- DRAWICON(加买2,天狼线+0.3,10),Color00FF00;
- DRAWTEXT(加买2,天狼线+0.3,#39; 加买2'),Color00FF00;
- B2B:=BARSLAST(加买2);
- 加买3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 2))*5;
- DRAWICON(加买3,天狼线+0.1,10),Color00FF00;
- DRAWTEXT(加买3,天狼线+0.1,#39; 加买3'),Color00FFFF;