当前位置:→ 公式网 > 大智慧公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是自己组合的江恩八线(无源码的请下载附件导入)
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 一号线:EMA(CLOSE,144);
- 工作线:EMA(CLOSE,14),colorred;
- 二号线:EMA(CLOSE,25);
- 三号线:EMA(CLOSE,318);
- 生命线:EMA(CLOSE,453),colorred,linethick2;
- 五号线:EMA(CLOSE,550);
- 六号线:EMA(CLOSE,610);
- 七号线:EMA(CLOSE,730);
- 八号线:EMA(CLOSE,888);
- 九号线:EMA(CLOSE,99),colorgreen;
- DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
- DEA:=EMA(DIFF,9);
- MACD:=0.90*(DIFF-DEA);
- tj:=(diff>=dea);
- tj1:=(diff>=0);
- STICKLINE(tj,H,L,0.5,0),coloryellow;
- STICKLINE(tj,O,C,4,0),coloryellow;
- STICKLINE(tj1 AND tj,H,L,0.5,0),colorf00ff0;
- STICKLINE(tj1 AND tj,O,C,4,1),colorf00ff0;
- STICKLINE(diff<dea,H,L,0.5,0),colorf0f000;
- STICKLINE(diff<dea,O,C,4,0),colorf0f000;
- Var1:=(CLOSE*2+HIGH+LOW)/4;
- SK:= EMA(Var1,13)-EMA(Var1,73);
- SD:= EMA(SK,2);
- DRAWTEXT((CROSS(sk,sd) AND sk<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(sk,sd) AND sk<=-0.14 )
- OR (CROSS(sk,sd) AND sk<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'短线'),colorgreen;
- STICKLINE((CROSS(sk,sd) AND sk<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(sk,sd) AND sk<=-0.14 )
- OR (CROSS(sk,sd) AND sk<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0.5,0),colorred;
- STICKLINE((CROSS(sk,sd) AND sk<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(sk,sd) AND sk<=-0.14 )
- OR (CROSS(sk,sd) AND sk<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,10,1),linethick3,colorred;
- YC_VAR1:=EMA(CLOSE,5);
- YC_VAR2:=EMA(CLOSE,10);
- YC_VAR3:=EMA(CLOSE,20);
- YC_VAR4:=EMA(CLOSE,30);
- YC_VAR5:=(YC_VAR1+YC_VAR2+YC_VAR3+YC_VAR4)/4;
- YC_VAR6:=(YC_VAR5-REF(YC_VAR5,15))/REF(YC_VAR5,15)*100;
- YC_买进:=((CLOSE-REF(MA(CLOSE,6),1))/6+MA(CLOSE,6))*1.004;
- 买进条件:CROSS(CLOSE,YC_买进) AND YC_买进>REF(YC_买进,1),LINETHICK0;
- YC_加仓:=((CLOSE-REF(MA(CLOSE,18),1))/18+MA(CLOSE,18))*1.004;
- 加仓条件:CROSS(CLOSE,YC_加仓) AND YC_加仓>REF(YC_加仓,1),LINETHICK0;
- YG_回挡:=SMA(HIGH,21,2) * 1.05;
- YG_卖出:=(CLOSE < REF(CLOSE,1) AND HIGH > YG_回挡) AND CLOSE < YG_回挡;
- ◆满仓:买进条件 AND 加仓条件,LINETHICK0;
- STICKLINE(YC_VAR6<1*REF(YC_VAR6,1),H,O,0,0),COLORblue;
- STICKLINE(YC_VAR6<1*REF(YC_VAR6,1),C,L,0,0),COLORblue;
- STICKLINE(YC_VAR6<1*REF(YC_VAR6,1),C,O,8,1),COLORblue;
- STICKLINE(C<=O,C+C/500,O-O/500,6,0),COLORgreen;
- STICKLINE(C>O AND 加仓条件,C,H,0,0),COLORYELLOW;
- STICKLINE(C>O AND 加仓条件,L,O,0,0),COLORYELLOW;
- STICKLINE(C>O AND 加仓条件,C,O,8,0),COLORYELLOW;
- STICKLINE(C>O AND 买进条件,C,H,0,0),COLORRED;
- STICKLINE(C>O AND 买进条件,L,O,0,0),COLORRED;
- STICKLINE(C>O AND 买进条件,C,O,8,0),COLORRED;
- STICKLINE(C>O AND 加仓条件 AND 买进条件,C,H,0,0),ColorFF0080;
- STICKLINE(C>O AND 加仓条件 AND 买进条件,L,O,0,0),ColorFF0080;
- STICKLINE(C>O AND 加仓条件 AND 买进条件,C,O,8,0),ColorFF0080;
- STICKLINE(C<O AND YG_卖出,H,O,0,0),COLORblue;
- STICKLINE(C<O AND YG_卖出,C,L,0,0),COLORblue;
- STICKLINE(C<O AND YG_卖出,C,O,6,0),COLORblue;
- DRAWTEXT(买进条件 AND 加仓条件 <>1,L/1.01,'买'),COLORRED;
- DRAWTEXT(买进条件 AND 加仓条件 <>1,L/1.03,'进'),COLORRED;
- DRAWTEXT(加仓条件 AND 买进条件 <>1,L/1.01,'加'),COLORYELLOW;
- DRAWTEXT(加仓条件 AND 买进条件 <>1,L/1.03,'仓'),COLORYELLOW;
- DRAWTEXT(加仓条件 AND 买进条件,L/1.01,'◆'),ColorFF0080;
- DRAWTEXT(加仓条件 AND 买进条件,L/1.03,'满'),ColorFF0080;
- DRAWTEXT(加仓条件 AND 买进条件,L/1.05,'仓'),ColorFF0080;
上一篇:不同周期使用不同参数的均线公式 下一篇:价格预测