MQL4 - automated forex trading   /  

Forum

New API MetaTrader 4 AVAILABLE

Back to topics list  | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 > >> To post a new topic, please log in or register

avatar
60
haitham_elnemr 2008.09.01 03:49 
hi trade zone,
is that API free ware or it's share Ware ? coz i 've msg says the trial period is finished!!!!
thank u.

avatar
62
TradeZone 2008.09.01 17:37 

We haven't decided yet how license mode will work, but this trial version is totally free to use for a limited time.

Please, download the version 4.0.0.2 ( http://www.itevolution.com.br/tz/files/TZMT4API.zip ). This version will expire late November.

avatar
4
magister 2008.09.11 05:16 
Help,

which DLL do I import so I can use this in Visual Studio .NET and code in C#

Thanks!

avatar
128
Mehmet 2008.09.20 14:58 
TradeZone wrote >>

Mehmet,

You can add how many srv do you want.

Just put them inside <Program Files\Tradezone\TZMT4API\Source\srv>.

For example:

- Go to <Program Files\Interbanfx Trader\config>, copy "InterbankFX-MT4 Standard Accounts 2.srv"

- Copy to <Program Files\Tradezone\TZMT4API\Source\srv>

Best regards.

1- i want to connect but not work for delphi.

ComboBox1.Text:='InterbankFX-InterbankFX-MT4 Mini Accounts'

InterbankFX-InterbankFX-MT4 Mini Accounts.srv has C:\Program Files\TradeZone\TZMT4API\Source\srv


H := LogIn_MT4(strtoint(Edit1.Text), pchar(Edit2.Text), pchar(ComboBox1.Text), '', '', '', '');

GetLastError - 10002 - Corresponding .srv file not found

2- How do load combobox1.text all availablee C:\Program Files\TradeZone\TZMT4API\Source\srv\*.srv



avatar
3
fdan1c 2008.09.21 00:16 
Hello!

I have a code like this (C++ Builder):

...

ticket = OrderGet_MT4(handle, i, 0, 0);

tmp_chr = OrderSymbol_MT4(handle, ticket);

err = GetLastError_MT4(handle);

...

It gives error 4105: ERR_NO_ORDER_SELECTED

But I selected order using OrderGet_MT4. As I understand it's analogue of OrderSelect in MT4.

How this issue can be solved?


Thanks!




avatar
62
TradeZone 2008.09.22 19:14 
magister wrote >>
Help,

which DLL do I import so I can use this in Visual Studio .NET and code in C#

Thanks!

Hi magister!


C:\WINDOWS\SYSTEM32\tzmt4api.dll


Kindest regards.


avatar
62
TradeZone 2008.09.22 20:22 
fdan1c wrote >>
Hello!

I have a code like this (C++ Builder):

...

ticket = OrderGet_MT4(handle, i, 0, 0);

tmp_chr = OrderSymbol_MT4(handle, ticket);

err = GetLastError_MT4(handle);

...

It gives error 4105: ERR_NO_ORDER_SELECTED

But I selected order using OrderGet_MT4. As I understand it's analogue of OrderSelect in MT4.

How this issue can be solved?


Thanks!



Hi, fdan1c!


You understand OrderGet_MT4 perfectly.

But o course there are errors in code.


Is i between 0 and OrdersTotal?


Kindest regards!




avatar
62
TradeZone 2008.09.22 20:26 
Mehmet wrote >>

1- i want to connect but not work for delphi.

ComboBox1.Text:='InterbankFX-InterbankFX-MT4 Mini Accounts'

InterbankFX-InterbankFX-MT4 Mini Accounts.srv has C:\Program Files\TradeZone\TZMT4API\Source\srv


H := LogIn_MT4(strtoint(Edit1.Text), pchar(Edit2.Text), pchar(ComboBox1.Text), '', '', '', '');

GetLastError - 10002 - Corresponding .srv file not found

2- How do load combobox1.text all availablee C:\Program Files\TradeZone\TZMT4API\Source\srv\*.srv


Hi Mehmet!


1) Are you using version 4.0.0.2?


2) Take a look on FindFirst and FindNext delphi's functions.


Kindest regards!


avatar
3
fdan1c 2008.09.23 00:15 
TradeZone wrote >>

Hi, fdan1c!


You understand OrderGet_MT4 perfectly.

But o course there are errors in code.


Is i between 0 and OrdersTotal?


Kindest regards!



Hello again!


I beleive there are no obvious errors in the code. Here are a bit more code:

 

...

// clear error output

 GetLastError_MT4(acctArr[index].handle);


 if (IsConnected_MT4(acctArr[index].handle))

 {

   ord_cnt = OrdersTotal_MT4(acctArr[index].handle);

   for (i=0;i<ord_cnt;i++)

   {

     src_ordrArr[i].handle = acctArr[index].handle;

     src_ordrArr[i].ticket = OrderGet_MT4(src_ordrArr[i].handle, i, 0, 0);

     ShowMessage("Check point 1: Last Error = "+IntToStr(GetLastError_MT4(acctArr[index].handle)));


     tmp_chr = OrderSymbol_MT4(src_ordrArr[i].handle, src_ordrArr[i].ticket);

     strcpy(src_ordrArr[i].symbol, tmp_chr);

     Dispose_MT4(tmp_chr);

     ShowMessage("Check point 2: Last Error = "+IntToStr(GetLastError_MT4(acctArr[index].handle)));

   }

 }


So, at 'Check Point 1' I see 'Last Error = 0', tmp_chr get valid value (e.g. "USDGBP"), but at 'Check Point 2' I get 'Last Error = 4105' during the same cycle iteration...
I can't understand where the problem is...

If you can, please, help.

Thanks in advance...


avatar
62
TradeZone 2008.09.29 20:37 
fdan1c wrote >>

Hello again!


I beleive there are no obvious errors in the code. Here are a bit more code:

 

...

// clear error output

 GetLastError_MT4(acctArr[index].handle);


 if (IsConnected_MT4(acctArr[index].handle))

 {

   ord_cnt = OrdersTotal_MT4(acctArr[index].handle);

   for (i=0;i<ord_cnt;i++)

   {

     src_ordrArr[i].handle = acctArr[index].handle;

     src_ordrArr[i].ticket = OrderGet_MT4(src_ordrArr[i].handle, i, 0, 0);

     ShowMessage("Check point 1: Last Error = "+IntToStr(GetLastError_MT4(acctArr[index].handle)));


     tmp_chr = OrderSymbol_MT4(src_ordrArr[i].handle, src_ordrArr[i].ticket);

     strcpy(src_ordrArr[i].symbol, tmp_chr);

     Dispose_MT4(tmp_chr);

     ShowMessage("Check point 2: Last Error = "+IntToStr(GetLastError_MT4(acctArr[index].handle)));

   }

 }


So, at 'Check Point 1' I see 'Last Error = 0', tmp_chr get valid value (e.g. "USDGBP"), but at 'Check Point 2' I get 'Last Error = 4105' during the same cycle iteration...
I can't understand where the problem is...

If you can, please, help.

Thanks in advance...

Hi fdan1c,


You really find a bug. It's fixed now. Please, get version 4.0.0.3 ( http://www.itevolution.com.br/tz/files/TZMT4API.zip ). This version will expire late November.


And folks... please update to version 4.0.0.3.

Older Versions, like 4.0.0.2, expires on 2008.09.30.


Kindest regards!

Back to topics list   | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 > >>  

To add comments, please log in or register