NastyaMaley / All messages
Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
Exactly:) Thanks for the idea
Forum | 2022.04.30 18:13 | NastyaMaleyAny questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
I think the reason for the tester's behaviour has become clear. The type of demo account the robot is testing on is Netting. Therefore, if the stop specified when opening position #3 is triggered, it will close the entire volume of the position. Therefore, at the stop from #3, it closes #2 as well, even though it had its own separate stop set for it when it was opened. With Hedging account type, everything would work like in good old mql4.
Forum | 2022.04.30 18:13 | NastyaMaleyAny questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
Please help me to solve this problem with the tester. I am testing position opening for CME on EUR/USD futures On the rise of the market in the tester I open a long position on the breakdown with my stop and the trade gets a ticket #2. The market goes up and the next position is opened with a stop and the trade gets ticket #3 in the tester. When the market goes against the position #3 and reaches its stop, ideally #3 should close at the stop, and #2 should stay there, waiting for the price to reach the stop #2. But for some reason, when stop #3 triggered, the tester closes position #2 as well. The code for mql5 is
Forum | 2022.04.30 18:13 | NastyaMaleyAny questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
Thank you:)
Forum | 2022.04.30 14:51 | NastyaMaleyAny questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
GlobalVariable by default can only be double
Forum | 2022.04.30 14:50 | NastyaMaleyAny questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
Thank you.
Forum | 2022.04.30 14:50 | NastyaMaleyAny questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
Is it possible to create a global variable in the first terminal so that the second terminal can read it? Like a shared file folder for all terminals, only instead of files, there would be global variables that could be read by any of the installed terminals.
Forum | 2022.04.30 14:49 | NastyaMaleyAny questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
Unfortunately, it doesn't work (
Forum | 2022.04.30 14:43 | NastyaMaleyAny questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
Thanks ) How do I paste this into my code now?
Forum | 2022.04.30 14:43 | NastyaMaleyAny questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
There is a text file that contains numbers like: 10962 11433 13226 12232 I need to find the maximum number among these numbers, so I do the following: However, the ArrayMaximum function fails because arr_1[] is a string array, and I need to convert it to a numeric array. Please help with solving the conversion from a string array to a numeric one.
Forum | 2022.04.30 14:43 | NastyaMaley