Plotting Dom values error message

Questions about MultiCharts and user contributed studies.
jl12
Posts: 220
Joined: 29 Jun 2007
Has thanked: 10 times
Been thanked: 9 times
Contact:

Plotting Dom values error message

Postby jl12 » 03 Dec 2012

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

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Plotting Dom values error message

Postby Henry MultiСharts » 03 Dec 2012

Hello jl12,

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);


Return to “MultiCharts”