Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 5/4/2005(UTC) Posts: 63 Location: Poole Dorset England
|
Hi Steve, Just to confirm, I have tried several times now, copied and pasted exactly what your last post stated (As I thought maybe the copy and paste might have left something in by mistake as it does happen sometimes) But still, no joy. Try it yourself mate as a new exploration with what you posted, It just isn't working. I think its either a mistake in the VFI or FVE or the filter. As when I copied this before(Just the columns without the filter, it was returning pole heights and target% etc.
Can you just check once more mate as there is something definately wrong. Sure I dont need anything else in the indicator builder?
I can post exactly what I have for you to look at, but honest mate, it's exactly the same as you last post, I've tried it 4 times now, just to make sure I didnt make a mistake.
In saying that, I will post it now, so if it is something I've done different you might see it, but it is the same, Honest
Hope you can check once more
Help!:-)
Here is exactly what I have Column by column and in the Indicator builder
In Explorer, Exploration called "Flags & Pennants"
ColA
C
ColB
zz:=Zig(C,17,%);
X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2));
X1:=LastValue(X)+1;
c2:=Ref(HHV(C,(2+X1)),-1);C2
ColC
zz:=Zig(C,17,%);
X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2));
X1:=LastValue(X)+1;
C3:=Ref(LLV(C,26),-X1);C3
ColD
zz:=Zig(C,17,%);
X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2));
X1:=LastValue(X)+1;
c2:=Ref(HHV(C,(2+X1)),-1);
c3:=Ref(LLV(C,26),-X1);
POLE:=(C2-C3)/C3*100;POLE
ColE
zz:=Zig(C,17,%);
X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2));
X1:=LastValue(X)+1;
c2:=Ref(HHV(C,(2+X1)),-1);
c3:=Ref(LLV(C,26),-X1);
POLE:=(C2-C3)/C3*100;
TARGET:=1.94* Power(pole ,.724);TARGET
Col F
zz:=Zig(C,17,%);
X:=BarsSince(ZZ < Ref(ZZ,-1)AND Ref(ZZ,-1) > Ref(ZZ,-2));
X1:=LastValue(X)+1;
c2:=Ref(HHV(C,(2+X1)),-1);
c3:=Ref(LLV(C,26),-X1);
POLE:=(C2-C3)/C3*100;
TARGET:=1.94* Power(pole ,.724); (1+TARGET/100)*C
Filter
ZZ:=Zig(C,17,%);
X:=BarsSince(ZZ < Ref(ZZ,-1) AND Ref(ZZ,-1) > Ref(ZZ,-2));
X1:=LastValue(X)+1; {flag duration}
X2:=X1+1;
SD:=Stdev(C,X2);
PERIOD:=22;
COEF:=.1;
INTRA:=Log(H)-Log(L);
VINTRA:=Stdev(INTRA,PERIOD);
INTER:=Log(Typical())-Log(Ref(Typical(),-1));
VINTER:=Stdev(INTER,PERIOD);
CUTOFF:=COEF*(VINTER+VINTRA)*C;
MF:=C-(H+L)/2+Typical()-Ref(Typical(),-1);
FVE:=Sum(If(MF>CUTOFF,+V,If(MF<-CUTOFF,-V,0)),
PERIOD)/Mov(V,PERIOD,S)/PERIOD*100;
denominator:=Ref(V,-X2);
noZero:=If(denominator=0,0.00001,denominator);
X1<21 AND X1>2 AND {Condition 1}
Ref(LinRegSlope(C,13)/Ref(C,-13)*100,-X1)>2.2{Condition 2}
AND Ref(LinRegSlope(C,X2)/Ref(C,-X2),-1)*100<.2
AND LinRegSlope(C,X1)/Ref(C,-X1)>-1.2 {Condition 3}
AND Ref(LinRegSlope(V,X2)/noZero,-1)*100<-2 {Condition 4}
AND Ref(LinRegSlope(SD,X1),-1)<0 {Condition 5}
AND Stoch(20,3)>55 AND ADX(10)>30{Condition 6}
AND FVE>10 AND Fml("VFI")>-3 {Condition 7}
AND C>Ref(C,-1) AND C>O {Condition 8}
In The Indicator Builder, 2 New Indicators
FVE
pds:=Input("period for FVE",1,80,22);
mf:=C-(H+L)/2+Typical()-Ref(Typical(),-1);
fve:=Sum(If(mf>0.3*C/100,+V,
If(mf<-0.3*C/100, -V,0)),pds)/Mov(V,pds,S)/pds*100;
fve
VFI
PERIOD:= Input("PERIOD FOR VFI ",5,1300,130);
COEF:=.2;
VCOEF:=Input("MAX VOLUME CUTOFF",0,50,2.5);
INTER:=Log(Typical())-Log(Ref(Typical(),-1));
VINTER:=Stdev(INTER,30);
CUTOFF:=COEF*VINTER*C;
VAVE:=Ref(Mov(V,PERIOD,S),-1);
VMAX:=VAVE*VCOEF;
VC:=If(V < VMAX,V,VMAX);
MF:=Typical()-Ref(Typical(),-1);
VFI:=Sum(If(MF > CUTOFF, +VC, If(MF < -CUTOFF, -VC,0)),PERIOD)/VAVE;
Mov(VFI,3,E);
That's it mate, Hope you can help
All the best
Theghost:-)
|