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
I haven't found any description of response codes (Retcode) for MqlTradeCheckResult structure of trade request results in the documentation. Will there be any?
All descriptions are in the documentation.
Look at OrderSend function, MqlTradeResult structure and list of trade response codes.
Told - empty array with no size
Tnew[1] - out of array, the array is described as Tnew[1], so its elements can only be accessed as Tnew[0], because the index starts at zero.
All descriptions are in the documentation.
Look at OrderSend function, MqlTradeResult structure and list of trade response codes.
What is the output? Tnew[1]is an incorrect expression in this case, but it is valid? Is Tnew[0] , Tnew[] a valid expression or something else? The result of the expert does not seem to change when using Tnew[1],Tnew[0],Tnew[].
The result cannot be the same, at least not if data is read from the array by an index that does not exist. What do you think is in Tnew[1]?
I'm not so sure about what is being written, when the EA leaves the range, it can report an error and move on. But what will be in Tnew[0] in this case?
Renat, if I understood you correctly, the ENUM_TRADE_RETURN_CODES return codes for MqlTradeResult structure also apply to MqlTradeCheckResult structure
Yes, the base of trade error codes is the same for the entire trade function space.
The descriptions for new functions will be corrected - we just didn't have time to do it right away.
The result cannot be the same, at least not if data is read from the array by an index that does not exist. What do you think is in Tnew[1]?
I'm not sure about writing, the Expert Advisor can report an error and move on when it leaves the range, but what will be in Tnew[0] in this case?
The result of expert work does not change when using datetime Tnew[1];Tnew[0];Tnew[];.does it follow that in Exp_TEMA.mq5 from the article "Creating an Expert Advisor that trades on different symbols" the , the function
does not work?
What do you think Tnew[1] is?
After CopyTime(symbol, timeframe, 0, 1, Tnew); the address Tnew[1] should contain the start time of the previous bar.
The result of expert work does not change when using datetime Tnew[1];Tnew[0];Tnew[];.Should it follow that there is an Expert Advisor Exp_TEMA.mq5 from the article "Creating an Expert Advisor to trade on different symbols"? , the function
does not work?
What do you think Tnew[1] is?
After CopyTime(symbol, timeframe, 0, 1, Tnew); the address Tnew[1] should contain the start time of the previous bar.
Let's analyze in order
These two strings declare two arrays, one of which is dynamic, while the second one ( Tnew) contains only one record.
This is an attempt to change the size of the dynamic array. It is assumed that the number of records in the array will be equal to size.
This line copies one record (bar date) starting from bar number 0 into the Tnew array. This date then becomes available as Tnew[0] (because the array is numbered with ZERO).
Here, the only record of array Tnew is compared to record numbered Number-1 in a cell of array Told (remember, the array is numbered from 0).
If these dates do not match, we write the value of Tnew array to the cell of Told array.
I haven't found any description of response codes (Retcode) for the structure of MqlTradeCheckResult trade request check results in the documentation. Will they be available?
In the file MetaTrader 5\MQL5\Include\ErrorDescription.mqh
I have a question. Is the issue of graphics without holes not being considered ? https://www.mql5.com/ru/forum/100491
Very difficult to synchronise everything, I seem to have tried to account for everything in the indicator, but these holes are very difficult to deal with
2010.07.19 02:20:12 Checking of holes (EURUSD,M1) Number of holes in history 260 from the date 2010.07.09 21:35:00
2010.07.19 02:20:12 Checking of holes (EURUSD,M1) GBPUSD hole 2010.07.19 00:20:00
2010.07.19 02:20:12 Checking Holes (EURUSD,M1) Hole USDJPY 2010.07.19 00:15:00
2010.07.19 02:20:12 Hole Checking (EURUSD,M1) Hole EURGBP 2010.07.16 22:43:00
2010.07.19 02:20:12 Checking Holes (EURUSD,M1) GBPUSD Hole 2010.07.16 22:43:00
2010.07.19 02:20:12 Checking Holes (EURUSD,M1) GBPUSD Hole 2010.07.16 22:38:00
2010.07.19 02:20:12 Checking Holes (EURUSD,M1) AUDUSD Hole 2010.07.16 22:21:00
etc.....
and second question: are there any other pitfalls in this multicurrency indicator which I haven't checked?