logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Derek Worswick  
#1 Posted : Monday, February 9, 2015 5:44:57 PM(UTC)
Derek Worswick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 8/11/2005(UTC)
Posts: 104

Hi,

Std Error Channel Power using Pivots Plus


Could you please help me to modify  the formula below for the

Second or previous  "Instances  "of the  Pivot Point  


say i2 = 2  or  previous occurrence of the Pivot

i2:= Input("Instance", 0, 10, 2);

Thank you in advance,

Derek

*code*

i1:=Input("Pivot ( 1=Minor 2= Interim 3=Major 4=Primary )", -4, 4, -3);
i2:= Input("Instance", 0, 10, 1);

{ie  Line Below }

Periods:=LastValue( (ValueWhen(i2,ExtFml("PowerPivots.Pivots")=i1,LastValue(
BarsSince(ExtFml("PowerPivots.Pivots")=i1)))));

nd:= Input("number of deviations",0,10,2);
end:=LastValue(Cum(1));
pt:=LastValue(LinearReg(C,Periods));
slope:=LastValue(LinRegSlope(C,Periods));
start:=BarsSince(Cum(1)>=end-(Periods-0));
center:=If(start=0,pt - (slope*(end-Cum(1))),0);
dis:=nd*LastValue(STE( C, Periods));
center+dis;
center;
center-dis

*/code*
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.