New API MetaTrader 4 AVAILABLE - page 17

 
I want to import your dll in asp.net, and I have a major problem

First i want to say that this dll works fine in a windows application written in C#, and It works fine when I use the ASP.NET development server (Local machine).

But when I run the this code in Local host ( I upload it to my webserver ),asp.net know its Functions, but dont return anything or return wrong output adn return true output for sometimes.

Can it be something with the security rights the IIS has? or Web.config? or my way to Import?



---------------------------------------------------------------------------------------------------------------------

for Example this Function code is:

[DllImport("tzmt4api.dll")]

public static extern int ServerTotal_MT4();

and when i call that ( in localhost )...
Response.Write( ServerTotal_MT4().ToString() );

Output is: "-1" But when i use the ASP.NET development server (Local machine) It works fine, and Output is:  "67"



---------------------------------------------------------------------------------------------------------------------



this Function works true in both ( Localhost and LocalMachine ):

[DllImport("tzmt4api.dll")]


public static extern string ErrorDescription_MT4(int errorcode);

and when i call that ...

Response.Write( ErrorDescription_MT4(3) );

output in Localhost and Localmachine is  : "invalid trade parameters" !! therefore it works file in both.



---------------------------------------------------------------------------------------------------------------------



this Function don't return anything in local host :

[DllImport("tzmt4api.dll")]

public static extern string ServerGet_MT4(int index);

and when i call that ...


Response.Write( ServerGet_MT4(1) );

output is empty!



---------------------------------------------------------------------------------------------------------------------



i sure that Asp.net know this DLL well, and if its not so Asp.net  show error for me but dont work fine! but don't work true.

do you know any solution for me?
 

Hi TradeZone,

I've found another error: 

Exception handles


while calling function OrdersHistoryTotalA(handle);

i'm using atzmt version 4.0.0.7.

Can i try an earlier version? Maybe this solves the problem?

Please, give me a link for downloading

Regards

 

Version 4.0.0.7 released! Get it! ( http://www.itevolution.com.br/tz/files/TZMT4API.zip )

This version extended free demo period until 2008-12-12.

So you get a more time to acquire your license, preventing your application stop working during shopping period.

A nag screen was added to allow register procedure.

After 2008-12-12, as demo limitation, a 10 minute window will be set, allowing you 10 minutes os use, then 10 minutes not accepting requests, 10 minutes working, and so on.

A bug on TickAdd was fixed.

Short samples on C++, C#, Vb.Net was added besides Delphi.

Kindest regards and profitble trades,

Tradezone's Team.

Could you email me some detaile about payment;



 
dsunegin:

I think, my _from and _to are consistent with MT4's date format.

------------------------

C++ code:


int tm=MarketInfo_TM4(handle,"USDJPY",5);

char *hst=HistoryGet_TM4(handle,"USDJPY",tm-50,tm, 1, 0);


, or next code:

 char *hst=HistoryGet_TM4(handle,"USDJPY",tm-50,tm, 1, 40);


--------------------------

,and another question : How can i get an Order Close Time?

In API I've fond only function OrderOpenTime_MT4.


Regards

Hi dsunegin!


Just to get it clear in you code sample you are get 50 seconds of history.

TZMT4APi exports OrderCloseTime_MT4, take a look.


Regards.

 
dsunegin:

Hi TradeZone,

I've found another error: 

Exception handles


while calling function OrdersHistoryTotalA(handle);

i'm using atzmt version 4.0.0.7.

Can i try an earlier version? Maybe this solves the problem?

Please, give me a link for downloading

Regards

Hi dsunegin!


Previous version are involution of current version. This will not solve your problem.

Did you try to use delphi complied sample?

This should removed doubts about TZMT4api.dll or TZMT4api x C++ integration, and focus to get solution.


Regards.

 
jabbari:
I want to import your dll in asp.net, and I have a major problem

First i want to say that this dll works fine in a windows application written in C#, and It works fine when I use the ASP.NET development server (Local machine).

But when I run the this code in Local host ( I upload it to my webserver ),asp.net know its Functions, but dont return anything or return wrong output adn return true output for sometimes.

Can it be something with the security rights the IIS has? or Web.config? or my way to Import?



---------------------------------------------------------------------------------------------------------------------

for Example this Function code is:

[DllImport("tzmt4api.dll")]

public static extern int ServerTotal_MT4();

and when i call that ( in localhost )...
Response.Write( ServerTotal_MT4().ToString() );

Output is: "-1" But when i use the ASP.NET development server (Local machine) It works fine, and Output is:  "67"



---------------------------------------------------------------------------------------------------------------------



this Function works true in both ( Localhost and LocalMachine ):

[DllImport("tzmt4api.dll")]


public static extern string ErrorDescription_MT4(int errorcode);

and when i call that ...

Response.Write( ErrorDescription_MT4(3) );

output in Localhost and Localmachine is  : "invalid trade parameters" !! therefore it works file in both.



---------------------------------------------------------------------------------------------------------------------



this Function don't return anything in local host :

[DllImport("tzmt4api.dll")]

public static extern string ServerGet_MT4(int index);

and when i call that ...


Response.Write( ServerGet_MT4(1) );

output is empty!



---------------------------------------------------------------------------------------------------------------------



i sure that Asp.net know this DLL well, and if its not so Asp.net  show error for me but dont work fine! but don't work true.

do you know any solution for me?

Hi!


Check your email, we sent some clues.


Regards.

 
bergoliv:

Version 4.0.0.7 released! Get it! ( http://www.itevolution.com.br/tz/files/TZMT4API.zip )

This version extended free demo period until 2008-12-12.

So you get a more time to acquire your license, preventing your application stop working during shopping period.

A nag screen was added to allow register procedure.

After 2008-12-12, as demo limitation, a 10 minute window will be set, allowing you 10 minutes os use, then 10 minutes not accepting requests, 10 minutes working, and so on.

A bug on TickAdd was fixed.

Short samples on C++, C#, Vb.Net was added besides Delphi.

Kindest regards and profitble trades,

Tradezone's Team.

Could you email me some detaile about payment;



Hi, bergoliv!


Give us your email address.


Regards.

 
TradeZone:

Hi, bergoliv!


Give us your email address.


Regards.

day.trading.forex@gmail.com

 
TradeZone wrote >>

Hi, bergoliv!

Give us your email address.

Regards.

may i get a lift on him?

i want to know about registration and payment.

R00tZer0.2nd@gmail.com

 
TradeZone:

Hi, Folks!

We developped a dll capable of handling several instances of client terminal MT4 in background, allowing login in several accounts and multiples brokers simultaneously(MAX. 32).

Mainly goal, we kept in mind, when developing this API was permit handling orders in MetaTrader brokers from anothers softwares, for example MetaStock.

This API has more than 55 functions provindg informations about:

  • Symbols and History;
  • Accounts, including support to AccountFreeMarginCheck();
  • Orders, reading historical/opened orders, sending any kind of them(buy/sell, limit/stop, ...), and changing take profit, stop loss, etc.;
  • Market Info, used mainly to retrieve Bid/Ask;
  • Errors occurred in each account;
  • and some checkup functions.

This installation is zipped and available to download at http://www.itevolution.com.br/tz/files/TZMT4API.zip

You can use it on any platform you want. There is a text inside installation(<TZAPIFolder>\Developer) describing all functions and its C's header, and also a Delphi's header too.

This API can be also used in MT4 like code sample below.

Best regards and profitable trade!

Hi TradeZone,

Does this API supports managing more than one Account in parallel ?

And Does anyone tried to manage more than one account in parallel by using this API for MT4 ?

Reason: