|
ose
2015-09-03 10:43:40
|
|
Hi Everyone,
I am still in my trial period. However I seem to be having problems with a formula I have created.
I have created the below formula, but when loaded on the chart, it seems incorrect, as it does not look like the normal chart of returns I would load on say FreeStockCharts.com.
The lines/bars of the two symbols are always so close to each other even though this is not the true reflection.
symbol1 = 'OXY';
symbol2 = 'HES';
cur1 = GetSeries(symbol1, Close);
prev1 = ref(cur1,1);
cur2 = GetSeries(symbol2, Close);
prev2 = ref(cur2,1);
return1 = (cur1 - prev1)/prev1*100;
return2 = (cur2 - prev2)/prev2*100;
// return1 = (cur1/prev1)-1;
// return2 = (cur2/prev2)-1;
plot(return2, symbol2, colorRed); // Plot standard deviation in blue
plot(return1, symbol1, colorBlue); // Plot standard deviation in blue
Any ideas?
Ose
|
|