netarchitech
Well-known member
Given the following code:
Try as I may, I can't get a Dot to plot...I've tried many variations to no avail...Must be all the late nights catching up with me...
Thanks in advance
Code:
def data = if close > close[1] then close - Min(close[1], low) else if close < close[1] then close - Max(close[1], high) else 0;
def AccDist = TotalSum(data);
plot SwingLo = if AccDist == 0 then low else Double.NaN;;
SwingLo.SetPaintingStrategy(PaintingStrategy.POINTS);
SwingLo.SetDefaultColor(CreateColor(0, 102, 204));
SwingLo.SetLineWeight(5);
plot SwingHi = if AccDist == 100 then high else Double.NaN;
SwingHi.SetPaintingStrategy(PaintingStrategy.POINTS);
SwingHi.SetDefaultColor(CreateColor(0, 102, 204));
SwingHi.SetLineWeight(5);
Try as I may, I can't get a Dot to plot...I've tried many variations to no avail...Must be all the late nights catching up with me...
Thanks in advance
Last edited: