公式指标平台 股票指标公式源码分享 登录 注册
公式指标平台
未来函数检测
首 页 金钻指标 通达信公式 大智慧公式 同花顺公式 文华财经公式 操盘手公式 东财通公式 飞狐公式 其他公式 公式解答 股票软件 股票池
当前位置:→ 公式指标平台 > 同花顺公式 > 正文 → 正文

同花顺中线宝指标公式源码

发布时间:2015/6/16 6:15:14  浏览次数:

 中线宝包含短线宝在内,是中线持有加短线波段的组合指标,追求收益最大化。短线宝信号出现后,要是在压力位,或者在热高位,注意风险,低位和中位信号可靠,成功率几乎百分之95.在牛市中行情或者多头行情中,买如重仓,在熊市或空头行情中轻仓。

添加了拉升指标,很准确,拉升指标只做强势股

 

短线宝和拉升信号不多,出现就很准

 

短线宝是macd的拐点和换手率的结合,开始拉升指标是换手率大于3量比大与1.5振幅大于10均线多头排列5日均线角度大于60等关键指标的结合

 


hsl:=V/CAPITAL*100;

DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);

DEA1:=EMA(DIF1,9);

AAA1:=(DIF1-DEA1)*2*60;

短线宝:CROSS(AAA1-REF(AAA1,1),7) AND DIF1>=DEA1 AND hsl>3,colorgreen,nodraw;

STICKLINE(短线宝>0 AND 短线宝>=REF(短线宝,1),0,短线宝,5,0),colorgreen;

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

RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;

短线:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21);

中线:=SMA(RSV2,5,1)+2*STD(CLOSE,37);

RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;

长线:=SMA(RSV3,5,1);

金坑:短线<20 AND 中线<20 AND 长线<20,colorwhite,nodraw;

STICKLINE(金坑>0 AND 金坑>=REF(金坑,1),0,金坑,2,0),colorwhite;

DIFF : EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite;

DEA : EMA(DIFF,9),coloryellow;

MACD=2*(DIFF-DEA);

Zero : =0;

gj:=MAX(C,O);

STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,1,0),color0000ff;

STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,1,0),colorffff00;

STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,1,0),colorff00ff;

STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,1,0),color00ff00;

A0:=DIFF<0 AND DEA<0;

A11:=A0>REF(A0,1);

A3:=BARSLAST(A11);

A4:=COUNT(DEA>0 AND DIFF >0,A3)=0;

A5:=CROSS(DIFF ,DEA);

A6:=BARSLAST(A5);

A7:=REF(A6,A6+1)+A6;

A8:=(DIFF+DEA)/2;

A9:=(HIGH+LOW)/2;

A10:=A5 AND A7<A3 AND A4 AND A8>REF(A8,A7) AND A9<REF(A9,A7) AND MACD>0;

DRAWTEXT(A10,DIFF*0.95,'★金叉买入'),coloryellow;

AA:=(O+H+L+C)/4;

A1:=HHV(AA,15);

A2:=LLV(AA,15);

A3:=A1-A2;

A4:=EMA((AA-A2)/A3,2)*9;

RSV:= (HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*10;

空:=SMA(RSV,2,1)/5;

多:=A4;

STICKLINE(空>1.3 AND 多<0.3 AND C*0.02<(EMA(C,5)-C),0,ABS(SMA(MAX(MACD,0),5,1)-ABS(MACD))*0.5,8,0),colorwhite;

主力成本下建仓:0,colorwhite;

zf:=(H-L)/REF(C,1)*100;"下边写了振幅大于10";

m5:=EMA(C,5);

m10:=EMA(C,10);

m20:=EMA(C,20);

hsl:=V/CAPITAL*100;

v1:=C>m5 AND m5>m10 AND m10>m20 AND C>REF(C,1) AND m5>REF(m5,1)

AND m10>REF(m10,1) AND m20>REF(m20,1) AND C/O>1.03 AND (H-C)/C<0.02;"这是黄短期均线多头排列";

v2:=V>REF(V,1)*1.3 AND hsl>3;"这是换手率大于3";

V3:=V/REF(MA(V,5),1)>1.5;"这是量比大于1.5";

大60度且5日线:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14159>60;"这是5日线大于60度角";

开始拉升:zf>10 AND v1 AND v2 AND V3 AND 大60度且5日线,coloryellow,nodraw;

STICKLINE(开始拉升>0 AND 开始拉升>=REF(开始拉升,1),0,开始拉升,8,0),coloryellow;

a1:=CROSS(DIFF,DEA);

a2:=CROSS(MA(V,5),MA(V,10));

奔牛:a1 AND a2 AND v1 AND 大60度且5日线,colormagenta,nodraw;

STICKLINE(奔牛>0 AND 奔牛>=REF(奔牛,1),0,奔牛,8,0),colormagenta;

MA5:=EMA(C,5);

MA10:=EMA(C,10);

MV5:=EMA(V,5);

MV10:=EMA(V,10);

K:="KDJ.K"(9,3,3);

D:="KDJ.D"(9,3,3);

V1:=MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND C>REF(C,1) AND C/O>1.01;

VV1:=MV5>REF(MV5,1) AND MV10>=REF(MV10,1) AND V>REF(V,1)*1.2 ;

KD1:=K>REF(K,1) AND D>=REF(D,1);

VA:=COUNT(CROSS(K,D),4)>=1 AND COUNT(CROSS(MA5,MA10),4)>=1 AND

COUNT(CROSS(MV5,MV10),4)>=1;

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

MACD:=2*(DIF-DEA);

A1:=CROSS(DIF,DEA);

A2:=REF(A1,1);

A3:=COUNT(A2,21);

A4:=MA(C,5)>=MA(C,10) AND MA(C,10)>=MA(C,30) AND MA(C,30)>=MA(C,60)

AND MA(C,60)>=MA(C,120) AND MA(C,120)>=MA(C,250) ;

ST:=STRFIND(STKNAME,'ST',1)>0;

S:=STRFIND(STKNAME,'S',1)>0;

停牌:=(DYNAINFO(4)=0);

关注:IF(V1 AND VV1 AND KD1 AND VA,1,0) AND A1 AND A3 AND A4 AND NOT(ST) AND NOT(停牌) AND NOT(S),colorligray,linethick1;

DRAWTEXT(关注,1.1,"关注"),colorligray,linethick2;

 

同花顺中线宝指标公式源码

资源下载链接   资源大小:unknow
精品资源推荐

手机移动版 - 关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - TOP
湘ICP备09016573号 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © GSZB.COM ,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识