Serious stress tests are needed.
It's tested with several opening/closing orders/positions, you can try the test demo file on your side.
Hans Alexander Nolawon Djurberg #:
It's tested with several opening/closing orders/positions, you can try the test demo file on your side.
It's tested with several opening/closing orders/positions, you can try the test demo file on your side.
#include <MQL4TradeCompat_define.mqh> // https://www.mql5.com/en/forum/518160#comment_60549462 #define Bid SymbolInfoDouble(_Symbol, SYMBOL_BID) #define Ask SymbolInfoDouble(_Symbol, SYMBOL_ASK) void OnStart() { Print(AccountInfoString(ACCOUNT_SERVER)); // https://docs.mql4.com/trading/ordersend Print(OrderSend(_Symbol, OP_BUY, 0.1, Ask, 0, 0, 0)); }
Result.
Trades '': market buy 0.1 AUDCAD Trades '': deal #10662681920 buy 0.1 AUDCAD at 0.99357 done (based on order #10922861691) Trades '': accepted market buy 0.1 AUDCAD Trades '': order #10922861691 buy 0.1 / 0.1 AUDCAD at 0.99357 done in 38.948 ms
MetaQuotes-Demo
-1962040197 You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
CLiveTradeInfo - CHistoryTradeInfo:
The library reconstructs a complete MQL4-style order model on top of the native MQL5 Position, Order, Deal, and History APIs. This design allows legacy MQL4 Expert Advisors to operate with minimal code changes while preserving MQL5.
Author: Hans Alexander Nolawon Djurberg