Below is my code for arbitrage analysis on DIA and the DOW
I need the x and the i to output to seperate vectors.
If someone can please help me I cant find how to do this anywhere.
clear
clc
load DIADOW.m
DIA = DIADOW(:,1);
DOW = DIADOW(:,2);
N = length(DIA);
tol = 20;
for i = 1:N
if abs(DIA(i)*100-DOW(i))> tol
x = DIA(i)*100 - DOW(i)
time = i;
end
end
|
|
0
|
|
|
|
Reply
|
Nick
|
12/5/2009 1:20:27 AM |
|