- Fixed bug in function iBarShift
- Added function ChangeAccount.
- Issue #53: implemented functions of Chart Operations
- Issue #52: Function OrderSend returns ExecutionException with error InvalidParameter on sending pending orders (MT4)
– Issue #51: Connecting localhost 8222
– Added functionality to lock/unlock ticks on each candle in backtesting mode.
These is new parameter in expert MtApi.ex4: BacktestingLockTicks. Default value is false. To use lock ticks on each candle user should set true value of the parameter. Ticks will be blocked on each candle in this mode. To unlock ticks user should call function UnlockTicks from MtApi client side.
The mode of locking ticks allow to perform some large computing on client side, send order functions to MT4 and and be sure that command will be executed in time of the candle.
Issue #45: Errors on parsing JSON
I have found that problem is related to order Comment that Exptert is trying to get in test mode during call function GetOrder/GetOrders from history pool. MetaTrader can return wrong comment string like this: “,”Magic”:372,”RequestType”[tp] .This string has broken json that is using in response of functions GetOrder/GetOrders.
I will disable using comment of order in backtesting mode. Unfortunately, this is only solution to fix this problem.
Fixed memory leaks.
Issue #38: Fixed memory leaks.
Issue #35: Implemented function TerminalInfoDouble
Issue #34: Implemented function TerminalInfoInteger
Issue #31: Implemented function SymbolInfoTick
Issue #31: Implemented function SymbolInfoDouble
Issue #33: Implemented function SeriesInfoInteger
Issue #27: Created bootstrapper project for MtApi MT4 with vcredist package
MtApi_Setup.exe contains VCRedist package and install it automaticaly.
- Issue #25. Implemented function CopyTicks.
- Issue #29. Changed name of log file (added pattern with process Id).
- Issue #30. Created Bootstrapper installer with vcredist package (installer MtApi5_Setup_[platform].exe).
MtApi5.dll is using with Newtonsoft.Json.dll. Don’t forget to add reference on it.
- Added functions: SymbolInfoSession, SymbolSelect, SymbolName, SymbolsTotal
- Fixed issue #26 (Backtesting).
Release link: https://github.com/vdemydiuk/mtapi/releases/tag/v1.0.31