股票的公式有哪些?同花顺三七花指标公式
2016-6-12 10:09:35 股票入门 http://rumen.southmoney.com
股票的公式有哪些?同花顺三七花指标公式 附:同花顺买卖分时图立马分高下公式源码分享 南方财富网小编为您提供
【同花顺三七花指标公式】
EMA3:=EMA(SLOPE(1,1)+C,3),colormagenta;
WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">
EMA7:=EMA(SLOPE(1,1)+C,7),colorwhite;
DRAWICON(COUNT(EMA3<EMA7,5)=4 AND EMA3>=EMA7,LOW/1.02,1);
DRAWICON(CROSS(EMA3,EMA7) AND CLOSE/REF(CLOSE,1)>1.03,LOW/1.02,1);
DRAWICON(COUNT(EMA3>=EMA7,5)=4 AND EMA3<EMA7,HIGH*1.02 ,2);
STICKLINE(EMA3>= EMA7 ,CLOSE,OPEN,8,0) ,COLOR000077;
STICKLINE(EMA3>= EMA7 ,CLOSE,OPEN,7,0) ,COLOR000099;
STICKLINE(EMA3>= EMA7 ,CLOSE,OPEN,6,0) ,COLOR0000bb;
STICKLINE(EMA3>= EMA7 ,CLOSE,OPEN,5,0) ,COLOR0000cc;
STICKLINE(EMA3>= EMA7 ,CLOSE,OPEN,4,0) ,COLOR0000dd;
STICKLINE(EMA3>= EMA7 ,CLOSE,OPEN,3,0) ,COLOR0000ee;
STICKLINE(EMA3>= EMA7 ,CLOSE,OPEN,2,0) ,COLOR0000ff;
STICKLINE(EMA3>= EMA7 ,CLOSE,CLOSE/1.006,1,0),COLOR0000ff;
STICKLINE(EMA3>= EMA7 ,CLOSE,CLOSE/1.005,2,0),COLOR0000ee;
STICKLINE(EMA3>= EMA7 ,CLOSE,CLOSE/1.004,3,0),COLOR0000dd;
STICKLINE(EMA3>= EMA7 ,CLOSE,CLOSE/1.003,4,0),COLOR0000cc;
STICKLINE(EMA3>= EMA7 ,CLOSE,CLOSE/1.002,5,0),COLOR0000bb;
STICKLINE(EMA3>= EMA7 ,CLOSE,CLOSE/1.001,6,0),COLOR000099;
STICKLINE(EMA3>= EMA7 ,OPEN,OPEN*1.006,1,0),COLOR0000ff;
STICKLINE(EMA3>= EMA7 ,OPEN,OPEN*1.005,2,0),COLOR0000ee;
STICKLINE(EMA3>= EMA7 ,OPEN,OPEN*1.004,3,0),COLOR0000dd;
STICKLINE(EMA3>= EMA7 ,OPEN,OPEN*1.003,4,0),COLOR0000cc;
STICKLINE(EMA3>= EMA7 ,OPEN,OPEN*1.002,5,0),COLOR0000bb;
STICKLINE(EMA3>= EMA7 ,OPEN,OPEN*1.001,6,0),COLOR000099;
STICKLINE(EMA3<= EMA7 ,CLOSE,OPEN/1.006,9,0),colorliblue;
STICKLINE(EMA3<= EMA7 ,CLOSE,OPEN/1.005,8,0),colorliblue;
STICKLINE(EMA3<= EMA7 ,CLOSE,OPEN/1.004,7,0),colorliblue;
STICKLINE(EMA3<= EMA7 ,CLOSE,OPEN/1.003,3,0),colorliblue;
STICKLINE(EMA3<= EMA7 ,CLOSE,OPEN/1.002,2,0),colorgreen;
A1:=EMA(C,14),colorwhite,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
STICKLINE(CROSS(A1X,0),C,O,2,0),coloryellow;
STICKLINE(CROSS(0,A1X),C,O,2,0),colorgreen;
附:【同花顺买卖分时图立马分高下公式源码分享】
均价:=MONEY/VOL;
e:=(NEW-均价)/均价;
//(1)上涨动量指标;
IF(FORMATTIME(1)>0)
{
DIFF :=EMA(NEW,5) - EMA(NEW,12);
DEA :=EMA(DIFF,9);
上涨动量 :2*(DIFF-DEA)*100;
}
ELSE
{
DIFF:=0;
DEA:=0;
上涨动量:0;
}
//(2)大单指标与大单差值{大单指标};
DDJL:=((BIGBUYCOUNT1+BIGBUYCOUNT2+WAITBUYCOUNT1+WAITBUYCOUNT2)-(BIGSELLCOUNT1+BIGSELLCOUNT2+WAITSELLCOUNT1+WAITSELLCOUNT2))/SHGZG*100;
zdm:=(BIGBUYCOUNT1+BIGBUYCOUNT2)/SHGZG*100;
dm:=ddjl-REF(ddjl,1);
dz:=zdm-REF(zdm,1);
zdzq:=COUNT(dz=0,3)>=2;
//(3)成交量{成交量指标};
b:=MAX(0,SUBSAMEDAY(&VOL));
Vb:=SUM(b,FORMATTIME(1));
MA5b:=(SUM(b,6)-b)/5;
dv:=b/MA5b;
VL5:=SUM(b,5);
Vl51:=SUM(b,10)-SUM(b,5);
dl5:=Vl5/Vl51;
//(4)振幅和最低涨幅条件;
H1:=HHV(NEW,20);
L1:=LLV(NEW,20);
p1:=(H1-L1);
p2:=PRE;
ZF:=p1/p2;
zd:=(NEW-L1)/PRE;
zg:=(NEW-H1)/PRE;
//5分钟震荡量
H0:=HHV(NEW,5);
L0:=LLV(NEW,5);
HL:=(H0-L0)/PRE;
MAhl:=MA(Hl,FORMATTIME(1));
dhl:=Hl/MAhl;
//(5)委托指标
委买:=BUYCOUNT;
委卖:=SELLCOUNT;
//(6)均线趋势指标
MA1:=MA(NEW,5);
MA2:=MA(NEW,30);
sv:=MA1-MA2;
sv1:=MA(NEW,2)-MA(NEW,5);
//卖出条件1
ss:=CROSS(dea,diff) AND 委卖>0 AND Hl>=0.01 AND dhl>1 AND e>0.02 AND zd>0.02;
sd:=COUNT(ss>0,FORMATTIME(1));
IF(sd<=1)
ss1:=ss;
ELSE
ss1:=0;
//买入条件1
zq:=BARSLAST(ss1>0);
jg:=REF(NEW,zq);
ZFf:=(NEW-REF(NEW,zq))/REF(NEW,zq);
bb:=CROSS(diff,dea) AND ZFf<-0.01 AND sd>0 AND dm>=0 AND dv>1 ;
ssb:=COUNT(bb>0,FORMATTIME(1));
IF(ssb<=1)
bb1:=bb;
ELSE
bb1:=0;
//卖出条件2
H2:=HHV(NEW,MIN(FORMATTIME(1),10));
L2:=LLV(NEW,MIN(FORMATTIME(1),10));
ZF1:=IF(FORMATTIME(1)>=10,(NEW-L2)/PRE,0);;
ss0:=CROSS(dea,diff) AND HHV(ZF1,10)>0.03 AND HHV(ZF1,10)<0.08AND 委卖>0 AND ss=0;
sd0:=COUNT(ss0>0,FORMATTIME(1));
IF(sd0<=1)
ss2:=ss0;
ELSE
ss2:=0;
//买入条件2
zq1:=BARSLAST(ss2>0);
jg:=REF(NEW,zq1);
ZF2:=(NEW-REF(NEW,zq1))/REF(NEW,zq1);
bb0:=CROSS(diff,dea) AND sd0>0 AND ((ZF2<-0.01 AND sv>0)OR (ZF2<-0.02 AND sv1>0));
ssb1:=COUNT(bb0>0,FORMATTIME(1));
IF(ssb1<=1)
bb2:=bb0;
ELSE
bb2:=0;
FILLRGN(diff,dea,上涨动量>0,Color0000ff,上涨动量<0,Color00ff00);
//卖
DRAWTEXT(ss1>0,diff+0.8*ABS(diff),"高抛"),colorliblue;
DRAWTEXT(ss2>0 ,diff+0.8*ABS(diff),"出"),colorligreen;
VERLINE( ss1>0,1),colorwhite,LINETHICK2;
VERLINE(ss2>00,1),COLOR00FF00,LINETHICK2;
//买
DRAWTEXT(bb1>0,diff-0.1,"低吸"),colorred;
DRAWTEXT(bb2>0 ,diff-0.1,"入"),colorlired;
VERLINE( bb1>0,1),colorred,LINETHICK2;
VERLINE(bb2>0 ,1),colorlired,LINETHICK2;
更多股票公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。