PureBytes Links
Trading Reference Links
|
Greetings,
I'd appreciate if anyone could help me out with the following
easylanguage
question:
I'm using Reuters EOD data and my problem is that they supply the
Dow/Nasdaq and other indices separately from the volume and i'm having
trouble creating
the OBV indicator in Tradestaion.
I inserted the corresponding volume as data2 into my chart and i tried
writing a custom OBV function that references data2 but i get an error
message
saying "arithmetic/numeric expression required" where data2 is.
This is my code:
Function OBVforData2-
if currentbar >0
then begin
if Close[0] > Close[1] then
OBVforData2 = OBVforData2[1] + Data2
else if Close[0] < Close[1] then
OBVforData2 = OBVforData2[1] - Data2
else
OBVforData2 = OBVforData2[1];
end
else
OBVforData2=0;
Obviously, this is wrong. I'm relatively new to EL so if anyone
could help me solve this I'd really appreciate it.
Jerry
|