As a start I have tried to plot some dom values using the syntax suggested.
value1=dom_asksize(1);
value2=dom_asksize(2);
value3=dom_asksize(3);
plot1(value1);
plot2(value2);
plot3(value3);
Though it complies I get the error message.
"Error in Study dom std exception invalid argument"
I am using Ib data and the Dom window is fully populated .
Any suggestions as to the error cause
Plotting Dom values error message
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Plotting Dom values error message
Hello jl12,
You need to add a check whether DOM is connected or not to avoid this issue.
You need to add a check whether DOM is connected or not to avoid this issue.
Code: Select all
repeat;
if not dom_isconnected then
break;
value1=dom_asksize(1);
value2=dom_asksize(2);
value3=dom_asksize(3);
plot1(value1);
plot2(value2);
plot3(value3);
#return;
until(False);