When comparing the results of my Stockfetcher Correlation Calculator to RamtaJogi's Correlation Calculator, I noticed quite different results. Upon closer inspection, it's because my calculator and RJ's calculator treated 0 change days differently. Mine treated them as up days, and his treated them as down days. So that my calculator matches his, I have changed mine so that 0 days equal down days. All you need to do is change this code:
set{ind_diff, close_ind - open_ind}
set{ind_up, count(ind_diff >= 0, 1)}
set{ind_down, count(ind_diff < 0, 1)}
set{stock_diff, close - open}
set{stock_up, count(stock_diff >= 0, 1)}
set{stock_down, count(stock_diff < 0, 1)}
to this:
set{ind_diff, close_ind - open_ind}
set{ind_up, count(ind_diff > 0, 1)}
set{ind_down, count(ind_diff <= 0, 1)}
set{stock_diff, close - open}
set{stock_up, count(stock_diff > 0, 1)}
set{stock_down, count(stock_diff <= 0, 1)}
Bently Continental Supersport
3 hours ago


0 comments:
Post a Comment