当前位置:→ 公式网 > 飞狐公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是智能解盘(飞狐版本 止损位 压力位 支撑位 智富宝)(无源码的请下载附件导入)
REF(AVX,1)>0 AND V1<V2;DRAWTEXTEX(A023,0,12,170,'大盘形态良好,但量能稍显不足,随时准备减仓。 '),LINETHICK3,colorFFFF;
A024:=BARSTATUS=2 AND CLOSE>200 AND AVX<1 AND REF(AVX,1)<0 AND V1>=V2;
DRAWTEXTEX(A024,0,12,170,'大盘趋势不明,注意成交量变化,目前不适宜进场。 '),LINETHICK3,colorFF00;
A025:=BARSTATUS=2 AND CLOSE>200 AND AVX<1 AND REF(AVX,1)<0 AND V1<V2;
DRAWTEXTEX(A025,0,12,170,'大盘趋势向下,量能萎缩,不适合进场。 '),LINETHICK3,colorFF00;
NN:=BARSTATUS=2;
MB1:MA(CLOSE,N),LINEDOT,LINETHICK1,colorFFFFFF;
MB2:MA(CLOSE,N1),LINEDOT,LINETHICK1,colorFFFF;
MB3:MA(CLOSE,N2),LINEDOT,LINETHICK1,color208FFF;
MB4:MA(CLOSE,N3),LINEDOT,LINETHICK0,colorFF00FF;
VAR3:=HIGH<REF(LOW,1);
VAR4:=LOW>REF(HIGH,1);
DRAWTEXT(VAR3,HIGH,'↓QK'),ALIGN1,PXUP6,colorFFFFFF;
DRAWTEXT(VAR4,LOW,'↑QK'),ALIGN1,PXUP6,colorFFFF;
DRAWTEXT(NN,MB1,''+NUMTOSTR(MB1,2)+''),ALIGN0,PXUP2,colorFFFFFF;
DRAWTEXT(NN,MB2,''+NUMTOSTR(MB2,2)+''),ALIGN0,PXUP2,colorFFFF;
DRAWTEXT(NN,MB3,''+NUMTOSTR(MB3,2)+''),ALIGN0,PXUP2,color208FFF;
A1:=REF(HIGH,3)=HHV(HIGH,2*3+1);
B1:=FILTER(A1,3);
C1:=BACKSET(B1,3+1);
D1:=FILTER(C1,3);
A2:=REF(LOW,3)=LLV(LOW,2*3+1);
B2:=FILTER(A2,3);
C2:=BACKSET(B2,3+1);
D2:=FILTER(C2,3);
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
E2:=(HIGH+LOW)/2;
H1:=D1 AND NOT(D2 AND E1>=E2) OR BARSTATUS OR BARSCOUNT(CLOSE)=1;
L1:=D2 AND NOT(D1 AND E1<E2);
H2:=D1 AND NOT(D2 AND E1>=E2);
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
G1:=F1>REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1);
L2:=LD OR BARSTATUS OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1);
UU:=BACKSET(BARSTATUS,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
UU2:=BACKSET(BARSTATUS,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
一低:REF(LOW,BARSLAST(VV)),LINEDOT,LINETHICK1,color99FF66;
二低:REF(LOW,BARSLAST(XX)),LINEDOT,LINETHICK1,colorFF66FF;
一高:REF(HIGH,BARSLAST(VV2)),LINEDOT,LINETHICK1,color99FF66;
二高:REF(HIGH,BARSLAST(XX2)),LINEDOT,LINETHICK1,colorFF66FF;
XZ:=DYNAINFO(7);
SZ:=XZ-一低;
ZZ:=SZ/一低*100;
GG:=一高-一低;
K:=一高-二低;
W:=K/二低*100;
KG:=二高-二低;
WG:=KG/二高*100;
DRAWTEXTEX(CLOSE,0,52,110,' 前一低到 当前幅度 :('+NUMTOSTR(ZZ,2)+'%)'+'涨('+NUMTOSTR(SZ,2)+')'+''),colorFFFFFF;
DRAWTEXTEX(CLOSE,0,52,125,' 前一高到 前一低 :(-'+NUMTOSTR(VOL,2)+'%)'+'跌('+NUMTOSTR(GG,2)+')'+''),colorFF00;
DRAWTEXTEX(CLOSE,0,52,140,' 前二低到 前一高 :('+NUMTOSTR(W,2)+'%)'+'涨('+NUMTOSTR(K,2)+')'+''),colorFEBAF5;
DRAWTEXTEX(CLOSE,0,52,155,' 前二高到 前二低 :(-'+NUMTOSTR(WG,2)+'%)'+'跌('+NUMTOSTR(KG,2)+')'+''),colorFEBAF5;
DRAWTEXT(NN,一低,'前一低: '+NUMTOSTR(一低,2)+''),ALIGN2,colorDD00;
DRAWTEXT(NN,一高,'前一高: '+NUMTOSTR(一高,2)+''),ALIGN2,colorDD00;
DRAWTEXT(NN,二低,'前二低: '+NUMTOSTR(二低,2)+''),ALIGN2,PXUP2,colorDD00FF;
DRAWTEXT(NN,二高,'前二高: '+NUMTOSTR(二高,2)+''),ALIGN2,PXUP2,colorDD00FF;
MC:=REF(CLOSE,1);
阻力位:=IF(CLOSE>200,CLOSE*1.01,CLOSE*1.07);
阻力位1:=IF(CLOSE<10,CLOSE*1.05,阻力位);
止损位:=IF(CLOSE>200,CLOSE*0.99,CLOSE*0.93);
止损位1:=IF(CLOSE<10,CLOSE*0.95,止损位);
阻力位A:=IF(MC>200,MC*1.01,MC*1.07);
阻力位2:=IF(MC<10,MC*1.05,阻力位A);
止损位B:=IF(MC>200,MC*0.99,MC*0.93);
止损位2:=IF(MC<10,MC*0.95,止损位B);
DRAWTEXTEX(CLOSE,0,58,80,'[昨/今日 止损位 :'+NUMTOSTR(止损位B,2)+'/'+NUMTOSTR(止损位1,2)+'**]'),LINETHICK1,colorFF00;
DRAWTEXTEX(CLOSE,0,58,95,'[昨/今日 阻力位 :'+NUMTOSTR(阻力位2,2)+'/'+NUMTOSTR(阻力位1,2)+']'),LINETHICK1,colorFEBAF5;
PT:=REF(HIGH,1)-REF(LOW,1);
重心:=(HIGH+LOW+CLOSE)/3;
压力Ⅰ:=2*重心-LOW;
压力Ⅱ:=重心+PT;
支撑Ⅰ:=2*重心-HIGH;
支撑Ⅱ:=重心-PT;
DRAWTEXTEX(CLOSE,0,75,8,' 《智富宝》'),colorFFFF00;
DRAWTEXTEX(CLOSE,0,150,8,' 重心:'+NUMTOSTR(重心,2)),color208FFF;
DRAWTEXTEX(CLOSE,0,75,27,' 支 撑'),colorFFFFFF;
DRAWTEXTEX(CLOSE,0,75,44,' '+NUMTOSTR(支撑Ⅰ,2)),colorFFFFFF;
DRAWTEXTEX(CLOSE,0,75,62,' '+NUMTOSTR(支撑Ⅱ,2)),colorFFFFFF;
DRAWTEXTEX(CLOSE,0,120,27,' 压 力'),colorFF00;
DRAWTEXTEX(CLOSE,0,120,44,' '+NUMTOSTR(压力Ⅰ,2)),colorFF00;
DRAWTEXTEX(CLOSE,0,120,62,' '+NUMTOSTR(压力Ⅱ,2)),colorFF00;
DRAWTEXTEX(CLOSE,0,75,5,'│'),colorFFFF;
DRAWTEXTEX(CLOSE,0,75,17,'│'),colorFFFF;
DRAWTEXTEX(CLOSE,0,75,29,'│'),colorFFFF;
DRAWTEXTEX(CLOSE,0,75,41,'│'),colorFFFF;
DRAWTEXTEX(CLOSE,0,75,53,'│'),colorFFFF;
DRAWTEXTEX(CLOSE,0,75,65,'│'),colorFFFF;
DRAWTEXTEX(CLOSE,0,218,5,'│'),colorFFFF;
DRAWTEXTEX(CLOSE,0,218,17,'│'),colorFFFF;
DRAWTEXTEX(CLOSE,0,218,29,'│'),colorFFFF;
DRAWTEXTEX(CLOSE,0,218,41,'│'),colorFFFF;
DRAWTEXTEX(CLOSE,0,218,53,'│'),colorFFFF;
DRAWTEXTEX(CLOSE,0,218,65,'│'),colorFFFF;
DRAWTEXTEX(CLOSE,0,146,25,'│'),colorFFFF;
DRAWTEXTEX(CLOSE,0,146,29,'│'),colo
上一篇:主力持仓(飞狐公式) 下一篇:联盟短线主图 精品短线公式 公式不加密