Ghostwar19
Member
Ghost Pivots, derived from fib numbers, enjoy.
Code:
#Ghost Fib Pivots
#Discord User : Omar1981#5487
#9/15/2021
input aggregation = AggregationPeriod.DAY;
def high = high(period = aggregation)[1];
def low = low(period = aggregation)[1];
def range = high - low;
plot f1 = low + range * .5;
f1.SetPaintingStrategy(PaintingStrategy.horizontAL);
f1.SetDefaultColor(color.black);
f1.setLineWeight(2);
plot f2 = low + range * .382;
f2.SetPaintingStrategy(PaintingStrategy.horizontAL);
f2.SetDefaultColor(color.black);
f2.setLineWeight(2);
plot f3 = low + range * .832;
f3.SetPaintingStrategy(PaintingStrategy.horizontAL);
f3.SetDefaultColor(color.black);
f3.setLineWeight(2);
plot f4 = low + range * .941;
f4.SetPaintingStrategy(PaintingStrategy.horizontAL);
f4.SetDefaultColor(color.black);
f4.setLineWeight(2);
plot f5 = low + range * 1.264;
f5.SetPaintingStrategy(PaintingStrategy.horizontAL);
f5.SetDefaultColor(color.black);
f5.setLineWeight(2);
plot f6 = low + range * 1.382;
f6.SetPaintingStrategy(PaintingStrategy.horizontAL);
f6.SetDefaultColor(color.black);
f6.setLineWeight(2);
plot f7 = low + range * 1.823;
f7.SetPaintingStrategy(PaintingStrategy.horizontAL);
f7.SetDefaultColor(color.black);
f7.setLineWeight(2);
plot f8 = low + range * 1.941;
f8.SetPaintingStrategy(PaintingStrategy.horizontAL);
f8.SetDefaultColor(color.black);
f8.setLineWeight(2);
plot f9 = low + range * 2.264;
f9.SetPaintingStrategy(PaintingStrategy.horizontAL);
f9.SetDefaultColor(color.black);
f9.setLineWeight(2);
plot f10 = low + range * 2.382;
f10.SetPaintingStrategy(PaintingStrategy.horizontAL);
f10.SetDefaultColor(color.black);
f10.setLineWeight(2);
plot f11 = low + range * -.059;
f11.SetPaintingStrategy(PaintingStrategy.horizontAL);
f11.SetDefaultColor(color.black);
f11.setLineWeight(2);
plot f12 = low + range * -.177;
f12.SetPaintingStrategy(PaintingStrategy.horizontAL);
f12.SetDefaultColor(color.black);
f12.setLineWeight(2);
plot f13 = low + range * -.5;
f13.SetPaintingStrategy(PaintingStrategy.horizontAL);
f13.SetDefaultColor(color.black);
f13.setLineWeight(2);
plot f14 = low + range * -.618;
f14.SetPaintingStrategy(PaintingStrategy.horizontAL);
f14.SetDefaultColor(color.black);
f14.setLineWeight(2);
plot f15 = low + range * -.941;
f15.SetPaintingStrategy(PaintingStrategy.horizontAL);
f15.SetDefaultColor(color.black);
f15.setLineWeight(2);
plot f16 = low + range * -1.059;
f16.SetPaintingStrategy(PaintingStrategy.horizontAL);
f16.SetDefaultColor(color.black);
f16.setLineWeight(2);
plot f17 = low + range * -1.382;
f17.SetPaintingStrategy(PaintingStrategy.horizontAL);
f17.SetDefaultColor(color.black);
f17.setLineWeight(2);
plot f18 = low + range * -1.5;
f18.SetPaintingStrategy(PaintingStrategy.horizontAL);
f18.SetDefaultColor(color.black);
f18.setLineWeight(2);