以下是通达信的一段公式,请将这段公式改成通达信选股公式趋势线:EMA(CLOSE,60),COLORYELLOW,LINETHICK2; BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; VAR1:=(2*CLOSE+HIGH+LOW)/4; STICKLINE(VAR1>BBI,REF(BBI,1),BBI,2,0),COLORRED; STICKLINE(VAR1<BBI,REF(BBI,1),BBI,2,0),COLORGREEN; MA5:MA(C,5),COLORWHITE,DOTLINE; {BARH:BBI,NODRAW; BARL:REF(BBI,1),NODRAW;} 多头:IF(MA(CLOSE,5)>MA(CLOSE,60) AND C>MA(CLOSE,5),C,DRAWNULL),COLORRED,NODRAW; 多头调整:IF(MA(CLOSE,5)>MA(CLOSE,60) AND C<MA(CLOSE,5),C,DRAWNULL),COLORWHITE,NODRAW; 空头:IF(MA(CLOSE,5)<MA(CLOSE,60) AND C<MA(CLOSE,5),C,DRAWNULL),COLORGREEN,NODRAW; 空头反弹:IF(MA(CLOSE,5)<MA(CLOSE,60) AND C>MA(CLOSE,5),C,DRAWNULL),COLORWHITE,NODRAW; 多:=IF(VAR1>BBI,1,0),COLORRED,NODRAW; 空:=IF(VAR1<BBI,1,0),COLORGREEN,NODRAW; 多头周期:IF(多>0,BARSLASTCOUNT(多),DRAWNULL),COLORRED,NODRAW; 空头周期:IF(空>0,BARSLASTCOUNT(空),DRAWNULL),COLORGREEN,NODRAW;
时间: 2023-07-28 09:09:43 浏览: 191
通达信 准确率95以上的选股公式2018730.rar_指标_指标公式_选股指标_通达信公式_通达信指标
5星 · 资源好评率100%
EMA(C,60),COLORYELLOW,LINETHICK2;
BBI:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
VAR1:=(2*C+H+L)/4;
STICKLINE(VAR1>BBI,REF(BBI,1),BBI,2,0),COLORRED;
STICKLINE(VAR1<BBI,REF(BBI,1),BBI,2,0),COLORGREEN;
MA5:MA(C,5),COLORWHITE,DOTLINE;
{BARH:BBI,NODRAW; BARL:REF(BBI,1),NODRAW;}
多头:IF(MA(C,5)>MA(C,60) AND C>MA(C,5),C,DRAWNULL),COLORRED,NODRAW;
多头调整:IF(MA(C,5)>MA(C,60) AND C<MA(C,5),C,DRAWNULL),COLORWHITE,NODRAW;
空头:IF(MA(C,5)<MA(C,60) AND C<MA(C,5),C,DRAWNULL),COLORGREEN,NODRAW;
空头反弹:IF(MA(C,5)<MA(C,60) AND C>MA(C,5),C,DRAWNULL),COLORWHITE,NODRAW;
多:=IF(VAR1>BBI,1,0),COLORRED,NODRAW;
空:=IF(VAR1<BBI,1,0),COLORGREEN,NODRAW;
多头周期:IF(多>0,BARSLASTCOUNT(多),DRAWNULL),COLORRED,NODRAW;
空头周期:IF(空>0,BARSLASTCOUNT(空),DRAWNULL),COLORGREEN,NODRAW;
将原先的"EMA"改成了"C","CLOSE"改成了"C",其他语法没有变化。
阅读全文