当前位置:→ 公式网 > 飞狐公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是涨幅量尺(主图 源码 帖图)(无源码的请下载附件导入)
SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
PARTLINE(RSI1>76,H+0.02),CIRCLEDOT,LINETHICK1,COLORFFFF00;
DRAWTEXT((BQ > 0) AND RSI1>76,h,'RSI>76 '),pxup29,COLORFFFF00,ALIGN1;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA),;
G:=IF((SYSPARAM(1) = (BARSSINCE((C > 0)) + 1)),1,0);
DRAWTEXT(((G > 0) AND CROSS(DIff,DEa) AND DIff>0),L,'MACD金叉/> 0 '),color00FFEE,pxdn20,ALIGN2;
DRAWTEXT(((G > 0) AND CROSS(DIff,DEa) AND DIff<0),L,'MACD金叉/< 0 '),color00FFEE,pxdn20,ALIGN2;
DRAWICON(CROSS(DIff,DEa),L,12),pxdn25,ALIGN0;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
DRAWICON(CROSS(K,D) AND K>20 AND D<50,L,8);
DRAWTEXT(((G > 0) AND CROSS(k,d) AND k>20 and d<50),L,' k>20 d<50 KD金叉'),color00FFEE,pxUP15,ALIGN1;
QC:=REF(C,1);QO:=REF(O,1);QH:=REF(H,1);QL:=REF(L,1);
FUZ:=L+((H-L)/2);FUS:=O+((C-O)/2); FUSY:=C+((O-C)/2);SSFU:=(FUZ+IF(C>O,FUS,FUSY))/2;
FUZ1:=L+((H-L)*0.333);FUS1:=O+((C-O)*0.333);FUS1Y:=C+((O-C)*0.333);SSFU1:=(FUZ1+IF(C>O,FUS1,FUS1Y))/2;
FUZ2:=L+((H-L)*0.667);FUS2:=O+((C-O)*0.677);FUS2Y:=C+((O-C)*0.667);SSFU2:=(FUZ2+IF(C>O,FUS2,FUS2Y))/2;
B1:=Ql+((Qh-Ql)/2);B2:=QO+((QC-QO)/2);B3:=QC+((QO-QC)/2);
DB1:=QL+((QH-QL)*0.333);DB2:=QO+((QC-QO)*0.333);DB3:=QC+((QO-QC)*0.333);
EB1:=QL+((QH-QL)*0.667);EB2:=QO+((QC-QO)*0.667);EB3:=QC+((QO-QC)*0.667);
SYB1:=QH-((QH-QC)/2);SYB2:=QH-((QH-QO)/2);
SYB3:=IF(QC>QO,SYB1,SYB2);
XYB1:=QL+((QC-QL)/2);XYB2:=QL+((QO-QL)/2);
XYB3:=IF(QC<QO,XYB1,XYB2);
QFU:=(B1+IF(QC>QO,B2,B3))/2;
QDFU:=(DB1+IF(QC>QO,DB2,DB3))/2;
QEFU:=(EB1+IF(QC>QO,EB2,EB3))/2;
STICKLINE(C=C AND fa,SSFU2,SSFU2,4,0),COLORFFaaff,LINETHICK1;
STICKLINE(C=C AND fa,SSFU1,SSFU1,4,0),COLORFFaaff,LINETHICK1;
STICKLINE(C=C AND fa,SSFU,SSFU,5.5,0),COLOR20dFFF,LINETHICK1;
STICKLINE(C=C AND fa,IF(C>O,H-((H-C)/2),H-((H-O)/2)),IF(C>O,H-((H-C)/2),H-((H-O)/2)),1.3,0),COLORYELLOW,LINETHICK1;
STICKLINE(C=C AND fa,IF(C<O,L+((C-L)/2),L+((O-L)/2)),IF(C<O,L+((C-L)/2),L+((O-L)/2)),1.3,0),COLORYELLOW,LINETHICK1;
AJ:=AMOUNT/(VOL*100),COLORFFFFFF,LINETHICK0;
DRAWTEXT(C=C AND fa=2,AJ,'←'),COLORFF5f00;
DRAWTEXTEX(TT1 AND FA=3,0,1,30,' 前/现日振幅的1/2 【'+NUMTOSTR(QFU,2)+'】/【'+NUMTOSTR(SSFU,2)+'】'),Color00AAFF;
DRAWTEXTEX(TT1 AND FA=3,0,1,45,' 前/现日振幅的:1/3 【'+NUMTOSTR(QDFU,2)+'】/【'+NUMTOSTR(SSFU1,2)+'】'),Color00FF00;
DRAWTEXTEX(TT1 AND FA=3,0,1,60,' 前/现日振幅的:2/3 【'+NUMTOSTR(QEFU,2)+'】/【'+NUMTOSTR(SSFU2,2)+'】'),Color00FF00;
DRAWTEXTEX(TT1 AND FA=3,0,1,75,' 前上影线幅度的1/2 【'+NUMTOSTR(SYB3,2)+'】'),ColorFFFFFF;
DRAWTEXTEX(TT1 AND FA=3,0,1,90,' 前下影线幅度的1/2 【'+NUMTOSTR(XYB3,2)+'】'),ColorFFFFFF;
//INPUT:XS(1,0,2);
TA1:=BARPOS=SYSPARAM(1);
最低:=REF(L,BARSLAST(TA1));
PARTLINE(最低 AND XS,最低),LINETHICK1,COLOR008F00;
DRAWTEXT(TA1 AND XS,最低,'▲'+'('+NUMTOSTR(最低,2)),ALIGN1,color00FFdd,pxdn5;
Q:=(最低 * 1.25);
Q2:=(最低* 1.20);
Q3:=(最低* 1.18);
Q4:=(最低* 1.13);
Q5:=(最低 * 1.08);
Q6:=(最低* 1.05);
Q7:=(最低 * 1.03);
Q8:=(最低 * 1.10);
Y_1:=REF(Q,BARSLAST(TA1));
Y_2:=REF(Q2,BARSLAST(TA1));
Y_3:=REF(Q3,BARSLAST(TA1));
Y_4:=REF(Q4,BARSLAST(TA1));
Y_5:=REF(Q5,BARSLAST(TA1));
Y_6:=REF(Q6,BARSLAST(TA1));
Y_7:=REF(Q7,BARSLAST(TA1));
Y_8:=REF(Q8,BARSLAST(TA1));
PARTLINE(Y_1 and xs,Y_1),LINEDOT,Color555555;
PARTLINE(Y_2 and xs,Y_2),LINEDOT,Color005555;
PARTLINE(Y_3 and xs,Y_3),LINEDOT,Color888888;
PARTLINE(Y_4 and xs,Y_4),LINEDOT,Color005555;
PARTLINE(Y_5 and xs,Y_5),LINEDOT,Color555555;
PARTLINE(Y_6 and xs,Y_6),LINEDOT,Color005555;
PARTLINE(Y_7 and xs,Y_7),LINEDOT,Color005555;
PARTLINE(Y_8 and xs,Y_8),LINEDOT,Color551155;
DRAWTEXT(TA1 AND XS,Y_1,' 25%('+NUMTOSTR(Q,2)),COLORBBbbbb,ALIGN1,PXDN5;
DRAWTEXT(TA1 AND XS,Y_2,' 20%('+NUMTOSTR(Q2,2)),COLOR00bbbb,ALIGN1,PXUP22;
DRAWTEXT(TA1 AND XS,Y_3,' 18%('+NUMTOSTR(Q3,2)),COLOReeeeee,ALIGN1,PXDN5;
DRAWTEXT(TA1 AND XS,Y_4,' 13%('+NUMTOSTR(Q4,2)),COLOR00bbbb,ALIGN1,PXDN5;
DRAWTEXT(TA1 AND XS,Y_5,' 8%('+NUMTOSTR(Q5,2)),COLORBBbbbb,ALIGN1,PXDN5;
DRAWTEXT(TA1 AND XS,Y_6,' 5%('+NUMTOSTR(Q6,2)),COLOR00eeee,ALIGN1,PXDN5;
DRAWTEXT(TA1 AND XS,Y_7,' 3%('+NUMTOSTR(Q7,2)),COLOR00eeee,ALIGN1,PXDN5;
DRAWTEXT(TA1 AND XS,Y_8,' 10%('+NUMTOSTR(Q8,2)),COLOR0000ee,ALIGN1,PXDN5;
X1:=SYSPARAM(3);
ZGH:=ref(H,高H);
BGH:=HHV(zgH,1);
GGh:=BGH[X1],colorFF00FF;
ZDL:=ref(L,DF);
BDL:=LLV(ZDL,1);
DDL:=BDL[X1];
MHI:=GGH*0.95;
MHII:=GGH*0.92;
MHIII:=GGH*0.87;
MHRI:=GGH*0.85;
MHRII:=GGH*0.80;
MHRIII:=GGH*0.75;
GDF:=GGH-DDL;
GDFDA:=GDF/GGH*100;
GDFD:=GDF/DDL*100;
GDF1:=GGH-L;
GDF2:=GDF1/GGH*100;
GDF3:=GGH-C;
GDF4:=GDF3/ggh*100;
GDF5:=C-DDL;
GDF6:=GDF5/DDL*100;
GDF7:=H-DDL;
GDF8:=GDF7/DDL*100;
TTt:=ISLASTBAR=1;
最低:=TROUGHBARS(L,DF,1);{调整之字幅度找到低位起点}
Y_1:=SUMBARS(最低=0,1)-1; Y_2:=DATACOUNT-Y_1[DATACOUNT]; Y_3:=IF(BARPOS=Y_2,最低=0,0);
Y_4:=IF(Y_3,1,0); &nbs