通达信多空进出主图公式源码
短线看多空线和进出线变色,强弱看黄金线,主升看布林上轨,底部看布林下轨并且结合多空线和进出线进行判断。
指标为通达信源码
MA2c:=(EMA(c,(14*0.691))+EMA(c,14)+EMA(c,(14*1.309)))/3;
MA2h:=(EMA(h,(14*0.691))+EMA(h,14)+EMA(h,(14*1.309)))/3;
MA2l:=(EMA(l,(14*0.691))+EMA(l,14)+EMA(l,(14*1.309)))/3;
MA2o:=(EMA(O,(14*0.691))+EMA(O,14)+EMA(O,(14*1.309)))/3;
多空线:((MA2c*0.618+MA2O*0.382)*0.618+(MA2H*0.5+MA2L*0.5)*0.382),COLORWHITE;
DX:=多空线>REF(多空线,1);
Kx:=多空线<REF(多空线,1);
多:=BACKSET(BARSLAST(NOT(DX))>=5,BARSLAST(NOT(DX)));
空:=BACKSET(BARSLAST(NOT(Kx))>=5,BARSLAST(NOT(Kx)));
if(多=1,多空线,drawnull),COLORWHITE;
if(空=1,多空线,drawnull),COLORAAAA00;
MA3c:=(EMA(c,(26*0.691))+EMA(c,26)+EMA(c,(26*1.309)))/3;
MA3h:=(EMA(h,(26*0.691))+EMA(h,26)+EMA(h,(26*1.309)))/3;
MA3l:=(EMA(l,(26*0.691))+EMA(l,26)+EMA(l,(26*1.309)))/3;
MA3o:=(EMA(O,(26*0.691))+EMA(O,26)+EMA(O,(26*1.309)))/3;
进出线:(((MA3c*0.618+MA3O*0.382)*0.618+(MA3H*0.5+MA3L*0.5)*0.382)),COLORCYAN;
Sx:=进出线>REF(进出线,1);
Xx:=进出线<REF(进出线,1);
进:=BACKSET(BARSLAST(NOT(Sx))>=5,BARSLAST(NOT(Sx)));
出:=BACKSET(BARSLAST(NOT(Xx))>=5,BARSLAST(NOT(Xx)));
if(进=1,进出线,drawnull),COLOR6600FF;
if(出=1,进出线,drawnull),COLOR00bb00;
MAc:=(EMA(c,72*0.691)+EMA(c,72)+EMA(c,72*1.309))/3;
MAh:=(EMA(h,72*0.691)+EMA(h,72)+EMA(h,72*1.309))/3;
MAl:=(EMA(l,72*0.691)+EMA(l,72)+EMA(l,72*1.309))/3;
MAo:=(EMA(o,72*0.691)+EMA(o,72)+EMA(o,72*1.309))/3;
黄金线:((MAc*0.618+MAO*0.382)*0.618+(MAH*0.5+MAL*0.5)*0.382),COLORYELLOW;
黄金线+STD(mAc,72*2),COLORRED,DOTLINE;
黄金线-STD(mAc,72*2),COLORRED,DOTLINE;
730477557.jpg
|