通达信良友解盘主图指标(源码)
绿灯:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);
M1:=CONST(IF(空头排列 AND 均线下发散,1,0));
M2:=CONST(IF(多头排列 AND 均线上发散,1,0));
M3:=CONST(IF(空头排列 AND NOT(均线下发散),1,0));
M9:=CONST(IF(空头排列 ,1,0));
M10:=CONST(IF(多头排列 ,1,0));
MM1:=CONST(IF(均线密集,1,0));
MM2:=CONST(IF(上升趋势 AND NOT(一阴穿2线) AND REF(上升趋势,1),1,0));
M4:=CONST(IF(下跌趋势 AND NOT(一阳穿2线),1,0));
MM5:=CONST(IF(DIFF<0 AND MACD<0 AND MACD>REF(MACD,1),1,0));
MM7:=CONST(IF(ZEMACD>REF(ZEMACD,1) AND ZEMACD<0,1,0));
MM8:=CONST(IF(下跌趋势 AND REF(下跌趋势,1) AND NOT(一阳穿2线),1,0));
MM9:=CONST(IF(ZEMACD<REF(ZEMACD,1) AND ZEMACD>0,1,0));
量大:=(卖盘+买盘)/REF(VOL,1)>2;
M5:=CONST(量大);
量缩:=REF(VOL,1)/(卖盘+买盘)>1.5;
M6:=CONST(量缩);
卖量大:=(卖盘-买盘)/买盘>0.4;
M7:=CONST(卖量大);
买量大:=(买盘-卖盘)/卖盘>0.4;
M8:=CONST(买量大);
DRAWTEXT_FIX(ISLASTBAR AND M2=1,0.6,0.2,0,'均线多头发散,注意13日线得失'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR AND M7=1,0.8,0,0,'☆卖出量大于买入量40%以上;'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR AND M8=1,0.8,0,0,'☆买入量大于卖出量40%以上'),COLORRED;
{{DRAWTEXT_FIX(ISLASTBAR AND MM1=1,0.2,0,7,'均线密集,注意方向变化'),COLORYELLOW;}
DRAWTEXT_FIX(ISLASTBAR AND M1=1,0.4,0.2,0,'有加速下跌趋势'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND M2=1,0.4,0.2,0,'有加速上升趋势'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND M4=1,0.5,0.2,0,'下跌趋势未变,'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND MM2=1,0.5,0.2,0,'上升趋势未变,'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND M9=1,0.8,0.2,0,'均线空头排列,'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR AND M10=1,0.8,0.2,0,'均线多头排列,'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND MM5=1,0.25,0.35,0,'下跌趋势趋缓,可能转折,'),COLORRED;
{DRAWTEXT(VAR2N AND VAR3N,L*0.99,'反击'),COLOR00FF00;}
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
乖:=CONST(IF(CROSS(BIAS,乖离) AND 乖离<-9,1,0)),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND 乖=1,0.65,0.35,0,'乖离买点,'),COLORRED;
坑:=CONST(IF( 乖离<-19,1,0)),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND 坑=1,0.65,0.5,0,'深坑买点,'),COLORRED;
- 上一篇公式:通达信买盘卖盘控盘指标(源码)
- 下一篇公式:通达信敢死操盘主图指标(源码)