C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 买线:=EMA(C,1);
- 卖线:=EMA(SLOPE(C,13)*13+C,31);
- BU:=CROSS(买线,卖线);
- SEL:=CROSS(卖线,买线);
- DRAWICON(BU,L-0.1,0);
- DRAWICON(SEL,H+0.1,0);
- DRAWTEXT(BU,L*0.99,'变'),COLORWHITE;
- STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;
- STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED;
- STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORGREEN;
- STICKLINE(买线<卖线,CLOSE,OPEN,2,1),COLORGREEN;
- STICKLINE(BU,OPEN,CLOSE,1,0),COLORYELLOW;
- STICKLINE(SEL,OPEN,CLOSE,2,0),COLORBLUE;
- 快趋势:EMA(CLOSE,3),COLORCYAN;
- 常态:EMA(CLOSE,5),COLORYELLOW,LINETHICK1;
-
-
- 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);
- XX:=MA(CLOSE,9);
- YY:=MA(CLOSE,20);
- 均价:=(HIGH+4*LOW+OPEN+CLOSE)/7;
- 均价差:= EMA(均价,13) - EMA(均价,34);
- 移动均价:= EMA(均价差,5);
- 差:=(均价差-移动均价)*5;
- A:=IF(差>=1000 ,1000 ,IF(差<=均价,均价,差) );
- 持股线:FORCAST(FORCAST(A,30),8),COLORFF00FF,LINETHICK2{COLORYELLOW};
- 希望门:FORCAST(FORCAST(A,30),69),COLORWHITE{COLORYELLOW};
- 牛熊线:EMA(CLOSE,420),LINETHICK2,COLORRED;
-
-
- DRAWICON (CROSS(常态,希望门), L-0.20,5);
- DRAWICON (CROSS(希望门,快趋势),H-0.20,6);