飞狐安全投机+买卖指标+绝以强势指标源码[其他软件公式]
相关标签: 民国投机者 、 民国投机者最新章节 、 民国投机者 燃文 、 投机少爷 、 民国投机者txt下载 、 话不投机半句多 、 投机岛 、 民国投机者 快眼 、 国民投机者 、
{安全投机}
DRAWTEXTEX(c,1,5,5,'所属板块:' + BLKNAME),ALIGN4,colorred;
DD:=FINANCE( 1);
SS:=FINANCE( 7);
BL:=SS/DD*100;
GG:=FINANCE(33);
TH:=DYNAINFO(39);
JZ:=FINANCE(34);
DRAWTEXTEX(c,1,5,55,'总股本:'+NUMTOSTR(DD,0)+'万股' +'流通A股:'
+NUMTOSTR(SS,0)+'万股'+'流通比例:'+NUMTOSTR(BL,3)+'%'+'市盈率:'
+NUMTOSTR(TH,2)+' 倍'+'收益:'+NUMTOSTR(GG,3)+' 元'+'净资产:'
+NUMTOSTR(JZ,3)+' 元'),COLORGREEN;
生命线:sum(vol*(o+c)/2,88)/sum(vol,88),colorff80ff,LINETHICK2;
分离线:MA(CLOSE,17)+ABS(MA(CLOSE,17)-ref(MA(CLOSE,17),1)),colorf4e202,LINETHICK2;
MA17:MA(CLOSE,17)+MA(CLOSE,17)-ref(MA(CLOSE,17),1),LINETHICK2,colorf4e202;
持股线:IF(MA(CLOSE,17)<MA17,MA17,MA(CLOSE,17)),color00d500;
PARTLINE(持股线=MA17,持股线),color80ffff,LINETHICK2;
STICKLINE(c>=ref(c,1),o,c,8,1),color000000;
STICKLINE(c<ref(c,1),o,c,8,1),color000000;
VAR1:=((CLOSE > ref(CLOSE,1)) AND (CLOSE > ref(CLOSE,2)));
VAR2:=((ref(VAR1,1) AND (CLOSE <= ref(CLOSE,1))) AND (CLOSE >= ref(CLOSE,2)));
VAR3:=((ref(VAR2,1) AND (CLOSE >= ref(CLOSE,1))) AND (CLOSE <= ref(CLOSE,2)));
VAR4:=((ref(VAR3,1) AND (CLOSE <= ref(CLOSE,1))) AND (CLOSE >= ref(CLOSE,2)));
VAR5:=((ref(VAR4,1) AND (CLOSE >= ref(CLOSE,1))) AND (CLOSE <= ref(CLOSE,2)));
VAR6:=((ref(VAR5,1) AND (CLOSE <= ref(CLOSE,1))) AND (CLOSE >= ref(CLOSE,2)));
VAR7:=((ref(VAR6,1) AND (CLOSE >= ref(CLOSE,1))) AND (CLOSE <= ref(CLOSE,2)));
VAR8:=((ref(VAR7,1) AND (CLOSE <= ref(CLOSE,1))) AND (CLOSE >= ref(CLOSE,2)));
VAR9:=((ref(VAR8,1) AND (CLOSE >= ref(CLOSE,1))) AND (CLOSE <= ref(CLOSE,2)));
VARA:=((ref(VAR9,1) AND (CLOSE <= ref(CLOSE,1))) AND (CLOSE >= ref(CLOSE,2)));
VARB:=((ref(VARA,1) AND (CLOSE >= ref(CLOSE,1))) AND (CLOSE <= ref(CLOSE,2)));
VARC:=((ref(VARB,1) AND (CLOSE <= ref(CLOSE,1))) AND (CLOSE >= ref(CLOSE,2)));
STICKLINE((((((((((((VAR1 OR VAR2) OR VAR3) OR VAR4) OR VAR5) OR VAR6) OR VAR7) OR VAR8) OR VAR9) OR VARA) OR VARB) OR VARC),C,ref(C,1),7,0),Color0000DD;
STICKLINE((((((((((((VAR1 OR VAR2) OR VAR3) OR VAR4) OR VAR5) OR VAR6) OR VAR7) OR VAR8) OR VAR9) OR VARA) OR VARB) OR VARC),L,H,0.5,0),Color0000DD;
VARD:=((CLOSE < ref(CLOSE,1)) AND (CLOSE < ref(CLOSE,2)));
VARE:=((ref(VARD,1) AND (CLOSE >= ref(CLOSE,1))) AND (CLOSE <= ref(CLOSE,2)));
VARF:=((ref(VARE,1) AND (CLOSE <= ref(CLOSE,1))) AND (CLOSE >= ref(CLOSE,2)));
VAR10:=((ref(VARF,1) AND (CLOSE >= ref(CLOSE,1))) AND (CLOSE <= ref(CLOSE,2)));
VAR11:=((ref(VAR10,1) AND (CLOSE <= ref(CLOSE,1))) AND (CLOSE >= ref(CLOSE,2)));
VAR12:=((ref(VAR11,1) AND (CLOSE >= ref(CLOSE,1))) AND (CLOSE <= ref(CLOSE,2)));
VAR13:=((ref(VAR12,1) AND (CLOSE <= ref(CLOSE,1))) AND (CLOSE >= ref(CLOSE,2)));
VAR14:=((ref(VAR13,1) AND (CLOSE >= ref(CLOSE,1))) AND (CLOSE <= ref(CLOSE,2)));
VAR15:=((ref(VAR14,1) AND (CLOSE <= ref(CLOSE,1))) AND (CLOSE >= ref(CLOSE,2)));
VAR16:=((ref(VAR15,1) AND (CLOSE >= ref(CLOSE,1))) AND (CLOSE <= ref(CLOSE,2)));
VAR17:=((ref(VAR16,1) AND (CLOSE <= ref(CLOSE,1))) AND (CLOSE >= ref(CLOSE,2)));
VAR18:=((ref(VAR17,1) AND (CLOSE >= ref(CLOSE,1))) AND (CLOSE <= ref(CLOSE,2)));
STICKLINE((((((((((((VARD OR VARE) OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18),C,ref(C,1),7 ,0 ),Color00DD00;
STICKLINE((((((((((((VARD OR VARE) OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18),H,L,0.5 ,0 ),Color00DD00;
VAR19:=(ref((((((((((((VARD OR VARE) OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18),1) AND VAR1);
VAR1A:=(ref((((((((((((VAR1 OR VAR2) OR VAR3) OR VAR4) OR VAR5) OR VAR6) OR VAR7) OR VAR8) OR VAR9) OR VARA) OR VARB) OR VARC),1) AND VARD);
STICKLINE(VAR19,ref(CLOSE,1),ref(CLOSE,2),7 ,0 ),ColorDDDDDD;
STICKLINE(VAR1A,ref(CLOSE,1),ref(CLOSE,2),7,0),ColorDD8800;
{买卖指标}
AA05:MA(C,5),LINETHICK0;
MM5:=(c-AA05)/AA05*100;
BB05:=atan((aa05/ref(aa05,1)-1)*100)*180/3.1416;
NN5:=sMA(eMA((AA05-ref(AA05,1))/ref(AA05,1),3)*100,3,1);
NNNN5:eMA((NN5-ref(NN5,1)),3),LINETHICK0;
AA10:MA(C,10),LINETHICK0;
AA20:=MA(c,20);
BB10:=atan((aa10/ref(aa10,1)-1)*100)*180/3.1416;
AA30:MA(C,30),LINETHICK0;
MM30:(c-AA30)/AA30*100,LINETHICK0;
Var1:=(AA20-AA30)>ref((AA20-AA30),1) and AA20>ref(aa20,1) and AA30>ref(AA30,1);
Var2:=(AA30-AA20)<ref((AA30-AA20),1) and AA20<ref(aa20,1) and AA30<ref(AA30,1);
BB30:=atan((aa30/ref(aa30,1)-1)*100)*180/3.1416;
强势:=filter(BB30>30 and BB10>45 and cross(BB05,60),10);
加仓:=filter(count(cross(BB05,30),5)>=1 and AA05>ref(aa05,1)and MM30>ref(MM30,1) and AA10>ref(AA10,1)
and NNNN5>ref(NN5,1) and NN5>ref(NN5,1),10) ;
清仓:=filter(count(cross(30,BB05),5)>=1 and (c>AA30 or O>AA30) and AA05<ref(aa05,1)and MM30<ref(MM30,1) and AA10<ref(AA10,1),10);
JC:=cross(0,MM5) and MM30<ref(MM30,1) and AA10>ref(AA10,1) ;
减仓:=filter(JC,10);
MR:=count(cross(MM30,0),3)>=1 and MM30>ref(MM30,1) and AA05>ref(AA05,1) and (c/ref(c,1)-1)*100>5 and ref(c,1)<AA30;
买入:=filter(MR,10);
DRAWTEXT((买入),LOW*0.945,'⊙'),LINETHICK2,ALIGN1,COLORYELLOW;
DRAWTEXT((买入),LOW*0.965,'⊙'),LINETHICK2,ALIGN1,COLORYELLOW;
DRAWTEXT((买入),LOW*0.985,'⊙'),LINETHICK2,ALIGN1,COLORYELLOW;
DRAWTEXT(减仓,high*1.06,'◇'),ALIGN2,LINETHICK3,colorcyan;
DRAWTEXT(减仓,high*1.05,'◇'),ALIGN1,LINETHICK3,colorcyan;
DRAWTEXT(减仓,high*1.059,'◇'),ALIGN0,LINETHICK3,colorcyan;
DRAWTEXT((加仓),LOW*0.985,'⊙'),LINETHICK2,ALIGN1,colorWhite;
DRAWTEXT((加仓),LOW*0.965,'⊙'),LINETHICK2,ALIGN1,colorWhite;
DRAWTEXT((加仓),LOW*0.945,'⊙'),LINETHICK2,ALIGN1,colorWhite;
DRAWTEXT((强势),LOW*0.985,'⊙'),LINETHICK2,ALIGN1,COLORred;
DRAWTEXT((强势),LOW*0.965,'⊙'),LINETHICK2,ALIGN1,COLORred;
{绝对强势}
aa_Q:=(C/ref(C,1)-1)*100;
bb_Q:=(INDEXC/ref(INDEXC,1)-1)*100;
dd_Q:=aa_Q>2.8 AND aa_Q-bb_Q>2;
DIFF_Q := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA_Q:= EMA(DIFF_Q,9);
MACD_Q := 2*(DIFF_Q-DEA_Q);
ee_Q:=MACD_Q>0 and MAcd_Q>=ref(MAcd_Q,1);
MA10_Q:=MA(C,10);
MA20_Q:=MA(C,20);
角度MA10_Q:=atan((MA10_Q/ref(MA10_Q,1)-1)*100)*180/3.1416;
角度MA20_Q:=atan((MA20_Q/ref(MA20_Q,1)-1)*100)*180/3.1416;
xg_Q:=C>=MA(C,10) AND 角度MA10_Q>40 and 角度MA20_Q>35
and MA(c,120)>ref(MA(c,120),1);
A5_Q:=Count(MA(CLOSE,21)>MA(CLOSE,34) and MA(CLOSE,34)>MA(CLOSE,55) and MA(CLOSE,55)>MA(CLOSE,89),3)=3 and isup;
条件成立:=xg_Q and dd_Q and ee_Q and C>=O;
PARTLINE(条件成立,L*0.96),CROSSDOT,LINETHICK6,COLORFF33FF;
PARTLINE(条件成立,L*0.96),CIRCLEDOT,LINETHICK1,COLOR00CCFF;
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容