通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信极品的倍量柱副图指标公式
VAR1:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*200-100)/2;
VAR2:=SMA(SMA(VAR1,3,1),3,1);
跟风盘:MA(EMA(VAR2,3),3);
股价趋势:3*VAR2-2*跟风盘;
VAR3:=EMA(CLOSE,13)-EMA(CLOSE,26)*100;
VAR4:=EMA(VAR3,3);
多头能量:3*(VAR4-VAR3);
空头能量:2*跟风盘-3*VAR2;
STICKLINE(空头能量>0,空头能量,0,0,0);
STICKLINE(空头能量<0,空头能量,0,0,0);
LS:=C/REF(C,1)>1.048ANDC=HANDBETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
拉升:FILTER(LS,28)*100ANDL>REF(C,1)*0.93;
P1:=5;P2:=10;P3:=20;P4:=30;
卖出线:=98;
阶段卖:=96;
趋势:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
底部:=10;
买入警戒:STICKLINE(趋势<=10,HIGH,LOW,0.5,0),COLOR00FF00;
STICKLINE(趋势<=10,OPEN,CLOSE,5,1),COLOR00FF00;
买入信号:DRAWICON(CROSS(趋势,底部),LOW,8);
卖出警戒:STICKLINE(趋势>=阶段卖,HIGH,LOW,0.5,0),COLORBLUE;
STICKLINE(趋势>=阶段卖,OPEN,CLOSE,6,1),LINETHICK2,COLORBLUE;
卖出:DRAWICON(CROSS(卖出线,趋势),HIGH,9);
stICKLINE(V/REF(V,1)>2,V,0,3,0),COLORYELLOW;
STICKLINE(V/REF(V,1)>=6,V,0,3,0),COLORRED;
V1:=MIN(REF(vol,1),REF(VOL,2));
V2:=MIN(REF(VOL,3),REF(VOL,4));
V3:=MIN(REF(VOL,5),REF(VOL,6));
V4:=MIN(REF(VOL,7),REF(VOL,8));
V5:=MIN(REF(VOL,9),REF(VOL,10));
V6:=MIN(REF(VOL,11),REF(VOL,12));
V7:=MIN(REF(VOL,13),REF(VOL,14));
V8:=MIN(REF(VOL,15),REF(VOL,16));
W1:=MIN(MIN(V1,V2),MIN(V3,V4));
W2:=MIN(MIN(V5,V6),MIN(V7,V8));
ZM1:=MIN(W1,W2);
芝麻量:ZM1,COLORGREEN,LINETHICK1;
maVOL3:MA(ZM1,3);
MAVOL6:MA(ZM1,6);
MAVOL9:MA(ZM1,9);
MA(CLOSE,5);
MA(CLOSE,12);
DRAWICON(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),HIGH*1.035,1);
DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),HIGH*1.02,'卖吧');
J:MA(CLOSE,20)+2*STD(CLOSE,20);
Y:MA(CLOSE,20)-2*STD(CLOSE,20);
DRAWICON(CROSS((REF(HIGH,1)+REF(LOW,1))/2,J),H*1.035,4);
XGX7:ABS((VOL-REF(VOL,7))/REF(VOL,7))<0.04AND
VOL>1.8*REF(VOL,2)AND
REF(VOL,1)<REF(VOL,7)AND
REF(VOL,2)<REF(VOL,7)AND
REF(VOL,3)<REF(VOL,7)AND
REF(VOL,(7-3))<REF(VOL,7)AND
REF(VOL,(7-2))<REF(VOL,7)AND
REF(VOL,(7-1))<REF(VOL,7);
XGX8:ABS((VOL-REF(VOL,8))/REF(VOL,8))<0.04AND
VOL>1.8*REF(VOL,2)AND
REF(VOL,1)<REF(VOL,8)AND
REF(VOL,2)<REF(VOL,8)AND
REF(VOL,3)<REF(VOL,8)AND
REF(VOL,(8-3))<REF(VOL,8)AND
REF(VOL,(8-2))<REF(VOL,8)AND
REF(VOL,(8-1))<REF(VOL,8);
XGX9:ABS((VOL-REF(VOL,9))/REF(VOL,9))<0.04AND
VOL>1.8*REF(VOL,2)AND
REF(VOL,1)<REF(VOL,9)AND
REF(VOL,2)<REF(VOL,9)AND
REF(VOL,3)<REF(VOL,9)AND
REF(VOL,(9-3))<REF(VOL,9)AND
REF(VOL,(9-2))<REF(VOL,9)AND
REF(VOL,(9-1))<REF(VOL,9);
XGX10:ABS((VOL-REF(VOL,10))/REF(VOL,10))<0.04AND
VOL>1.8*REF(VOL,2)AND
REF(VOL,1)<REF(VOL,10)AND
REF(VOL,2)<REF(VOL,10)AND
REF(VOL,3)<REF(VOL,10)AND
REF(VOL,(10-3))<REF(VOL,10)AND
REF(VOL,(10-2))<REF(VOL,10)AND
REF(VOL,(10-1))<REF(VOL,10);
XGX11:ABS((VOL-REF(VOL,11))/REF(VOL,11))<0.04AND
VOL>1.8*REF(VOL,2)AND
REF(VOL,1)<REF(VOL,11)AND
REF(VOL,2)<REF(VOL,11)AND
REF(VOL,3)<REF(VOL,11)AND
REF(VOL,(11-3))<REF(VOL,11)AND
REF(VOL,(11-2))<REF(VOL,11)AND
REF(VOL,(11-1))<REF(VOL,11);
XGX12:ABS((VOL-REF(VOL,12))/REF(VOL,12))<0.04AND
VOL>1.8*REF(VOL,2)AND
REF(VOL,1)<REF(VOL,12)AND
REF(VOL,2)<REF(VOL,12)AND
REF(VOL,3)<REF(VOL,12)AND
REF(VOL,(12-3))<REF(VOL,12)AND
REF(VOL,(12-2))<REF(VOL,12)AND
REF(VOL,(12-1))<REF(VOL,12);
DRAWTEXT(XGX7,1.1,'7日平量柱');
DRAWTEXT(XGX8,1,'8日平量柱');
DRAWTEXT(XGX9,0.9,'9日平量柱');
DRAWTEXT(XGX10,0.8,'10日平量柱');
DRAWTEXT(XGX11,0.7,'11日平量柱');
DRAWTEXT(XGX12,0.6,'12日平量柱');
主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORFF00FF;
主力筹码集中度:WINNER(C)*100,COLORRED;
散筹筹码集中度:(WINNER(C*1.1)-WINNER(C*0.9))*100,COLORGREEN;
[源码注释]通达信公式动态翻译结果
N:=30;
ZTB:=IF(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('SST')
OR NAMELIKE('S*ST') OR NAMELIKE('S ST') ,(C>=ZTPRICE(REF(CLOSE,1),0.05) AND C=H),
IF((CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824)),(C>=ZTPRICE(REF(CLOSE,1),0.2) AND C=H)
,(C>=ZTPRICE(REF(CLOSE,1),0.1) AND C=H)));
XG:EVERY(ZTB,2) AND FINANCE(42)>N;
每日通达信公式解答:
编写条件:
近30个日内有涨幅大于9%阳线的选股公式。
编写方法:
XG:EXIST(C>OANDC>REF(C,1)*1.09,25);
评论(0)