I find New API MetaTrader 4 AVAILABLE 'New API MetaTrader 4 AVAILABLE'
EXE rprogram can use it to control MT.
I think it is use communtion mode betweent processes.
Is it supplied by MetaQuotes Software Corp. ?
Where can find such information about communtion between exe and MT/s termianl program ?
not only MQL4 with DLL.
Wish MT can supply similar API to public !!!
not yours ? but it can logon from one exe program outside of MT !
MQL can not control logon.
such things will have some effects on MT's security !
This is a trick not API :)
Try to use this soft on a computer without installed MetaTrader 4.
This is fiction only.
yes, but use such dll can control login logout outside of MT.
this maybe influence MT's terminal 's safety.
:) YES, I do not use. through Mt allow it appeared on MQL4 froum.
I am waiting your MQL5 and wish MT will supply interface to .Net not only interface to C's DLL.
我也很想用在别的环境里编程的时候可以控制MT4的登陆,现在在MQL里不能切换帐户这一点限制太大了.
像DXDCN提到,希望MQL5能支持.NET,否则在C或C++里写DLL,太烦人了.......
另外DXDCN有办法用程序切换登陆帐户吗?除了用好个NEW MT4 API.....
I find New API MetaTrader 4 AVAILABLE 'New API MetaTrader 4 AVAILABLE'
EXE rprogram can use it to control MT.
I think it is use communtion mode betweent processes.
Is it supplied by MetaQuotes Software Corp. ?
Where can find such information about communtion between exe and MT/s termianl program ?
not only MQL4 with DLL.
Wish MT can supply similar API to public !!!
for examples:
int SymbolsTotal_MT4(int handle);
string SymbolGet_MT4(int handle, int index);
double AccountBalance_MT4(int handle);
double AccountCredit_MT4(int handle);
string AccountCompany_MT4(int handle);
string AccountCurrency_MT4(int handle);
double AccountEquity_MT4(int handle);
double AccountFreeMargin_MT4(int handle);
double AccountFreeMarginMode_MT4(int handle);
int AccountLeverage_MT4(int handle);
double AccountMargin_MT4(int handle);
string AccountName_MT4(int handle);
int AccountNumber_MT4(int handle);
double AccountProfit_MT4(int handle);
string AccountServer_MT4(int handle);
int AccountStopoutLevel_MT4(int handle);
int AccountStopoutMode_MT4(int handle);
double AccountFreeMarginCheck_MT4(int handle, string symbol, int cmd, double volume);
int OrdersTotal_MT4(int handle);
int OrdersHistoryTotal_MT4(int handle);
int OrderGet_MT4(int handle, int index, int select, int pool);
double OrderClosePrice_MT4(int handle, int ticket);
int OrderCloseTime_MT4(int handle, int ticket);
string OrderComment_MT4(int handle, int ticket);
double OrderCommission_MT4(int handle, int ticket);
int OrderDelete_MT4(int handle, int ticket);
int OrderExpiration_MT4(int handle, int ticket);
double OrderLots_MT4(int handle, int ticket);
int OrderMagicNumber_MT4(int handle, int ticket);
double OrderOpenPrice_MT4(int handle, int ticket);
int OrderOpenTime_MT4(int handle, int ticket);
double OrderProfit_MT4(int handle, int ticket);
double OrderStopLoss_MT4(int handle, int ticket);
double OrderSwap_MT4(int handle, int ticket);
string OrderSymbol_MT4(int handle, int ticket);
double OrderTakeProfit_MT4(int handle, int ticket);
int OrderType_MT4(int handle, int ticket);
bool OrderClose_MT4(int handle, int ticket, double lots, double price, int slippage);
bool OrderCloseBy_MT4(int handle, int ticket, int opposite);
bool OrderModify_MT4(int handle, int ticket, double price, double stoploss, double takeprofit, int expiration);
int OrderSend_MT4(int handle, string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment, int magic, int expiration);
double MarketInfo_MT4(int handle, string symbol, int type);
int GetTickCount_MT4(int handle);
int GetLastError_MT4(int handle);
string ErrorDescription_MT4(int errorcode);
bool IsConnected_MT4(int handle);
bool IsDemo_MT4(int handle);
bool IsTradeContextBusy_MT4(int handle);
int TimeCurrent_MT4(int handle);