2 accounts

All posts which do not fit into any other sections of the forum.

Moderator: admin

2 accounts

Postby 7000306337 » Mon Nov 30, 2020 5:03 am

Hi
Thank you in advance for your valuable time
Is it possible to access my DEMO-ACCT from my REAL-ACCT indicator?
Best regards,
7000306337
 
Posts: 64
Joined: Sat Jul 15, 2017 9:48 am

Re: 2 accounts

Postby Apprentice » Mon Nov 30, 2020 10:05 am

Not sure I understand, can you clarify?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: 2 accounts

Postby 7000306337 » Mon Nov 30, 2020 3:21 pm

Hi

For example, I want to access the DEMO-ACCT "orders table" while I´m logged into my REAL-ACCT.

Logged into REAL-ACCT I want to enumerate the "trades table" of the DEMO-ACCT
local enum, row
enum = core.host:findTable("trades"):enumerator(); -- "trades" table of DEMO-ACCT
row = enum:next();
while (row ~= nil) do
--
row = enum:next();
end
7000306337
 
Posts: 64
Joined: Sat Jul 15, 2017 9:48 am

Re: 2 accounts

Postby 7000306337 » Mon Nov 30, 2020 7:23 pm

More precisely and concisely:

A real-acct INDICATOR enumerates a demo-acct "trades" table.

Gratitudes,
7000306337
 
Posts: 64
Joined: Sat Jul 15, 2017 9:48 am

Re: 2 accounts

Postby Apprentice » Fri Dec 04, 2020 1:36 pm

Your request is added to the development list.
Development reference 2404.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: 2 accounts

Postby Apprentice » Tue Dec 08, 2020 9:08 am

There is no easy way to do that.
It's possible to write an external app that logs into your Demo account and provides data to Lua.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 7 guests