股票软件通达信精品指标公式-主力筹码指标源码通达信公式

2017-11-21    来源:原创    编辑:翔博软件
公式源码: VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70; VAR2:=SMA(VAR1,9,1)+100; VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; VAR4:=SMA(VAR3


公式源码:

VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;

VAR2:=SMA(VAR1,9,1)+100;

VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

VAR4:=SMA(VAR3,3,1);

VAR5:=SMA(VAR4,3,1)+100;

VAR6:=VAR5-VAR2;

趋势: IF(VAR6>45,VAR6-45,0);

STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),5,0),COLORFF00FF;

STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),5,0),COLOR00FF00;

强弱分界:50,POINTDOT,COLORFFFFCC;

 

V1:=LLV(LOW,10);

V2:=HHV(H,25);

B1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100- 70;

B2:=SMA(B1,9,1)+100;

B3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;

B4:=SMA(B3,3,1);

B5:=SMA(B4,3,1)+100;

B6:=B5-B2;

B7:IF(B6>60,B6-60,0);

价位线:=EMA((C-V1)/(V2-V1)*4,4);

DRAWTEXT(B7>REF(B7,1) AND REF(B7,1)<=REF(B7,2) AND B7<=40,B7+5,'★买入'),COLORRED,LINETHICK2;

 

VAR2Q:=REF(LOW,1);

VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;

VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);

VAR5Q:=LLV(LOW,30);

VAR6Q:=HHV(VAR4Q,30);

VAR7Q:=IF(MA(CLOSE,58),1,0);

VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;

VAR9Q:=IF(VAR8Q>100,100,VAR8Q);

吸筹:STICKLINE(VAR9Q>-120,0,VAR9Q,6,1),COLORYELLOW;

AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;

AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;

AA5:=SMA(AA4,13,8);

走势:=CEILING(SMA(AA5,13,8));

AA6:=SMA(AA3,21,8);

卖临界:STICKLINE(走势-AA6>85,103,100,15,1),COLOR0000FF,LINETHICK2;

虎: (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100, COLORSTICK;

主力:EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,120)-0.0004,LINETHICK5,COLORMAGENTA;

散户:EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,200),LINETHICK5,COLORGREEN;

 

DRAWICON(CROSS(EXPMA(虎,120)-0.0004,EXPMA(虎,200)),EXPMA(虎,200)*1,13); 

DRAWICON(CROSS(EXPMA(虎,200),EXPMA(虎,120)-0.0004),EXPMA(虎,200)*1,2);

Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05,0.95);

Q2:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))));

DRAWICON(CROSS((C/Q2),1.03),0.02,6);

STICKLINE(CROSS((C/Q2),1.03),0.02,0,4,0), , COLORYELLOW;

R1:=EMA(HHV(HIGH,500),21); 

R2:=EMA(HHV(HIGH,250),21); 

R3:=EMA(HHV(HIGH,90),21); 

R4:=EMA(LLV(LOW,500),21); 

R5:=EMA(LLV(LOW,250),21); 

R6:=EMA(LLV(LOW,90),21); 

R7:=EMA((R4*0.96+R5*0.96+R6*0.96+R1*0.558+R2*0.558+R3*0.558)/6,21); 

R8:=EMA((R4*1.25+R5*1.23+R6*1.2+R1*0.55+R2*0.55+R3*0.65)/6,21); 

R9:=EMA((R4*1.3+R5*1.3+R6*1.3+R1*0.68+R2*0.68+R3*0.68)/6,21); 

RA:=EMA((R7*3+R8*2+R9)/6*1.738,21); 

RB:=REF(LOW,1); 

RC:=SMA(ABS(LOW-RB),3,1)/SMA(MAX(LOW-RB,0),3,1)*100; 

RD:=EMA(IF(CLOSE*1.35<=RA,RC*10,RC/10),3); 

RE:=LLV(LOW,30); 

RF:=HHV(RD,30); 

R10:=IF(MA(CLOSE,58),1,0); 

主力建仓:EMA(IF(LOW<=RE,(RD+RF*2)/2,0),3)/618*R10,COLORSTICK;

 

FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));

FM:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);

BB:=IF(MA(CLOSE,17)<FM,FM,MA(CLOSE,17));

年线:=EMA(C,200);

DIFF:=EMA((年线-(EMA(C,3)-年线)),5); 

追涨跌破止损:= EMA(COST(81),10) ;

牛熊线:= EMA(COST(27),120);

LS:=C/REF(C,1)>1.035 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));

拉升:FILTER(LS,28)*100,COLORYELLOW;

全盘穿越:=C>REF(C,1) AND 100*WINNER(C)-REF(100*WINNER(C),1)>=30;

DRAWTEXT(全盘穿越,L,'↖穿越'), COLOR007FFF;

UPR:=BBIBOLL+6*STD(BBIBOLL,11);

VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);

XG: (CLOSE-OPEN)>=(UPR-BBIBOLL)AND REF(C/REF(C,1)<1.06,1)AND VVOL>REF(V,1)*1.9;

空:=EMA(C,5);

均衡:=EMA(空,5);

中轨:=HHV(MA(H,13),13);

追涨买入:IF(FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11),45,0),COLORWHITE;

DRAWTEXT(FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11),60,'追涨'),COLORWHITE;

P:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05,0.95);

天:=IF(P=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))));

DRAWICON(CROSS((C/天),1.03),15,6);

STICKLINE(CROSS((C/天),1.03),15,0,4,0), , COLORYELLOW;

 

特别提示:

选股预警指标编写 ,不同主流行情软件间指标转换。 请联系微信:396950280

 

一个聚百万原创指标公式圈子

	

	

原创价值分享思维

ID:xiangbogongshi

1
3
点击进入翔博软件旗下官方微店--指标超市