当前位置:→ 公式网 > 飞狐公式 > 正文  公式解密、改选股等业务 联系点击查看详情...

以下是金盾主图 买卖点 准确明白(无源码的请下载附件导入)

(AA1,N1);
BB1:=BACKSET(AAA,(N1 + 1));
CC1:=FILTER(BB1,N1);
CC:=(CC1 OR ISLASTBAR);
AA2:=(REF(LOW,N1) = LLV(LOW,((2 * N1) + 1)));
AAA2:=FILTER(AA2,N1);
BB2:=BACKSET(AAA2,(N1 + 1));
CC22:=FILTER(BB2,N1);
GG1:=(ISLASTBAR AND REF(CC1,BARSLAST(CC1)));
HH9:=BACKSET(GG1,(BARSLAST(CC1) + 1));
II:=(HH9 > REF(HH9,1));
JJ1:=REF(BARSLAST(CC1),1);
KK:=BACKSET(II,(JJ1 + 2));
LL9:=(KK > REF(KK,1));
DRAWLINE(LL9,HIGH,II,HIGH,1),POINTDOT,colorFFFF00;
CS:=((REF(HIGH,BARSLAST(II)) - REF(HIGH,BARSLAST(LL9))) / (BARSLAST(LL9) - BARSLAST(II)));
阻力线:=(REF(HIGH,BARSLAST(II)) + (BARSLAST(II) * CS));
阻力值:阻力线,LINETHICK0,colorFF0000;
DRAWICON(CROSS(HIGH,阻力线),(阻力线 * 1.01),4);
GG2:=(ISLASTBAR AND REF(CC22,BARSLAST(CC22)));
HH2:=BACKSET(GG2,(BARSLAST(CC22) + 1));
II2:=(HH2 > REF(HH2,1));
JJ2:=REF(BARSLAST(CC22),1);
KK2:=BACKSET(II2,(JJ2 + 2));
LL2:=(KK2 > REF(KK2,1));
DRAWLINE(LL2,LOW,II2,LOW,1),POINTDOT,colorFF00;
CS1:=((REF(LOW,BARSLAST(II2)) - REF(LOW,BARSLAST(LL2))) / (BARSLAST(LL2) - BARSLAST(II2)));
阻力线1:=(REF(LOW,BARSLAST(II2)) + (BARSLAST(II2) * CS1));
阻力值1:阻力线1,LINETHICK0,colorFF00;
DRAWICON(CROSS(阻力线1,LOW),(阻力线1 * 0.99),5);
DRAWICON(LL2,LOW,13);
DRAWICON(II2,LOW,13);
A91:=BACKSET(ISLASTBAR,(PEAKBARS(1,3,N) + 1));
A92:=(A91 > REF(A91,1));
B91:=BACKSET(ISLASTBAR,(PEAKBARS(1,3,(N + 1)) + 1));
B92:=(B91 > REF(B91,1));
A9:=LINEVALUE(B92,HIGH,A92,HIGH,0,0);
DRAWICON(CROSS(CLOSE,A9),LOW,4);
Ak1:=BACKSET(ISLASTBAR,(PEAKBARS(1,3,1) + 1));
Ak2:=(Ak1 > REF(Ak1,1));
Bk1:=BACKSET(ISLASTBAR,(PEAKBARS(1,3,2) + 1));
Bk2:=(Bk1 > REF(Bk1,1));
Dk1:=BACKSET(ISLASTBAR,(PEAKBARS(1,3,3) + 1));
Dk2:=(Dk1 > REF(Dk1,1));
DRAWLINE(Dk2,HIGH,Bk2,HIGH,1),color66CCFF;
DRAWLINE(Bk2,HIGH,Ak2,HIGH,1),colorFFCC;
DRAWICON(Ak2,HIGH,13);
DRAWICON(Bk2,HIGH,13);
DRAWICON(Dk2,HIGH,13);
{直效主图}{N3 10 1 50 CX 2 1 2}
Ap1:=REF(C,N3)=HHV(C,2*N3+1);
Ap2:=REF(C,N3)=LLV(C,2*N3+1);
Bp1:=FILTER(Ap1,N3);
Ck1:=BACKSET(Bp1,N3+1);
HD9:=FILTER(Ck1,N3);
Bp2:=FILTER(Ap2,N3);
Ck2:=BACKSET(Bp2,N3+1);
LD9:=FILTER(Ck2,N3);
Ap:=REF(C,BARSLAST(HD9));
Bp:=REF(C,BARSLAST(LD9));
t1:=BARSLAST(HD9)<BARSLAST(LD9) AND NOT(HD9) ;
t2:=BARSLAST(HD9)>BARSLAST(LD9) AND NOT(LD9);
PARTLINE(t1,Ap),COLORCC6600,LINETHICK2;
PARTLINE(t2,Bp),COLORDDDDDD,LINETHICK2;
DRAWNUMBER(t1=0 and ref(t1,1)>0 or ISLASTBAR and t1>0,ref(ap,1),ref(ap,1),2),COLORCC6600;
DRAWNUMBER(t2=0 and ref(t2,1)>0 or ISLASTBAR and t2>0,ref(bp,1),ref(bp,1),2),COLORDDDDDD;
PARTLINE(t1,Ap*0.9),COLORCC6600,LINETHICK1;
DRAWNUMBER(t1=0 and ref(t1,1)>0 or ISLASTBAR and t1>0,ref(ap*0.9,1),ref(ap*0.9,1),2),COLORCC6600;
PARTLINE(t2,Bp*1.1),COLORDDDDDD,LINETHICK1;
DRAWNUMBER(t2=0 and ref(t2,1)>0 or ISLASTBAR and t2>0,ref(bp*1.1,1),ref(bp*1.1,1),2),COLORCDDDDDD;
{方向好线 }
VARAB:=IF((C > 150),91.3,0.913);
【下沿】:=(INTPART((C / VARAB)) * VARAB);
【上沿】:=(【下沿】 + VARAB);
【中线】:=((【下沿】 + 【上沿】) / 2);
STICKLINE(((((SYSPARAM(1) = BARPOS) AND 【下沿】) AND (C > 【下沿】)) AND (C < 【中线】)),【下沿】,【下沿】,50,0),LINETHICK2,colorFF9900;
STICKLINE(((((SYSPARAM(1) = BARPOS) AND 【上沿】) AND (C < 【上沿】)) AND (C > 【中线】)),【上沿】,【上沿】,50,0),LINETHICK2,color99FF;
STICKLINE(((SYSPARAM(1) = BARPOS) AND 【中线】),【中线】,【中线】,50,0),LINETHICK2,colorFFFFFF;
DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 【下沿】) AND (C > 【下沿】)) AND (C < 【中线】)),【下沿】,'支撑'),SHIFT2,colorFF00;
DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 【下沿】) AND (C > 【下沿】)) AND (C < 【中线】)),【中线】,'压力'),SHIFT2,colorFF;
DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 【上沿】) AND (C < 【上沿】)) AND (C > 【中线】)),【上沿】,'压力'),SHIFT2,colorFF;
DRAWTEXT(((((SYSPARAM(1) = BARPOS) AND 【上沿】) AND (C < 【上沿】)) AND (C > 【中线】)),【中线】,'支撑'),SHIFT2,colorFF00;
蓝:【下沿】,LINETHICK0,colorFF9900;
棕:【上沿】,LINETHICK0,color99FF;
白:【中线】,LINETHICK0,colorFFFFFF;
{新结构波浪+三角形}
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;{高低点出现在同一K线上时可作取舍}
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
L1:=(D2 AND NOT(D1 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=2 OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2 AND COUNT(H1,X2)>0,HHVBARS(IF(H1,HIGH,0),X2));
G2:=F2>REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1);{过滤后高点}
A3:=H;
B3:=REF(H,REF(BARSLAST(HD),1)+1)>REF(H,REF(BARSLAST(HD),1)+2+REF(BARSLAST(HD),REF(BARSLAST(HD),1)+2));
D3:=A3 AND B3 AND HD;
E3:=BACKSET(D3,REF(BARSLA


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