在线检测未来函数

通达信画线波谷BS通道主图指标公式

来源:Internet,编辑:股旁网,2012-10-30

天际: (MA(CLOSE,40)) + 2*STD(CLOSE,40),LINETHICK2,COLORBLUE;
海底: (MA(CLOSE,40)) - 2*STD(CLOSE,40),LINETHICK2,COLORBLUE;
买卖决策①:expma(CLOSE,12),CIRCLEDOT,COLORWHITE;
红持绿抛②:MA(CLOSE,25),COLORRED;
红持绿抛③:MA(CLOSE,30),COLORGREEN;DRAWBAND(红持绿抛②,RGB(255,0,0),红持绿抛③,RGB(0,255,0));
NOTEXT1:IF(CLOSE>买卖决策① AND CLOSE!=买卖决策①,买卖决策①,DRAWNULL),CIRCLEDOT,COLORRED;
NOTEXT2:IF(CLOSE<买卖决策① AND CLOSE!=买卖决策①,买卖决策①,DRAWNULL),CIRCLEDOT,COLORGREEN;
现价:=C,POINTDOT;
M3:MA(C,3);
持股13线:=EMA(CLOSE,13);
突破77线:=EMA(CLOSE,77);
翻锅99线:=EMA(CLOSE,99);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
AA:=EMA(CLOSE,10);
多头:=STICKLINE(DIF>DEA,CLOSE,OPEN,2,0),COLORRED;
STICKLINE(DIF>DEA,HIGH,LOW,0,0),COLORRED;
空头:=STICKLINE(DIF<=DEA,CLOSE,OPEN,2,0),COLORGREEN;
STICKLINE(DIF<=DEA,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(DIF<=DEA AND AA>MA(CLOSE,50),CLOSE,OPEN,2,0),COLORYELLOW;
STICKLINE(DIF<=DEA AND AA>MA(CLOSE,50),HIGH,LOW,0,0),COLORYELLOW;
DRAWTEXT(crOSS(DIF,DEA),LOW*0.995, 'B'),COLORYELLOW,LINETHICK3,;
DRAWTEXT(CROSS(DEA,DIF),HIGH*1.02, 'S'),COLORGREEN,LINETHICK3,;
A:=TROUGH(3,10,1);
B:=TROUGHBARS(3,10,1)=0;
画底线:DRAWLINE(B,A,B,A,1),COLORYELLOW;
D:=PEAK(3,10,1);
E:=PEAKBARS(3,10,1)=0;
画顶线:DRAWLINE(E,D,E,D,1),COLOR00FF00;
百分比:=10;{也可设立参数:百分比(5,30,10)}
误差:=2;{误差百分比}
允许误差:=误差/100+0.004;{也可设立参数:允许误差(0,0.02,0)}
波谷1距离:= 1+CONST(TROUGHBARS(2,百分比,1));
波谷值1: CONST(TROUGH(2,百分比,1));
波谷值2:= CONST(TROUGH(2,百分比,2));
波谷值3:= CONST(TROUGH(2,百分比/2,2));
波谷值4:= CONST(TROUGH(2,百分比*2,2));

通达信画线波谷BS通道主图指标公式

相关文章