I am trying to access the DOM values and simply plot a marker on the chart if there is a certain size displayed anywhere in the DOM.
My efforts so far:
Code: Select all
input: BigSize(20), Offset(5);
if dom_isconnected = true then begin
if dom_asksize(1)[1] > BigSize then plot1(Low-Offset,"Ask1");
if dom_asksize(2)[1] > BigSize then plot1(Low-Offset,"Ask2");
if dom_asksize(3)[1] > BigSize then plot1(Low-Offset,"Ask3");
if dom_asksize(4)[1] > BigSize then plot1(Low-Offset,"Ask4");
if dom_asksize(5)[1] > BigSize then plot1(Low-Offset,"Ask5");
end;
Thanks