Calculating least squares for OHLC chart

Discussion in 'Technical Analysis' started by db2009, Aug 21, 2009.

  1. db2009


    This maybe a dumb question but im trying to calculate the least squares line for a OHLC chart and not sure how calculate for the entire range of each OHLC bar. I know how to calculate least squares when it just the closing price but how do you calculate it when incorporating the entire range of each bar? Do you calculate the least squares for each variable(open,high, low, close) and then take an average?
  2. raker


    Thats how I would do it ..
  3. db2009


    i was also thinking doing a least squares of the median of each bar on the chart but im not sure if thats correct either
  4. Sounds like a better route than your origional post.