小黄人公式

该公式是在陶博士的月线反转MA3基础上,加入了其它编程高手的指标混合而成,一个大杂烩。比如其中的小钱袋,是指口袋支点信号,还有小黄人、月线反转信号、最大回撤百分比、股价偏离均线的幅度等。不需要设置参数,在通达信指标公式的其它类型中,可以新建一个,如果本来有月线反转MA3指标的,复制到里面覆盖就可以了。不过我还是建议另外建一个,免得覆盖后搞不掂就麻烦了。

MA10:MA(CLOSE,10);

MA20:MA(CLOSE,20);

MA50:MA(CLOSE,50);

MA120:MA(CLOSE,120);

MA250:MA(CLOSE,250);

Z:=EXTDATA_USER(3,0);{50天的}

RPS50:=Z/10;

D:=IF(RPS50>=85,1,0);{RPS50大于85}

A:=C/MA(C,250)>1;{站上年线}

NH:=IF(H

B:=COUNT(NH,30);{一月内曾创50日新高}

NN:=IF(C>MA(C,250),1,0);

AA:=COUNT(NN,30);

AB:=HIGH/HHV(HIGH,120)>0.9;{最高价距离120日内的最高价不到10%}

DRAWICON(BARSSINCEN((A AND B AND D AND  AA>3 AND AA<30 AND AB),30)=0,LOW,34);

NE:=IF(NAMELIKE('S') OR NAMELIKE('*S'),0.05,0.1);{通用个股/ST股}

涨停:=C/REF(C,1)-1>=NE-0.01/REF(C,1) AND C=H AND PERIOD=5;{仅在日线上变色}

STICKLINE(涨停,C,O,-1,0),COLORRED;

跌停:=REF(C,1)/C-1>=NE-0.01/REF(C,1) AND L=C AND PERIOD=5;

STICKLINE(跌停,C,O,-1,0),COLOR00FF00;

K120:=EXTDATA_USER(1,0);{120天的RPS}

RPSK120:=K120/10;

K01:=IF(RPSK120<=90,0,1);{RPS120大于90};

K250:=EXTDATA_USER(2,0);{250天的RPS}

RPSK250:=K250/10;

K02:=IF(RPSK250<=90,0,1);{RPS250大于90};

K50:=EXTDATA_USER(3,0);{50天的RPS}

RPSK50:=K50/10;

K03:=IF(RPSK50<=90,0,1);{RPS50大于90};

DRAWICON(BARSSINCEN((K01 AND K02 AND K03),20)=0,LOW*0.95,15);

DRAWICON(BARSSINCEN((K01 AND K02 AND K03),20)=0,LOW*0.95,15);

M1:=MA(C,10);

M2:=MA(C,50);

M3:=MA(C,120);

M4:=REF(M3,1);

M5:=MA(C,20);

M6:=REF(M5,1);

M7:=(H+L)/2;

M8:=MA(C,200);

M9:=REF(M2,1);

L250:=LLV(LOW,250);

H120:=HHV(HIGH,120);

Y:=EXTDATA_USER(3,0)/10;{50天的}

Y1:=EXTDATA_USER(1,0)/10;{120天的}

Y2:=EXTDATA_USER(2,0)/10;{250天的}

X11:=IF(C

X12:=(L-MA(C,10))/MA(C,10)*100;

X13:=(L-MA(C,50))/MA(C,50)*100;

DRAWICON((C-REF(C,1))/REF(C,1)>=0.02 AND VOL>=REF(HHV(X11,10),1) AND (X12<=1.5 OR X13<=1.5)

AND  M5>=M6  AND (M3>=M4 OR M2>=M9) AND C>M5 AND C>M1 AND C>M2 AND C>M3 AND C>M8 AND C>M7

AND C>=L250*1.2 AND  C>=(H120*0.85) AND (Y>=85 OR Y1>=85 OR Y2>=85),L,9);

DRAWICON((C-REF(C,1))/REF(C,1)>=0.02 AND VOL>=REF(HHV(X11,10),1) AND X12>1.5 AND  M5>=M6

AND (M3>=M4 OR M2>=M9) AND C>M5 AND C>M1 AND C>M2 AND C>M3 AND C>M8 AND C>M7 AND C>=L250*1.2

AND  C>=(H120*0.85) AND (Y>=85 OR Y1>=85 OR Y2>=85),H*1.02,37);

偏10%:(C-MA(C,10))/MA(C,10)*100,NODRAW;

偏20%:(C-MA(C,20))/MA(C,20)*100,NODRAW;

偏50%:(C-MA(C,50))/MA(C,50)*100,NODRAW;

偏200%:(C-MA(C,200))/MA(C,200)*100,NODRAW;

B11:=CONST(HHV(H,150));B12:=HHVBARS(H,150)+1;B13:=CONST(LLV(LOW,B12));B4:=B13/B11;

B15:=B4*100-100;最大回撤:B15,NODRAW;IF(B15<=-30,B15,DRAWNULL),NODRAW,COLORRED;

创250新高:=HHV(C,1)=HHV(C,250);

STICKLINE( 创250新高 AND BARSCOUNT(C)>=60,L*0.985 ,L*0.995 ,2 ,0 ),LINETHICK3,COLORCYAN;

创新高:=HHV(C,1)=HHV(C,3000);

STICKLINE( 创新高 AND BARSCOUNT(C)>=60,L*0.985 ,L*0.995 ,2 ,0 ),LINETHICK3,COLORYELLOW;

(0)

相关推荐