Page 1 of 1

No instrument in trades table?

PostPosted: Fri Oct 14, 2016 6:37 am
by bharanimani
Hi,
In the following code, when I check row.instrument == "EUR/USD", I always get row.instrument as empty even though i set it when I opened the position. Is there a way to check whether the row is for a given symbol? My question is when I call findTable(), will it return the trades only for the symbol i m running the strategy on or will it give all trades in my account?

local enum, row;
enum = core.host:findTable("trades"):enumerator();
row = enum:next();
while row ~= nil do
...
row = enum:next();
end

Re: No instrument in trades table?

PostPosted: Tue Oct 18, 2016 8:35 am
by Apprentice
Can you share your strategy code?