hello everyone please can someone help me with stock price prediction. That is I wrote this code and from the I vector , I want a code that will remove indexes from the I vector more than 60 seconds. Thanks
Ältere Kommentare anzeigen
LSE_matrix =log(nstock_val); %log of the data
I=1:(size(LSE_matrix,1)-1); % selecting the indices of all prices but the last time when stock was opened
dLSE_col1 = LSE_matrix(I+1,1) - LSE_matrix(I,1);% log difference
5 Kommentare
Geoff Hayes
am 6 Jul. 2020
Afua - how or where is time used in the above code? I see that you have valus for stock prices (?) but where is a time array?
Afua Amoako Dadey
am 6 Jul. 2020
Geoff Hayes
am 6 Jul. 2020
But what variable describes the time? How, from the above code, can we determine which stock index goes beyond 60 seconds?
Afua Amoako Dadey
am 6 Jul. 2020
jonas
am 6 Jul. 2020
Dont you think it would be easier if you upload a sample of the data?
Akzeptierte Antwort
Weitere Antworten (1)
Afua Amoako Dadey
am 6 Jul. 2020
0 Stimmen
Kategorien
Mehr zu Financial Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
