I am trying to build a simple Bitcoin price model in matlab.
I have a starting price, around $10 beginning of this year and want to model the values if the price ends up at $10,000 at the end of 2014. I believe that a linear progression is inaccurate ($5,000 end of this year) and want to run a for loop (in weeks) progressing the price each week using a logarithmic increase.
How would I set up a logarithmic "for loop"?
This works for linear increase but does not represent reality at all:
startPrice = 10;
endPrice = 10000;
years = 2;
days = years * ( 365 );
price = startPrice;
week = 0;
difference = (startPrice - endPrice) / days;
for day=1:days
price = price - difference;
if mod(day, 7) == 0
week = week + 1;
fprintf('Week %3i | Price: %4.2f\n',week, price)
end
end
Also, if you think a logarithmic model is inaccurate please explain why.