【#文档大全网# 导语】以下是®文档大全网的小编为您整理的《指南针代码》,欢迎阅读!
Z金山银山(主
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MA(C,8),COLORWHITE;
MA(C,21),COLORYELLOW;
多头:STICKLINE(DIFF>DEA,C,O,0,0),COLORRED;
STICKLINE(DIFF>DEA,H,L,0,0),COLORRED;
空头:STICKLINE(DIFF<=DEA,C,O,0,0),COLORCYAN;
STICKLINE(DIFF<=DEA,H,L,0,0),COLORCYAN;
DRAWTEXT(CROSS(DIFF,DEA),L-0.0,'买入'),COLORWHITE;
DRAWTEXT(CROSS(DEA,DIFF),H+0.0,'卖出'),COLORGREEN;
Z战无不胜
危机线:85,COLORRED;
中间线:50,COLORWHITE;
安全线:15,COLORGREEN;
V1:=(2*CLOSE+HIGH+LOW)/4;
V2:=LLV(LOW,34);
VA:=HHV(HIGH,34);
防线B:=EMA((V1-V2)/(VA-V2)*100,13);
防线BB:=EMA((0.667*REF(防线B,1)+0.333*防线B),2);
战术线:防线B,COLORYELLOW,POINTDOT;
战略线:EMA(0.382*REF(防线B,2)+0.618*防线B,12),COLORYELLOW;
STICKLINE(防线B>防线BB,防线B,防线BB,0,0),COLORRED;
STICKLINE(防线B<=防线BB,防线B,防线BB,0,0),COLORCYAN;