Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
Gary, If you have PowerPivots Plus here is your indicator
factor:=Input("TimeFactor", 0, 1000, 1);
offset:=Input("Offset", 0, 1000, 0);
HD:=ExtFml("PowerPivots.TDataCreate",1, factor);
LD:=ExtFml("PowerPivots.TDataCreate",2, factor);
CD:=ExtFml("PowerPivots.TDataCreate",3, factor);
Pivot:=(Hd+Ld+Cd)/3;
Val2:=(Hd+Ld)/2;
Diff:=Abs(Pivot-Val2);
PR1:=Pivot+Diff;
PR2:=Pivot-Diff;
Pivot:=ExtFml("PowerPivots.TDataLocalize", Pivot, factor, offset);
PR1:=ExtFml("PowerPivots.TDataLocalize", PR1, factor, offset);
PR2:=ExtFml("PowerPivots.TDataLocalize", PR2, factor, offset);
PR1;Pivot;PR2;
This will work on any time frame,
factor 1=will plot the values for the charted periodocity
Factor 2= will plot the value of the indicator as if was plotted on a chart that has twice the Periodocity of the Lower time frame" This rule is for intraday charts"
Factor 2= will plot the value of the indicator as if was plotted on a weekly chart ont a Daily chart" This rule is for EOD or daily RT charts"
If you are charting a 1 min chart, factor =60 will plot the Hourly Indicator
If you are charting a 5 min chart, factor =12 will plot the Hourly Indicator
offset will shift the indicator to the right
|