长短均线分时指标 (源码)

2012-03-16 08:19:00来源:本站整理浏览:296

通达信长短均线分时指标公式股票软件源码如下:

MA5:MA(CLOSE,5);
MA6:MA(CLOSE,6);
MA7:MA(CLOSE,7);
MA8:EMA(CLOSE,8);
MA9:EMA(CLOSE,9);
AA:=(MA5+MA6+MA7+MA8+MA9)/5;
MA12:MA(CLOSE,12);
MA13:MA(CLOSE,13);
MA14:MA(CLOSE,14);
MA15:MA(CLOSE,15);
MA16:MA(CLOSE,16);
BB:=(MA12+MA13+MA14+MA15+MA16)/5;
MA26:MA(CLOSE,26);
MA27:MA(CLOSE,27);
MA28:MA(CLOSE,28);
MA29:MA(CLOSE,29);
MA30:MA(CLOSE,30);
CC:=(MA26+MA27+MA28+MA29+MA30)/5;
MA68:MA(CLOSE,68);
MA69:MA(CLOSE,69);
MA70:MA(CLOSE,70);
MA71:MA(CLOSE,71);
MA72:MA(CLOSE,72);
DD:=(MA68+MA69+MA70+MA71+MA72)/5;
MA82:MA(CLOSE,82);
MA83:MA(CLOSE,83);
MA84:MA(CLOSE,84);
MA85:MA(CLOSE,85);
MA86:MA(CLOSE,86);
EE:=(MA82+MA83+MA84+MA85+MA86)/5;
短线:IF(AA>MAX(BB,CC),AA,IF(AA<MIN(BB,CC),BB,CC)),COLOR00FF00,LINETHICK4;
短强:IF(短线>REF(短线,1),短线,DRAWNULL),COLORYELLOW,LINETHICK4;
长线:IF(DD>MAX(DD,EE),DD,IF(DD<MIN(DD,EE),DD,EE)),COLORFFFF00,LINETHICK4;
长强:IF(长线>REF(长线,1),长线,DRAWNULL),COLORRED,LINETHICK4;
{www.gpxiazai.com 股票软件下载网_最新股票指标公式}
DRAWICON(短线>长线 AND L<长线 AND C>短线 AND C>O,L*0.98,1);
DRAWICON(CROSS(MIN(短线,长线),C),H*1.02,2);
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);
空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);
STICKLINE(A1X>=0,多方,突破,10,0),COLOR000099;
STICKLINE(A1X<0,空方,突破,10,0),COLOR00CC66;
均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;

通达信长短均线分时指标公式

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式