Fibonacci pivot points

Category: Indicators By: Nicolas Created: March 9, 2016, 4:28 PM
March 9, 2016, 4:28 PM
Indicators
23 Comments

The Fibonacci pivot points indicator is made of 38.2% and 61.8% extension of the main pivot line, for the support (S1,S2) and resistance (R1, R2) ones. This indicator show only the pivot points on the current day from the previous OHLC day values.

Coded by member request on forum.

if Today[0] = Date[0] then
  dh = DHigh(1)
  dl = DLow(1)

  P = (dh + dl + DClose(1))/3
  S1 = P - .382 * (dh-dl)
  S2 = P - .618 * (dh-dl)
  S3 = P -  1 * (dh-dl)
  R1 = P +  .382 * (dh-dl)
  RR2 = P +  .618 * (dh-dl)
  R3 = P + 1 * (dh-dl)
endif

RETURN P as "pivot", S1 as "S1", S2 as "S2", S3 as "S3", R1 as "R1", RR2 as "R2", R3 as "R3"

 

Download
Filename: Pivot-points-Fibonacci-Nicolas.itf
Downloads: 430
Nicolas Master
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Logo Logo
Loading...