通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信expma主图指标公式
获利了结:EMA(EMA(EMA(HIGH,5),5),5)*1.15,ColorFFFFFF,linethick1;
风险:EMA(EMA(EMA(HIGH,5),5),5)*1.1,coloryellow;
回档:EMA(EMA(EMA(HIGH,5),5),5)*1.05,Color00FF00;
平衡:EMA(EMA(EMA(HIGH,5),5),5),ColorFF00FF,linethick1;
反弹:EMA(EMA(EMA(HIGH,5),5),5)*0.95,colorgray,linethick1;
超跌:EMA(EMA(EMA(HIGH,5),5),5)*0.9,colorblue,linethick1;
平衡:EMA(C,20),CIRCLEDOT,COLORwhite;
上轨:平衡+2*STD(C,20),LINETHICK2,COLORFF00FF;
下轨:平衡-2*STD(C,20),LINETHICK2,COLOR00ff00;
STICKLINE((CLOSE>平衡),平衡,平衡,1,0),LINETHICK6,color0000ff;
STICKLINE((平衡>CLOSE),平衡,平衡,1,0),LINETHICK6,colorff6600;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5,0),COLOR0000FF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5,0),COLOR00FF00;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5,0),COLOR00FF00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,7,0),COLORff7700;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,6,0),COLORff9900;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,5,0),COLORffbb00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,4,0),COLORffcc00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORffdd00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),COLORffee00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1,0),COLORffFF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0),COLOR000055;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0),COLOR000066;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0),COLOR000077;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR0000bb;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),COLOR0000dd;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),COLOR0000ff;
var9Q:=c=hhv(c,4)and(ref(c,1)>=ref(c,2)orref(c,1)>=ref(c,3))orref(c,1)=hhv(c,4)andclose>=ref(c,2)orref(c,2)=hhv(c,4)andref(c,3)=llv(c,4)andc>=ref(c,1)orref(c,3)=hhv(c,4)andc>=ref(c,1)andc>=ref(c,2);
红持:=var9Q;
stickline(var9Q,c,(o+c)/2,7,0),color000055;
stickline(var9Q,c,(o+c)/2,6,0),color000066;
stickline(var9Q,c,(o+c)/2,5,0),color000077;
stickline(var9Q,c,(o+c)/2,4,0),color000099;
stickline(var9Q,c,(o+c)/2,3,0),color0000bb;
stickline(var9Q,c,(o+c)/2,2,0),color0000dd;
stickline(var9Q,c,(o+c)/2,1,0),color0000ff;
varaQ:=c=hhv(c,4)andref(c,1)=llv(c,4);
粉变:=varaQ;
stickline(varaQ,c,(o+c)/2,7,0),colorff11ff;
stickline(varaQ,c,(o+c)/2,6,0),colorff33ff;
stickline(varaQ,c,(o+c)/2,5,0),colorff55ff;
stickline(varaQ,c,(o+c)/2,4,0),colorff77ff;
stickline(varaQ,c,(o+c)/2,3,0),colorff99ff;
stickline(varaQ,c,(o+c)/2,2,0),colorffbbff;
stickline(varaQ,c,(o+c)/2,1,0),colorffddff;
varbQ:=c=llv(c,4)and(ref(c,1)<ref(c,2)orref(c,1)<ref(c,3))orref(c,1)=llv(c,4)andc<ref(c,2)orref(c,2)=llv(c,4)andref(c,1)<>hhv(c,4)andc<ref(c,1)orref(c,3)=llv(c,4)andc<ref(c,1)andc<ref(c,2);
灰跌:=varbQ;
stickline(varbQ,c,(o+c)/2,7,0),color333333;
stickline(varbQ,c,(o+c)/2,6,0),color555555;
stickline(varbQ,c,(o+c)/2,5,0),color777777;
stickline(varbQ,c,(o+c)/2,4,0),color999999;
stickline(varbQ,c,(o+c)/2,3,0),colorbbbbbb;
stickline(varbQ,c,(o+c)/2,2,0),colordddddd;
stickline(varbQ,c,(o+c)/2,1,0),colorffffff;
varcQ:=ref(c,1)=llv(c,4)andc>=ref(c,2)orref(c,2)=llv(c,4)andref(c,1)<=ref(c,3)andref(c,2)<ref(c,4)andc>=ref(c,1);
绿买:=varcQ;
stickline(varcQ,o,(o+c)/2,7,0),color003300;
stickline(varcQ,o,(o+c)/2,6,0),color005500;
stickline(varcQ,o,(o+c)/2,5,0),color007700;
stickline(varcQ,o,(o+c)/2,4,0),color009900;
stickline(varcQ,o,(o+c)/2,3,0),color00bb00;
stickline(varcQ,o,(o+c)/2,2,0),color00dd00;
stickline(varcQ,o,(o+c)/2,1,0),color00ff00;
vardQ:=ref(c,1)=hhv(c,4)andc<ref(c,2)or(ref(c,2)=hhv(c,4)andref(c,1)>ref(c,3)orref(c,3)=hhv(c,4)andref(c,1)>ref(c,2))andref(c,2)>=ref(c,4)andc<ref(c,1);
蓝抛:=vardQ;
stickline(vardQ,o,(o+c)/2,7,0),colorff1100;
stickline(vardQ,o,(o+c)/2,6,0),colorff3300;
stickline(vardQ,o,(o+c)/2,5,0),colorff5500;
stickline(vardQ,o,(o+c)/2,4,0),colorff7700;
stickline(vardQ,o,(o+c)/2,3,0),colorff9900;
stickline(vardQ,o,(o+c)/2,2,0),colorffbb00;
stickline(vardQ,o,(o+c)/2,1,0),colorffdd00;
Y1:=REF(EMA(DMA((((HIGH+LOW)+(CLOSE*2))/4.15),0.9),3),1);
DRAWtext(CROSS(CLOSE,Y1),LOW,'[买进]'),ColorYELLOW;
STICKLINE(CROSS(Y1,CLOSE),h*1.05,h,1,0),COLORwhite;
DRAWtext(CROSS(Y1,CLOSE),HIGH*1.05,'[卖出]'),colorwhite;
VAR1w:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR2w:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR3w:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));
DRAWTEXT(CROSS(VAR2w,MA(VAR3w,6)),LOW-0.6,'(买)'),colorFF99FF;
DRAWTEXT(CROSS(MA(VAR3w,6),VAR1w),HIGH+0.9,'(卖)'),colorccFF13;
Var3p:=IF(CLOSE/REF(CLOSE,1)>1.050ANDHIGH/CLOSE<1.010ANDIF(CLOSE>REF(CLOSE,1),88,0)>0,91,0);
STICKLINE(Var3p>90,L,L*0.92,1,0),COLORff00ff;
DRAWTEXT(Var3p>90,LOW*0.92,'追涨'),COLORFF00FF;
Ss:=MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+CLOSE)/3,5),1)ANDREF(MA((LOW+HIGH+CLOSE)/3,5),1)<REF(MA((LOW+HIGH+CLOSE)/3,5),2);
SC:=L<HHV(MA((LOW+HIGH+CLOSE)/3,5),13)ANDH>HHV(MA((LOW+HIGH+CLOSE)/3,5),13)ANDC>REF(C,1)ANDC>O;
MR:=SCANDCOUNT(Ss,2);
买:=MRANDNOT(REF(MR,1));
STICKLINE(买,L,L*0.95,1,0),COLORred;
DRAWTEXT(买,L*0.95,'必涨'),COLORred;
多方:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
,3,1),2,1);
STICKLINE(CROSS(78.89,多方),h+1.5,h,1,0),COLOR00FF00;
DRAWTEXT(CROSS(78.89,多方),H+1.5,'(逃顶)'),COLOR00FF00;
A1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1);
A2:=(EMA(A1,5)-REF(EMA(A1,5),1))/REF(EMA(A1,5),1)*1;
A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*1;
DRAWTEXT(CROSS(A1,EMA(A1,5))ANDEMA(A1,5)<A5,l*0.98,'(黑马)'),COLORyellow;
Var1:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*1;
Var2:=SMA(Var1,3,1)*100;
趋势线:=SMA((SMA(Var2,3,1)*var1),3,1)*1;
Var9:=CROSS(趋势线,(SMA(Var2,3,1)*var1))AND(SMA(Var2,3,1)*var1)>8;
ma5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
MA250:MA(CLOSE,250),COLORRED;
E1:expma(CLOSE,17),LINETHICK2;
E2:EXPMA(CLOSE,50),LINETHICK2;
E3:EXPMA(CLOSE,12),LINETHICK2;
EXP1:=Ema(CLOSE,17);
EXP2:=EMA(CLOSE,17);
A1:=C>O;{说出票少,会站岗那就改为当天阳线,有需涨停换为C/REF(C,1)>1.099,}
A2:=LOW>EXP1;
boll:=MA(CLOSE,25);
A3:=LOW>BOLL;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=2*(DIF-DEA);
A4:=crOSS(DIF,DEA);
A5:=REF(A4,1);
A6:=COUNT(A5,21)>0;{今天之前3个星期以来曾经金叉}
停牌:=IF((C=0ORV=0),0,1);
一字板:=NOT(C=OANDH=L);
XG:A1ANDA2ANDA3ANDA4ANDA6AND停牌AND一字板;
指标公式知识:
上升三角形买卖技巧
股价的上升犹如波浪推进,有涨有落但总趋势向上,也就象长途跑步一样必须休息.股价整理的意义就在于休整,如果不整理,股价就不可能有能力再往上冲.对于短线炒手来讲,股价休整的时候可以暂时退出观望,或者抽出资金来买入那些休整结束的股票.如今市场的一个很大特点就是,每天都有很多股票正在盘整,也有些股票已经完成盘整开始新的上升.这样给投资者以很大的选择余地.
k线形态就可准确判断股价走势,上升三角形形态有其特殊性,在形态形成过程中经历几次较大幅度震荡。关键是投资者怎么抓住每一波上升浪,使得自己买入的股票上涨,这是股市赚钱的关键技巧。
在各种盘整走势中,上升三角形是最常见的走势,也是标准的整理形态.抓住刚刚突破上升三角形的股票,足以令你大赚特赚.
上升三角形没有完成之前,也就是在没有向上突破之前,事情的方向还是未知的,如果向上突破不成功,可能演化为头部形态,因此在形态形成的过程中不应轻举妄动.突破往往发生在明确的某一天,因为市场上其实有许多人在盯着这个三角形,等待它的完成.一旦向上突破,理所当然的会引起许多人的追捧,从而出现放量上涨的局面.
上升三角形形成过程中是难以识别的,但是通过盘面第二次回档时盘面情况来观察,可以有助于估计市势发展的方向.特别是对于个股走势判断,更加容易把握,因为现在的公开信息中包括三个买卖盘口的情况和即时成交的情况,只要仔细跟踪每笔成交,便可以了解该股回档时的抛压及下方支撑的力度,并分析是否属于自然止跌,如果属于庄家刻意制造图形,则支撑显得生硬勉强,抛压无法减轻.
图形组成:上边3个点,下边3个点组成;
操作技巧:
1、卖点:接近三角形上边卖出
2、买点:接近三角形下边买入突破三角形顶端3%左右买入回踩不破三角形顶端买入;、
注意点:
1、往上突破时必须有大的成交量,否则可能为假突破;如果量能放大突破则可跟进,此处为第一买点。
2、往回踩时收盘价不能低于三角形上边顶端价格,否则突破不成立,若回踩不破则为第二买点,且最安全。
例子:
每日通达信公式解答:
编写条件:
5日、10日、30日均线多头排列,MACD指标DIF大于DEA,DEA大于0的选股公式。
编写方法:
XG:MA(C,5)>MA(C,10)ANDMA(C,10)>MA(C,30)AND"MACD.MACD">0AND"MACD.DEA">0;
评论(0)