Code to get daily pivot point to intraday 1 minute
Rename
I'm puzzled. Is this a question, request or assertion?
It is a question. WL6 code is
CODE:
/* if (Bars.Scale == BarScale.Minute) { SetScaleDaily(); DataSeries PPH = Bars.High; DataSeries PPL = Bars.Low; DataSeries PPO = Bars.Open; DataSeries PPC = Bars.Close; RestoreScale(); PPH = Synchronize(PPH); PPL = Synchronize(PPL); PPO = Synchronize(PPO); PPC = Synchronize(PPC); PlotSeries(PricePane, ((PPH + PPL + PPC) / 3)>>1, Color.Red, LineStyle.Solid, 2); PlotSeries(PricePane, (2 * (PPH + PPL + PPC) / 3 - PPL)>>1, Color.DeepSkyBlue, LineStyle.Solid, 2); PlotSeries(PricePane, (2 * (PPH + PPL + PPC) / 3 - PPH)>>1, Color.DeepSkyBlue, LineStyle.Solid, 2); PlotSeries(PricePane, ((PPH + PPL + PPC) / 3 + (PPH - PPL))>>1, Color.DarkOliveGreen, LineStyle.Solid, 2); PlotSeries(PricePane, ((PPH + PPL + PPC) / 3 - (PPH - PPL))>>1, Color.DarkOliveGreen, LineStyle.Solid, 2); } else { DrawLabel(PricePane, "Switch to minutes"); }
Please see this sticky post and find answer in the updated WL6 QuickRef:
https://www.wealth-lab.com/Discussion/Quick-WL6-9-to-WL7-Translation-Guide-5548
https://www.wealth-lab.com/Discussion/Quick-WL6-9-to-WL7-Translation-Guide-5548
Your Response
Post
Edit Post
Login is required