Wanna join the discussion?! Login to your Discussions forum accountor Register a new forum account.
{Chirped cycle} a:=180+.993*PREV; b:=100*Sin(a); d:=360/(a-Ref(a,-1)); b
d:=360/Max(a-Ref(a,-1),0.00195);
x:=If((Fml("chirped cycle")>0 AND Ref(Fml("chirped cycle"),-1)<0),1,0); y:=BarsSince(x=1); y
a:=0.993; {0<a<=1.0} z:=1; {error check} a:=max(min(a,1),0.00001); x:=Cum(1)-1; n:=Cum(Exp(x * Log(a))); b:=z*360/LastValue(n); {plot} Sin(b*n);
b:=x*360/LastValue(n);
a:=Fml("chirped cycle"); x:=a>0 AND Ref(a>0,-1)=0; {crossing event} x1:=BarsSince(x); x2:=ValueWhen(1,x1=0,Ref(x1,-1)); y:=a<0 AND Ref(a<0,-1)=0; {crossing event} y1:=BarsSince(y); y2:=ValueWhen(1,y1=0,Ref(y1,-1)); {plot} (x2+y2)/2;
a:=Fml("chirped cycle"); init:=Cum(IsDefined(a))=1; counter:=Cum(1); x:=a>0 AND Ref(a>0,-1)=0; {crossing event} x:=ValueWhen(1,x,counter)-ValueWhen(2,x OR init,counter)-1; y:=a<0 AND Ref(a<0,-1)=0; {crossing event} y:=ValueWhen(1,y,counter)-ValueWhen(2,y OR init,counter)-1; {plot} (x+y)/2;