automatically update My trades list

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

automatically update My trades list

Postby guangho » Wed Apr 11, 2018 1:25 pm

My trades list sometimes does not automatically update,the strategy that does not get the latest trades information at run time.

my strategy code:

function HT1(bsk)
local enum=core.host:findTable("trades"):enumerator();
local row=enum:next();
local bb1=0;
local dd1=0;
while row~=nil do
if row.AccountID==Account and row.OfferID==offer then
if row.BS==bsk then bb1=bb1+1 else dd1=dd1+1 end
end
row=enum:next();
end
return bb1,dd1 end

I want use the "refresh" to automatically update My trades list.
How should I write the strategy?

Thank you!
guangho
 
Posts: 80
Joined: Sat Sep 29, 2012 12:16 pm

Re: automatically update My trades list

Postby Apprentice » Thu Apr 12, 2018 4:38 am

Can you provide a complete strategy code?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 18533
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Google [Bot] and 9 guests