Add Fibonacci with cloud

N

NathanJames

New member
Hello Ben and Experts,

I have a code below that i found on the web and use it on all of most of chart, i just want to ask if you can add a fibonacci Indicator with cloud if possible similar to your ORB. Thank you for your help.

Nathan

Code:
declare upper;



def vHigh = high;

def vLow = low;

def bar = BarNumber();

def na = Double.NaN;

def TS = TickSize();

def showTodayOnly = yes;



def OpeningMinutesMeanStart = 930;

def OpeningMinutesMeanEnd = 935;



def OpeningMinutesRangeActive = if SecondsTillTime(OpeningMinutesMeanEnd) > 0 and

                    SecondsFromTime(OpeningMinutesMeanStart) >= 0 

                 then 1 

                 else 0;



def today = if showtodayonly == 0 

              or GetDay() == GetLastDay() and

                 SecondsFromTime(OpeningMinutesMeanStart) >= 0 

              then 1 

              else 0;



##  Education!  Defines the highest high of OpeningMinutesRangeActive

def OpeningMinutesRange_High = if OpeningMinutesRange_High[1] == 0 

               or OpeningMinutesRangeActive[1] == 0 

               and OpeningMinutesRangeActive == 1 

               then vHigh 

               else if OpeningMinutesRangeActive 

                    and vHigh > OpeningMinutesRange_High[1] 

                    then vHigh 

               else OpeningMinutesRange_High[1];

##  plot OpeningMinutesHigh_plot = OpeningMinutesRangeHigh;



##  Education!  Defines the lowestlow of the time period ORActive

def OpeningMinutesRange_Low = if OpeningMinutesRange_Low[1] == 0 

              or OpeningMinutesRangeActive[1] == 0 and

                 OpeningMinutesRangeActive == 1 

              then vLow 

              else if OpeningMinutesRangeActive and

                      vLow < OpeningMinutesRange_Low[1] 

              then vLow 

              else OpeningMinutesRange_Low[1];

##  plot OpeningMinutesLow_plot = OpeningMinutesRangeLow;







Plot OpeningMinutesRange_ActiveHigh = if OpeningMinutesRangeActive 

             or today < 1 

             then na 

             else  OpeningMinutesRange_High;

OpeningMinutesRange_ActiveHigh.setPaintingStrategy(PaintingStrategy.DASHES);



Plot OpeningMinutesRange_ActiveLow = if OpeningMinutesRangeActive 

             or today < 1 

             then na 

             else OpeningMinutesRange_Low;

OpeningMinutesRange_ActiveLow.setPaintingStrategy(PaintingStrategy.DASHES);





Plot OpeningMinutesRange_Average = OpeningMinutesRange_ActiveHigh - Round(((OpeningMinutesRange_ActiveHigh - OpeningMinutesRange_ActiveLow) / 2) / TS, 0) * TS;

OpeningMinutesRange_Average.setPaintingStrategy(PaintingStrategy.LINE_VS_POINTS);
 
Last edited by a moderator:

Similar threads

Top