Hallo team, should be possible to have the keyword " second bid" 3rd bid" etc?
today if i'm correct only insidebid/ask exist with the best, i would like to know also the other level.
should be possible require this for the next release?
value more than insidebid [SOLVED]
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: value more than insidebid [SOLVED]
Hello waldem,
These are the commands you are looking for:
https://www.multicharts.com/trading-sof ... tegory:DOM
These are the commands you are looking for:
https://www.multicharts.com/trading-sof ... tegory:DOM
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: value more than insidebid
Please refer to the sample code in the DOM_IsConnected description or the prebuilt indicator "--- Market Depth on Chart ---".
Re: value more than insidebid
thank you, i tried and it works.
strange things is that if i plot only one bid or ask work, if i try to plot both i get same argument error, but maybe is broker problem.
strange things is that if i plot only one bid or ask work, if i try to plot both i get same argument error, but maybe is broker problem.
Code: Select all
variables:
var0(0),var1(0);
if (LastBarOnChart_s = True) then begin
RecalcLastBarAfter(0.1);
if dom_isconnected then
var0 = dom_bidprice(0);
var1 = dom_askprice(0);
print(var0,var1);
end;
- ABC
- Posts: 722
- Joined: 16 Dec 2006
- Location: www.abctradinggroup.com
- Has thanked: 125 times
- Been thanked: 410 times
- Contact:
Re: value more than insidebid
Hi waldem,thank you, i tried and it works.
strange things is that if i plot only one bid or ask work, if i try to plot both i get same argument error, but maybe is broker problem.
you should include all DOM price checks in the dom_isconnected check and not just the first one.
That's likely why you receive an error when you try to print both.
Code: Select all
if dom_isconnected then
begin
var0 = dom_bidprice(0);
var1 = dom_askprice(0);
end ;
print(var0,var1);
ABC