[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pivot code



PureBytes Links

Trading Reference Links

Greetings:

Might one of you code experts know of a way to take values derived from a 
daily chart (as below) and use them to create an indicator which can be 
placed on an intra-day chart?  Then, to have the indicator update at noon, 
using todays open, high and low?  I am stumped.  OR IF YOU HAVE A BETTER IDEA 
FOR THE UPDATE TIME AND VALUES TO USE, PLEASE ADVISE.  Thank you very much.  
Kevin Miles.


Formula for Pivot and Associated Sup/Res Levels
P = Pivot
NH = Next High
HH = Highest High
NL = Next Low
LL = Lowest Low
O = Open
H = High
L = Low
C = Close

P = (H + L + C) /3     (daily values)
NH = (2*P) - L
NL = (2*P) - H
LL = P - (NH - NL)
HH = (P - NL) + NH