Friday, May 20, 2022

DiNapoli and Fibonacci Objectives


Basic code for fast and handy Fibonacci and DiNapoli objectives (OP, COP, XOP) plotting on chart.

Every Blue line is indicating averaged Fibonacci levels calculated from: .328, .500, .618 for corresponding fractals specified by user (lighter colour is meaning nearest fractals (H/H, L/L).

Fibonacci nodes averaged to eliminate to many lines plotted on chart.

Red, Violet, Pink, Brown lines are indicating DiNapoli targets (lighter lines for COP’s, darker for XOP’s).

  • extern int FracsFromBar = 6; // this is number of bar from which indicator calculates back fractals specified below´╝î”0″ means current bar.
  • extern int FibFractals01 = 12; // first and nearest to bar specified before range for fractals (H/H,L/L for spec. nr of bars)
  • extern int FibFractals02 = 22; // second range for fractals (H/H,L/L for spec. nr of bars)
  • extern int FibFractals03 = 32; // third range
  • extern int FibFractals04 = 45; // fourth, wider range
  • extern bool CommentsOn = false; // short description on chart, leave it “false” if to chart is attached another indicator with comments.

Previous articleMoving Averages on the side
Next article3-Candle Chart

top forex brokers