问无效OrderSend专家在MQL5中的应用ENEDI最初是在由美国企业应用在企业间订货业务活动的电子数据交换系统...
rep=api.construct_and_send(action="TRADE",actionType="ORDER_TYPE_SELL_LIMIT",symbol="EURUSD","volume"=0.1,"price"=1.2,"expiration"=1560782460)print(rep) Event handler example forLive socketandData socket. importzmqimportthreadingapi=MTraderAPI()def_t_livedata():socket=api.live_socket()while...
Dear all, I am trying to import historical data (M1) to MT5 from my Tradestation account. I have export the data in csv format and below there are some rows as example: "Date","Time","Open","High","Low","Close","TotalVolume" 1/2/2008,03:01:00,3841.00,3842.25,3840.25,3841.75,18...
Hi everyone . How can I draw a rectangle that shows me the pips value in the corner? In fact, the mql5 code as an indicator that displays the pips value of each rectangle I drew. I have attached a photo as an example Articles, Library comments (13619) ...
If I want use EA to monitor and check manual-tading action, how to progeamming? for example, EA can check and then decide aloow or reject user's manual tade before the trade send to server. now,EA only can check the orders state after server 1 ok...
Python 3 API class example: importzmqclassMTraderAPI:def__init__(self,host=None):self.HOST=hostor'localhost'self.SYS_PORT=15555# REP/REQ portself.DATA_PORT=15556# PUSH/PULL portself.LIVE_PORT=15557# PUSH/PULL portself.EVENTS_PORT=15558# PUSH/PULL portself.INDICATOR_DATA_PORT=15559# ...
Dear all, I am trying to import historical data (M1) to MT5 from my Tradestation account. I have export the data in csv format and below there are some rows as example: "Date","Time","Open","High","Low","Close","TotalVolume" 1/2/2008,03:01:00,3841.00,3842.25,3840.25,3841.75,18...
Python 3 API class example: importzmqclassMTraderAPI:def__init__(self,host=None):self.HOST=hostor'localhost'self.SYS_PORT=15555# REP/REQ portself.DATA_PORT=15556# PUSH/PULL portself.LIVE_PORT=15557# PUSH/PULL portself.EVENTS_PORT=15558# PUSH/PULL portself.INDICATOR_DATA_PORT=15559# ...
Example: //--- value for ORDER_MAGIC inputlongorder_magic=55555; //+---+ //| Script program start function | //+---+ voidOnStart() { //--- make sure that the account is demo if(AccountInfoInteger(ACCOUNT_TRADE_MODE)==ACCOUNT_TRADE_MODE_REAL) { Alert("Script operation is not ...
OrderSendAsync() 函数用于指导不同步的 交易操作 ,无需等待交易服务器对发送请求的回应。该函数专为高频交易设计,根据交易算法,无法接受浪费时间等候来自服务器的回应。bool OrderSendAsync( MqlTradeRequest& request, // 请求架构 MqlTradeResult& result // 请求架构 );...