通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信量能买卖指标公式
MON:=(2*C+H+L)/4;
STICKLINE(MON>REF(MON,1),0,VOL,3,DRAWNULL),COLORRED;
STICKLINE(MON<REF(MON,1),0,VOL,3,DRAWNULL),COLORCYAN;
STICKLINE(MON=REF(MON,1),0,VOL,3,DRAWNULL),COLORWHITE;
Var1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
Var2:=2*ABS(Var1);
Var3:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
Var4:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
Var5:=(HIGH+LOW+CLOSE)/3;
Var6:=(Var5-MA(Var5,14))/(0.015*AVEDEV(Var5,14));
Var7:=(Var5-MA(Var5,70))/(0.015*AVEDEV(Var5,70));
Var8:=IF(Var6>=150ANDVar6<200ANDVar7>=150ANDVar7<200,10,0);
Var9:=IF(Var6<=-150ANDVar6>-200ANDVar7<=-150ANDVar7>-200,-10,Var8);
VarA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VarB:=100-ABS(VarA);
VarC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
VarD:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
VarE:=REF(LOW,1)*0.9;
VarF:=LOW*0.9;
Var10:=(VarF*VOL+VarE*(CAPITAL-VOL))/CAPITAL;
Var11:=EMA(Var10,30);
Var12:=Var11-CLOSE;
Var13:=REF(CLOSE,1);
Var14:=SMA(MAX(CLOSE-Var13,0),7,1)/SMA(ABS(CLOSE-Var13),7,1)*100;
Var15:=SMA(MAX(CLOSE-Var13,0),13,1)/SMA(ABS(CLOSE-Var13),13,1)*100;
Var16:=BARSCOUNT(CLOSE);
Var17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
Var18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
Var19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
Var1A:=(SMA(Var19,4,1)-50)*2;
Var1B:=SMA(Var1A,3,1);
Var1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
Var1D:=SMA(Var1C,4,1);
Var1E:=SMA(Var1D,3,1);
Var1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
Var20:=IF(Var17<=25ANDVar18<-95ANDVar1F>20ANDVar1B<-30ANDVar1E<30ANDVar12>=-0.25ANDVar14<22ANDVar15<28ANDVar16>50,80,0);
情报:Var3;
天线:IF(VarB<90,VarB,100);
红军:IF(Var1>0,Var1,0),colorred,LINESTICK;
绿军:IF(Var1<0,Var2,0),colorgreen,LINESTICK;
导弹:Var20;
预警系统:IF(Var7>=200ANDVar6>=150,15,IF(Var7<=-200ANDVar6<=-150,-15,Var9))+60;
STICKLINE(Var3>=REF(Var4,1),Var3,Var4,8,0);
STICKLINE(Var3<REF(Var4,1),Var3,Var4,8,0);
Var21:=CLOSE>MA(CLOSE,20)ANDMA(CLOSE,20)>=REF(MA(CLOSE,20),1);
Var22:=CLOSE<MA(CLOSE,20)ANDMA(CLOSE,20)<REF(MA(CLOSE,20),1);
Var23:=红军>50AND预警系统>60AND天线=100;
Var24:=红军>48AND预警系统>60AND天线<100;
Var25:=绿军>38AND预警系统<55;
Var26:=导弹>50AND天线<90;
Var27:=Var3<REF(Var4,1)ANDVOL>REF(VOL,1)ANDCLOSE>REF(CLOSE,1);
Var28:=Var3>=REF(Var4,1)ANDCLOSE<REF(CLOSE,1)AND预警系统=60AND导弹=0AND绿军>=REF(绿军,1)ANDVarC<REF(VarD,1);
DRAWTEXT(Var21ANDCOUNT(Var21,30)=1,100,'上升通道,持股待长或高抛低吸!');
DRAWTEXT(Var22ANDCOUNT(Var22,30)=1,90,'下降通道,小心无量阴跌!');
DRAWTEXT(Var23ANDCOUNT(Var23,30)=1,70,'上涨过急,需要调整,短线先抛出!');
DRAWTEXT(Var24ANDCOUNT(Var24,30)=1,80,'庄家出货,大跌在即,中线抛出!');
DRAWTEXT(Var25ANDCOUNT(Var25,30)=1,50,'不必杀跌,应有小反弹,跌停除外!');
DRAWTEXT(Var26ANDCOUNT(Var26,30)=1,30,'坚决抢反弹,但巨量封跌停除外');
DRAWTEXT(Var27ANDCOUNT(Var27,30)=1,40,'有大资金进场迹象,关注!');
DRAWTEXT(Var28ANDCOUNT(Var28,30)=1,20,'见顶回落');
买入:IF(VAR27ANDCOUNT(VAR27,30)=1,100,0),LINETHICK3,colorblue;
万手:VOL/10000,LINETHICK0,NODRAW;
VOL5:MA(VOL,5),COLORWHITE;
VOL10:MA(VOL,10),COLORYELLOW;
{VOL20:MA(VOL,20);
VOL60:MA(VOL,60),COLORRED,LINETHICK2;};
指标公式知识:
必须牢记的经典卖出信号
在高位形成一个圆弧形态,并且放量急跌脱离圆弧形态运行,可说明是顶部成立,应立即卖出,反抽机会也是最后的逃命机会。
股价形成头肩顶形态后出现较大的跌幅,应立即卖出。并最终完成该形态最小量度跌幅。
股价形成了大双头其多个小头的走势,当跌破形态劲线位后形成较大的跌势,其间的反抽始终未能重返劲线位之上立即卖出。
箱体整理一段时间后跌破下轨进入下跌趋势中,在跌破下轨时应立即卖出。
股价跌破对称三角形下轨时应立即卖出,之后并一路下跌。对称三角形仅是下跌过程中的修正形态而已。
下降三角形低点形成水平线而高点不断下移形成一条下倾线,显示抛压加大,一旦水平线跌破应立即卖出。
上升趋势线上升一段时间后,突然破位下跌,并跌破上升趋势线的下轨线,说明上升趋势已变,此时应立即卖出
每日通达信公式解答:
编写条件:
最近3日macd大于0的选股公式。
编写方法:
XG:EVERY(MACD.MACD>0,3);
评论(0)