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