Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 452
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. Can you tell me how to organise an execution delay? So that after a new candle, 10 seconds elapse before the update is done.
I have other objects attached to 1 object, and when you delete this object, the rest just hang on the chart
Hello, I'm asking you to write code on the condition that if you remove one object from the chart, then the rest (as you choose) will be removed
I have other objects attached to one object, and when you remove this object, the rest just hang on the chart
Hello. Can you tell me how to organise an execution delay? I want to wait 10 seconds after new candlestick before executing update.
The easiest way is to add Sleep(10000); after Time_0 = Time[0]; and I think the lower #import directive should be raised 2 lines up
The easiest way is to insert Sleep(10000); after Time_0 = Time[0]; and I think the lower #import directive should be raised 2 lines higher
At creation of objects I use a prefix, i.e. the beginning of a name. For example: ObjectCreate("777_a" ... ObjectCreate("777_z" and then I delete the group ObjectsDelete(0, "777_")
Thank you for replying, no you do not understand, I have other objects attached to the object, and if you delete the indicator then all is normal, but if you right click and delete then delete exactly 1 object and need all attached, I hope you understand)
Thank you for replying, no you don't understand, I have other objects attached to the object and if you delete the indicator then everything is fine, but if you right click and delete then 1 object will be deleted and I need all the attached ones, I hope you understand)
It's been a long time since I wrote in MQL4, now I need to rewrite my EA from MQL5. Is the code that should open 1 trade on the symbol where the EA stands, is it correct?
In the Strategy Tester 2 trades are opened for some reason
I came across another nuance that I hadn't thought of before
1) We have a lot of Expert Advisors installed on the pairs
2) When opening an order by any Expert Advisor with its own settings (some EA opens 0.1 or 0.5, for example), this record will appear in the EAs line
3) The line "Experts" is read and other robots will delete themselves if there are open positions for more than x lots.
The question is how to read and process it ? it is not included in the log files.