Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 672 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to use BrokerHistory2 #481461
09/18/20 12:29
09/18/20 12:29
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Hi,

Do you anybody know, how to use "BrokerHistory2" from plugin?

I cannot see in the manual.

Thanks
Milan

Re: how to use BrokerHistory2 [Re: Grat] #481464
09/18/20 12:45
09/18/20 12:45
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
It is described here:
https://manual.zorro-project.com/brokerplugin.htm

Some knowledge of C structs and memory management would be helpful in using the function.

Re: how to use BrokerHistory2 [Re: Grat] #481466
09/18/20 12:50
09/18/20 12:50
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Yes,

this I read but:

Code
function run()
{
    assetList("Assets4");
    LookBack = 0;
    BarPeriod = 1;
    
    T6 mData;
    char symbol[7];
    
    strcpy(symbol,"EUR/USD");
    int n=BrokerHistory2 (symbol, 1600326000, 1600326000, 1, mData);



get this error

mt4Data compiling.......
Error in 'line 169:
'BrokerHistory2' undeclared identifier
< int n=BrokerHistory2 (symbol, 1600326000, 1600326000, 1, mData); >.

Re: how to use BrokerHistory2 [Re: Grat] #481467
09/18/20 12:56
09/18/20 12:56
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Ah, it looks like Zorro did not expose the function to Zorro scripts. You'd have to manually load the DLL file and set up a function prototype, etc etc.

It's been done before:
https://opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=478796#Post478796

Re: how to use BrokerHistory2 [Re: Grat] #481470
09/18/20 14:29
09/18/20 14:29
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Super, thank's


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1