i wrote a small console application to test mtAPI and i have some issue to make it to run it smoothly.
I'm testing the mtAPi with the backtest.
If I close the meta trader and open it again, then since it's the first time that mtAPI is called and there is only one quote, then everything is fine.
but if i stop the backtest, then start it again, then two problems happens
the previous backtest quote still is running and connected (if you look at second picture there is two EURUSD quote, even i close the console application and run it again, the only way to restart it is to close metatrader)
i can't get second backtest information, in the backtest log i'm getting waiting for remote client error (even my console already is connected!)
and the console application can't get the quote informations
even if i close and open the console application, still it can't connect to quote successfully and backtest remain in waiting for remote client ... state
another problem that i have is i can't figure out what is the use case of TimerTradeMonitor and TimeframeTradeMonitor. do you have any documentation about this? I took a look at them and couldn't find what is the difference and the logic behind to call them.
the code is borrowed from the winform application, to help me to to figure out mechanic behind the mtAPI.
hi, thanks for this awesome works
i wrote a small console application to test mtAPI and i have some issue to make it to run it smoothly.
I'm testing the mtAPi with the backtest. If I close the meta trader and open it again, then since it's the first time that mtAPI is called and there is only one quote, then everything is fine.
but if i stop the backtest, then start it again, then two problems happens
the previous backtest quote still is running and connected (if you look at second picture there is two
EURUSD
quote, even i close the console application and run it again, the only way to restart it is to close metatrader)i can't get second backtest information, in the backtest log i'm getting
waiting for remote client
error (even my console already is connected!)and the console application can't get the quote informations
even if i close and open the console application, still it can't connect to quote successfully and backtest remain in
waiting for remote client ...
stateanother problem that i have is i can't figure out what is the use case of
TimerTradeMonitor
andTimeframeTradeMonitor
. do you have any documentation about this? I took a look at them and couldn't find what is the difference and the logic behind to call them.the code is borrowed from the winform application, to help me to to figure out mechanic behind the mtAPI.
the code look like bellow