Questions from Beginners MQL5 MT5 MetaTrader 5 - page 937
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
Hello!
I open a position and want to print the content of MqlTradeResult like this:
result.retcode, order and volume are printed, but deal and price are always zeros.
Could you please tell me what I am doing wrong?
Hi!
I open a position and want to print the content of MqlTradeResult like this:
result.retcode, order and volume are printed, but deal and price are always zeros.
Please, what am I doing wrong?
ArticleWhere to start when creating a trading robot for the Moscow Exchange MOEX. An example of "TradeTransactionListener" listener:
Trading using robots is simple
The MQL5 language supports all the trading features of the MetaTrader 5 platform, including a large numberof trading functions for working with orders, positions and trade requests. It does not matter what market you are trading - futures, stocks, options, etc.
Using the MQL5 tools you can createa trade request and send it to the server usingOrderSend() orOrderSendAsync() functions, getthe result of its execution, view the trade history, find outthe contract specification for an instrument, processthe trade event and get a lot of other necessary information.
It is important for the developers of trading robots to understand one essential fact: every trade operation, whether it is opening a position, setting StopLoss or TakeProfit, or closing a position with a counter trade, always consists of a number of transactions performed on MetaTrader 5 server and on the Moscow Exchange. To see how this happens, you can run theTradeTransactionListener.mql5 Expert Advisor on your account which simply listens forTradeTransaction events and displays a summary of them:
Has anyone encountered a problem, can't log into mt5, problem - invalid certificate?
What are the conditions for testing to continue with the same cache in the \Tester\cache, not to create a new optimization table, but to be updated?
1 an unchanged compiled EA file ex5
2 testing conditions would not change (except balance or balance + profitability).
3 ?
I can't log in to mt5, problem is invalid certificate?
ArticleWhere to start when creating a trading robot for the Moscow Exchange MOEX. Example of a TradeTransactionListener listener:
Hello!
I open a position and want to print the content of MqlTradeResult like this:
result.retcode, order and volume are printed but deal and price are always zeros.
Could you please tell me what I am doing wrong?
Try calling before printing
from the CTrade classTry calling up
from the CTrade classThanks, I'd like to do it without CTrade.
So pull the required functionality from the class and write it to yourself.