三级联立主图指标 (源码)
飞狐三级联立主图指标公式股票软件源码如下:
流通盘:=CAPITAL/1000000;
每股收益:=FINANCE(33);
每股净资:=FINANCE(34);
净资收益率:=FINANCE(37);
每股公积金:=FINANCE(18);
每股未分配:=FINANCE(32);
市盈率:=DYNAINFO(39);
换手率:=VOL/CAPITAL*100;
五换:=SUM(换手率,5);
十换:=SUM(换手率,10);
DRAWTEXTEX(1,0,20,2,'流通盘:'+NUMTOSTR(流通盘,2)+'亿'),color66FFFF;
DRAWTEXTEX(1,0,130,2,'换手率:'+NUMTOSTR(换手率,2)+'%'),color66FFFF;
DRAWTEXTEX(1,0,240,2,'五日换手率:'+NUMTOSTR(五换,2)+'%'),color66FFFF;
DRAWTEXTEX(1,0,380,2,'十日换手率:'+NUMTOSTR(十换,2)+'%'),color66FFFF;
DRAWTEXTEX(1,0,520,2,'每股收益:'+NUMTOSTR(每股收益,2)+'元'),color66FFFF;
DRAWTEXTEX(1,0,650,2,'市盈率:'+NUMTOSTR(市盈率,0)),color66FFFF;
DRAWTEXTEX(1,0,740,2,'每股净资产:'+NUMTOSTR(每股净资,2)+'元'),color66FFFF;
DRAWTEXTEX(1,0,880,2,'净资收益率:'+NUMTOSTR(净资收益率,2)+'%'),color66FFFF;
DRAWTEXTEX(1,0,1020,2,'每股公积金:'+NUMTOSTR(每股公积金,2)+'元'),color66FFFF;
{www.gpxiazai.com 股票软件下载网_飞狐股票指标公式}
DRAWTEXTEX(1,0,1160,2,'每股未分配利润:'+NUMTOSTR(每股未分配,2)+'元'),color66FFFF;
波趋势:EMA(EMA(MA(CLOSE,5),2),2),colorFF;
波段转换:EMA(EMA(MA(CLOSE,8),3),3),LINEDASH,colorFFFF;
段趋势:EMA(EMA(MA(CLOSE,25),5),5),colorFF00FF;
PARTLINE(段趋势>=REF(段趋势,1),段趋势),LINETHICK2,colorFF00FF;
PARTLINE(段趋势<=REF(段趋势,1),段趋势),LINETHICK2,colorFF9900;
牛熊分界:EMA(EMA(EMA(CLOSE,125),5),5),colorFF;
PARTLINE(牛熊分界>=REF(牛熊分界,1),牛熊分界),LINETHICK2,colorFF;
PARTLINE(牛熊分界<=REF(牛熊分界,1),牛熊分界),LINETHICK2,colorFF0000;
波压力:段趋势+2*STD(CLOSE,25),LINEDOT,color44AA44;
波支撑:段趋势-2*STD(CLOSE,25),LINEDOT,color44AA44;
LSTD:=2*STD(CLOSE,125);
ESTD:=EMA(EMA(EMA(LSTD,5),3),3);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
n:=10;
V1:=iSLASTbAR;
V2:=REF(H,N)=HHV(H,2*N+1);
V3:=FILTER(V2,N);
V4:=BACKSET(V3,N+1);
V5:=FILTER(V4,N);
V6:=V5 OR V1;
V7:=REF(L,N)=LLV(L,2*N+1);
V8:=FILTER(V7,N);
V9:=BACKSET(V8,N+1);
VA:=FILTER(V9,N);
VB:=VA AND NOT(V5);
VC:=BACKSET(V6,REF(BARSLAST(VB),1)+1);
VD:=VC>REF(VC,1);
VE:=BACKSET(VD,2);
VF:=VE>REF(VE,1);
V10:=BACKSET(VF AND COUNT(V6,REF(BARSLAST(VB),1)+2)=0,REF(BARSLAST(VB),1)+2);
V11:=V10>REF(V10,1);
V12:=BACKSET(V11 AND COUNT(V6,REF(BARSLAST(VB),1)+2)=0,REF(BARSLAST(VB),1)+2);
V13:=V12>REF(V12,1);
V14:=IF(V6,COUNT(VB,REF(BARSLAST(V6),1)+1),0);
V15:=IF(V14=1 AND V6,BARSLAST(VF),0);
V16:=IF(V6 AND REF(L,BARSLAST(VF))>=REF(L,BARSLAST(V11)),BARSLAST(V11),BARSLAST(VF));
V17:=IF(V14=2 AND V6,V16,0);
V18:=IF(V14>=3 AND V6,IF(V6 AND REF(L,V16)>=REF(L,BARSLAST(V13)),BARSLAST(V13),V16),0);
V19:=V15+V17+V18;
V1A:=BACKSET(V6,V19);
V1B:=V1A>REF(V1A,1);
V1C:=BACKSET(V1B,2);
V1D:=V1C>REF(V1C,1);
V1E:=V1D OR V1;
V1F:=BACKSET(V1E,REF(BARSLAST(V6),1)+1);
V20:=V1F>REF(V1F,1);
V21:=BACKSET(V20,2);
V22:=V21>REF(V21,1);
V23:=BACKSET(V22 AND COUNT(V1E,REF(BARSLAST(V6),1)+2)=0,REF(BARSLAST(V6),1)+2);
V24:=V23>REF(V23,1);
V25:=BACKSET(V24 AND COUNT(V1E,REF(BARSLAST(V6),1)+2)=0,REF(BARSLAST(V6),1)+2);
V26:=V25>REF(V25,1);
V27:=IF(V1E,COUNT(V5,REF(BARSLAST(V1E),1)+1),0);
V28:=IF(V27=1 AND V1E,BARSLAST(V22),0);
V29:=IF(V1E AND REF(H,BARSLAST(V22))<=REF(H,BARSLAST(V24)),BARSLAST(V24),BARSLAST(V22));
V2A:=IF(V27=2 AND V1E,V29,0);
V2B:=IF(V27>=3 AND V1E,IF(V1E AND REF(H,V29)<=REF(H,BARSLAST(V26)),BARSLAST(V26),V29),0);
V2C:=V28+V2A+V2B;
V2D:=BACKSET(V1E,V2C);
V2E:=V2D>REF(V2D,1);
V2F:=BACKSET(V2E,2);
V30:=V2F>REF(V2F,1);
DRAWLINE(V1D,L,V30,H,0),COLORGRAY;
DRAWLINE(V30,H,V1D,L,0),COLORGRAY;
V31:=BACKSET(V1,BARSLAST(V1D)+1);
V32:=V31>REF(V31,1);
V33:=BACKSET(V1,BARSLAST(V30)+1);
V34:=V33>REF(V33,1);
V35:=IF(BARSLAST(V32)<BARSLAST(V34),V32,V34);
V36:=IF(BARSLAST(V32)<BARSLAST(V34),L,H);
DRAWLINE(V35,V36,V1,C,0),COLORGRAY;
V37:=BACKSET(V1,BARSLAST(V1D)+1);
V38:=V37>REF(V37,1);
V39:=BACKSET(V38,REF(BARSLAST(V1D),1)+2);
V3A:=V39>REF(V39,1);
DRAWLINE(V3A,L,V38,L,1),COLORGRAY;
V3B:=BACKSET(V1,BARSLAST(V30)+1);
V3C:=V3B>REF(V3B,1);
V3D:=BACKSET(V3C,REF(BARSLAST(V30),1)+2);
V3E:=V3D>REF(V3D,1);
DRAWLINE(V3E,H,V3C,H,1),{COLORCYAN,colorwhite}color50463f;
前一低: REF(L,BARSLAST(V38)),{colorccff99}COLORGRAY,linethick1;
前二低: REF(L,BARSLAST(V3A)),{colormagenta}COLORGRAY,linethick1;
前一高: REF(H,BARSLAST(V3C)),{colorccff99}COLORGRAY,linethick1;
前二高: REF(H,BARSLAST(V3E)),{colormagenta}COLORGRAY,linethick1;
- 上一篇公式:工作线主图指标 (源码)
- 下一篇公式:筹码抄底指标 (源码)