- ago
Code to get daily pivot point to intraday 1 minute
0
984
3 Replies

Reply

Bookmark

Sort
- ago
#1
I'm puzzled. Is this a question, request or assertion?
0
- ago
#2
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");                            }
0
- ago
#3
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
0

Reply

Bookmark

Sort