Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 762
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 understand that you need to somehow indicate to the Expert Advisor the ticket of the position opened manually, which you want it to trawl.
Thanks for the clarification, now I understand what I mean.
For me mql lessons recommend to set 3 (EURUSD), but liquidity of currencies is different and so is their speed. What are the figures that may be used as a reference point during normal market conditions for dollar pairs and crosses?
Is it possible to fill a multidimensional buffer using the CopyOpen, CopyHigh, CopyLow and CopyClose functions? The description says that it copies to a dynamic array - but a dynamic array can be multidimensional MQL5
Use a one dimensional array...
Is it possible to fill a multidimensional buffer using functions CopyOpen, CopyHigh, CopyLow and CopyClose? The description says that it copies into a dynamic array - but a dynamic array can be multidimensional.
If you have difficulty understanding the structures, you can use ArrayCopyRates
If you have a good understanding of it, you'd better
Hello. I have tried to build an EA out of several ones, everything is working properly in the strategy tester (I checked it in visualisation mode). I tried to use a demo account and now and then I got the following problem, an order is opened and then deleted, and this happens during one hour, until the hour changes. I thought there is a condition to enter and delete the order at the same time, but the deletion is only in time, I deleted this entire block error has not disappeared. If someone is not difficult tell me where the error.
Hello. I have tried to build an EA out of several ones, everything is working properly in the strategy tester (I checked it in visualisation mode). I tried to use a demo account and now and then I got the following problem, an order is opened and then deleted, and this happens during one hour, until the hour changes. I thought there is a condition to enter and delete the order at the same time, but the deletion is only in time, I deleted this entire block error has not disappeared. Please advise where the error is.
It is necessary to do overflow in a loop throughOrderSelect
As far as I understand, when a condition occurs, a transition to the modification function takes place where just the order select is used. And I also tried to remove this piece all the same error remains, and it is not always visible what condition occurs.
Hello. I have tried to build an EA out of several ones, everything is working properly in the strategy tester (I checked it in visualization mode). I tried to use a demo account and now and then I got the following problem, an order is opened and then deleted, and this happens during one hour, until the hour changes. I thought there is a condition to enter and delete the order at the same time, but the deletion is only in time, I deleted this entire block error has not disappeared. Please advise where the error is.
You have to write in the function Print(__FUNCTION__) or in Print(such-and-such block, such-and-such parameters). Observe the order in which the functions/blocks are triggered. The first one that triggered and should not have, that's where the question is then. Relying on the fact that "I have described here rather incompatible conditions for their simultaneous triggering" is not a good idea. Maybe the unit should not have triggered, but external parameters allowed it to trigger, maybe something inside the unit should not have triggered.
OnChartEvent() does not work in the tester.
Please show the button that can work in the tester. For example, click on which will raise the flag trade = true; click again? trade = false;
OnChartEvent() does not work in the tester.
Please show the button that can work in the tester. For example, click on which will raise flag trade = true; click again? trade = false;
In OnTick() control the button press. You can do by condition, if it works in the tester - control in OnTick(), but in the real world this control will not be executed and will be controlled in OnChartEvent()