Understanding Fibonacci Pivot Points (Intraday)

Created at 26 Mar 2014, 18:00
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
PR

Prospect

Joined 21.03.2014

Understanding Fibonacci Pivot Points (Intraday)
26 Mar 2014, 18:00


Hi All,

I've been working through and understanding the "Fibonacci Pivot Points (Intraday)" indicator found here: /algos/indicators/show/182

What I can't figure out is why the close of the last bar of the previous day has been included when working out the pivot.

What am I missing here?

Thanks.

 

            // Set Close of previous day - Close of Last Bar of prevous Day
            if (previousOpenTime.Day == yesterday.Day && currentOpenTime.Day == today.Day)
            {
                _close = MarketSeries.Close[index - 1];
            }
             
            // Only show output in todays timeframe
            if (currentOpenTime.Date != today.Date) return;
             
            // Calculate output
            Pivot[index] = (_higher + _lower + _close)/3;
             
            R1[index] = Pivot[index] + (.382 * ( _higher - _lower ));
            S1[index] = Pivot[index] - (.382 * ( _higher - _lower ));

 


@Prospect