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*