通达信老丁MACD指标公式
2019-04-19 作者:股匠网整理 来源:本站整理
UPPER:= MA(C29) + 2*STD(C29);
LOWER:= MA(C29) - 2*STD(C29);
DIF:EMA(CLOSE12)-EMA(CLOSE26)COLORREDLINETHICK2;
DEA:EMA(DIF9)COLORWHITELINETHICK2;
持仓段:=4COLORLIRED;
空仓段:=4COLORLIGREEN;
MACD:(DIF-DEA)*2COLORSTICK;
STICKLINE(((MACD<REF(MACD1)) AND (MACD>0))0MACD10)COLORLIBLUELINETHICK2;
STICKLINE(((MACD>REF(MACD1)) AND (MACD<0))0MACD10)COLORFF00FFLINETHICK2;
建仓:IF(DIF<0DIF0)COLORYELLOWLINETHICK2;
加仓:IF(DIF<00DIF)COLORREDLINETHICK2;
白线破仓:IF(DIF<DEADIFDEA)COLORWHITELINETHICK2;
趋势强弱:IF(DIF>DEADEADEA)COLORFF937FLINETHICK2;
AA:=REF(DIF3)=HHV(DIF2*3+1);
BB:=BACKSET(AA3+1);
CC:=FILTER(BB3) AND DIF=HHV(DIF3+1);
A1:=BARSLAST(REF(CC1));
顶背离:=REF(CLOSEA1+1)<CLOSE AND REF(DIFA1+1)>DIF AND CC;
DRAWLINE(CCDIFFILTER(顶背离>05)DIF0)COLORREDLINETHICK2;
AA2:=REF(DIF3)=LLV(DIF2*3+1);
BB2:=BACKSET(AA23+1);
CC2:=FILTER(BB23) AND DIF=LLV(DIF3+1);
AA2A:=BARSLAST(REF(CC21));
底背离:=REF(CAA2A+1)>CLOSE AND REF(DIFAA2A+1)<DIF AND CC2;
DRAWLINE(CC2DIFFILTER(底背离>05)DIF0)COLORREDLINETHICK2;
DRAWLINE(CC2DIFFILTER(底背离>05)DIF0)COLORREDLINETHICK2;
上一篇: 通达信布林炒股主图指标公式
下一篇: 通达信涨停小能手选股指标公式