软件名称:[B]飞狐金盾主图指标公式[/B]
软件类型:国产软件
运行环境:Win2000/WinXP/Win2003/WinVista
软件语言:简体中文
授权方式:共享软件
软件大小:0 Bytes
官方主页:Home Page
更新时间:2016-01-07 01:30:40
软件简介:
{参数:
N:2/1/100
N1:3/1/100
N3:10/1/50
N4:5/1/100
Q:10/0/100
CX:2/1/2
}
箱顶:MA(REF(HHV(CLOSE,30),1),2)linethick2,,ColorFF9DFF;
箱底:MA(REF(LLV(CLOSE,30),1),2),linethick2,ColorFFAAAA;
DRAWTEXT(CROSS(REF(ZIG(3,13),1),ZIG(3,13)) ,high*1.01 ,' ★老哥' ),color00ff00;
DRAWTEXT(CROSS(ZIG(3,13) ,REF(ZIG(3 ,13),1)) ,low*0.98,'★兄涨') ,coloryellow;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,9,0 ),COLOR009900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00cc00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.4,0 ),COLOR33ff00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.1,0 ),COLOR66ff00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,9,0 ),COLOr000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6 ,0 ),COLOR0000cc;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4 ,0 ),COLOR0000ff;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.1 ,0 ),COLOR0033ff;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOr000099;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLOr000099;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),COLOR009900;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLOR009900;
{ 宝塔线 }
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,CLOSE,REF(CLOSE,1),8,1),COLORRED;
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,CLOSE,REF(CLOSE,1),8,0),colorblue,,ColorFFFF00;
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;
底:STICKLINE(Var19,REF(CLOSE,1),REF(CLOSE,2),8,0),colorwhite,Color00FFFF ;
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(Var1A,REF(CLOSE,1),REF(CLOSE,2),8,1),,colorgreen ,ColorFF0000;
持仓线:=ma(HIGH,19),linethick2,Color00FFFF;
空仓线:=ma(LOW,19),linethick2,ColorFF8A15;
拉升线:=ma(CLOSE,3),ColorFFFFFF;
涨:EMA(C,8),COLORGREEN,Color00E800;{K上买1}
涨涨:=EMA(涨,3),COLORGREEN;
哥:EMA(涨涨,4),COLORRED,,ColorFF3E9E;{K下空1}
哥哥:=EMA(哥,4),COLORRED,,ColorFF3E9E;
拉升线:=ema(LOW,2);
真假线:=ema(ema(LOW,19)*1.03,26)-0.17,,Color00FFFF,linethick2,ColorFF2DFF;
DRAWICON(cross(拉升线,真假线),拉升线,10);
{一剑封喉}
VAR81:=((AMOUNT / VOL) / 100);
VAR82:=(((((3 * HIGH) + LOW) + OPEN) + (2 * CLOSE)) / 7);
VAR83:=((SUM(AMOUNT,5) / VAR81) / 100);
VAR84:=((SUM(AMOUNT,13) / VAR81) / 100);
VAR85:=((SUM(AMOUNT,34) / VAR81) / 100);
一剑封喉:=((CROSS(CLOSE,MA(CLOSE,13)) AND CROSS(CLOSE,MA(CLOSE,34))) AND CROSS(CLOSE,MA(CLOSE,55)));
A81:=(((CLOSE - LLV(LOW,22)) / (HHV(HIGH,22) - LLV(LOW,22))) * 100);
A82:=(((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100);
A8:=((3 * SMA(A81,5,1)) - (2 * SMA(SMA(A82,5,1),3,1)));
YNGS:=(一剑封喉 AND (A8 < 30)),LINETHICK0;
DRAWICON((一剑封喉 AND (A8 < 30)),(LOW * 0.99),1);
DRAWTEXT((一剑封喉 AND (A8 < 30)),(LOW * 0.98),'一剑封喉'),colorFF;
{K线组合}
QO:=REF(O,2);
QC:=REF(C,2);
ZO:=REF(O,1);
ZC:=REF(C,1);
JYZHK:= ABS(QO-QC)/QO<0.02 AND ZO/ZC>1.02 AND ABS(O-C)/O<0.02 AND C>MA(C,30);
JYZHV:=V<REF(V,1) ;
JYZH:=JYZHK AND JYZHV;
DRAWTEXT(JYZH,L,'调到位'),ColorFFFFFF;{金印}
{分析趋势}
input:N1(3,1,100),N(2,1,100),Q(10,0,100);
AA1:=(REF(HIGH,N1) = HHV(HIGH,((2 * N1) + 1)));
AAA:=FILTER(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);
[url=http://www.70822.com/soft/sort013/sort02/down-92412.html]飞狐金盾主图指标公式[/url]