2017通达信指标公式 通达信副图买卖说清楚指标公式
YM:=MA(((WINNER((CLOSE * 0.9)) * 100) * CLOSE),3);
DC:=(IF((YM > 10),YM,0) / 2);
主力资金:DC,STICK,LINETHICK4,COLORRED;
资金均量:MA(DC,5),COLORGREEN;
资金流入线:DC,COLORYELLOW,LINETHICK1;
资金均量线:MA(DC,5),COLORMAGENTA;
盘1:=COST(0.33);
盘2:=COST(5);
盘3:=COST(15);
盘4:=COST(55);
盘5:=COST(97);
获利:=WINNER(CLOSE)*100;
套牢:=100-WINNER(CLOSE)*100;
DRAWTEXT_FIX(1,0.02,0,0,EXTERNSTR(0,1)),COLOR719FFF;
DRAWTEXT_FIX (1,0.4,0,1,'升浪:'),COLOR00FFFF;
DRAWNUMBER_FIX(1,0.41,0,0,CONST(COST(55))),COLOR007DFB;
DRAWTEXT_FIX (1,0.5,0,0,'预测:'),COLOR00FFFF;
DRAWNUMBER_FIX(1,0.55,0,0,CONST(COST(97))),COLOR007DFB;
{DRAWTEXTABS(675,25,'升浪:'+NUMTOSTRN(盘4,2)),COLOR00FFFF;
DRAWTEXTABS(520,40,'获利:'+NUMTOSTRN(获利,2)+'%'),COLOR00FFFF;
DRAWTEXTABS(600,40,'套牢:'+NUMTOSTRN(套牢,2)+'%'),COLOR00FFFF;
DRAWTEXTABS(675,40,'预测:'+NUMTOSTRN(盘5,2)),COLOR00FFFF;}
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
MA4:=MA(CLOSE,30);
多头排列:= MA1>MA2 AND MA2>MA3 AND MA3>MA4 ;
MA60:=MA(C,60),COLORFFCC66; MA13:=MA(C,13),COLORFFCC66;
MA75:=MA(C,75),COLORFFCC66;
空头排列:= MA1<MA2 AND MA2<MA3 AND MA3<MA4 ;
下跌趋势:=MA4<REF(MA4,3)AND MA4<REF(MA4,1);
上升趋势:=MA4>REF(MA4,3) AND MA4>REF(MA4,1) ;
下降成:=CONST(IF(下跌趋势 AND MA1<REF(MA1,1) AND REF(NOT(下跌趋势),1),1,0));
上升成:=CONST(IF(上升趋势 AND REF(NOT(上升趋势),1),1,0));
DRAWTEXT_FIX(ISLASTBAR AND 下降成=1,0.8,0.2,0,'下降趋势成'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR AND 上升成=1,0.8,0.2,0,'上升趋势成'),COLOR8080FF;
一阴穿2线:=C/O<0.985 AND H>MA1 AND C<MA3;
一阳穿2线:=C/O>1.016 AND L<MIN(MA1,MA3)AND C>MAX(MA1,MA3);
发散度:=MA1/MA4;(股票知识网zhishi.southmoney.com)