When will MC be supporting AskSize/BidSize keywords?
Code: Select all
{ Copyright (c) 2005, NT LLC NT@NT.com }
[IntrabarOrderGeneration = TRUE]
DefineDLLFunc: "NtDirect.dll", int, "Ask", lpstr, double, int;
DefineDLLFunc: "NtDirect.dll", int, "Bid", lpstr, double, int;
DefineDLLFunc: "NtDirect.dll", int, "Last", lpstr, double, int;
DefineDLLFunc: "NtDirect.dll", int, "SetUp", lpstr, int;
vars: vol(Volume);
{
{ "SetUp" needs to be called before the very first NT ATI call }
if CurrentBar = 1 then begin
SetUp("remote-machine-name-or-ip", 36973);
end;
}
if LastBarOnChart then begin
if Volume > Volume[1] then
vol = Volume - Volume[1];
Ask(GetSymbolName, CurrentAsk, AskSize);
Bid(GetSymbolName, CurrentBid, BidSize);
Last(GetSymbolName, Close, vol);
end;