Questions from Beginners MQL5 MT5 MetaTrader 5 - page 996

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
People help. Trying to get the price at which a trade opened. At first I traded through CTrade but trade.resultprice was equal to zero. I started to trade through MqlTrade and result.price was showing well in the Strategy Tester, but it was equal to zero in Live. I tried it with OnTradeTransaction, but it is too slow in live trading showing zero and shows the last trade price when auto-trading is stopped. What are some ways to get the price at which the buy trade went through?
Hello fellow programmers. Please help me to modify this function. I've already introduced this function in MQL5 Reference. What should I do to make it calculate the number of open positions for Magic?
At least change Orders*** to Positions*** everywhere and then check.
It seems to be working)) We can add this function to MQL5)) Although it's probably too early, I will test it)
It seems to be working)) You can add this function to the MQL5 handbook)) Although it's probably too early, I'm still testing)
People help. I'm trying to get the price at which a trade opened. At first I used CTrade, but trade.resultprice was equal to zero. I started to trade through MqlTrade and result.price was showing good results in Strategy Tester, but it was equal to zero in Live. I tried it with OnTradeTransaction, but it is too slow in live trading and shows zero when auto-trading is stopped. What are some ways to get the price at which the buy trade went through?
OrderSend sends an order. Then we have to wait for its execution and for the corresponding trade to appear in the history.
In order to do all this correctly, one must either be good at OnTradeTransaction or write rather heavy code for OrderSend once.
In the second case, CTrade will also work as desired.
What is the analogue for Digits that would return the number of decimal places after the decimal point that determines the accuracy of the price measurement of the selected chart symbol?
What is the analogue for Digits that would return the number of decimal places after the decimal point that determines the accuracy of the price measurement of the selected chart symbol?
Thank you!