Below is a snippet of the code I use to calculate Weekly central pivots:
PWeekO = TimeFrameGetPrice("O",inWeekly, -1);
PWeekH = TimeFrameGetPrice("H",inWeekly, -1);
PWeekL = TimeFrameGetPrice("L",inWeekly, -1);
PWeekC = TimeFrameGetPrice("C",inWeekly, -1);
CentralPivot_PW=(PWeekH+PWeekL+PWeekC)/3;
PWBC=(PWeekH+PWeekL)/2;
PWTC=(CentralPivot_PW-PWBC)+CentralPivot_PW;
I am able to plot the said levels on the chart from the previous week. How can one possibly plot an extended line of an untouched or virgin price level not necessarily from the prior week, but from 2 weeks or 3 weeks before?
Thanks and Regards,
Phani