Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 806
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 added ports to the firewall, rebooted the computer, reinstalled the terminals, of course
I've got a ForexFoyu broker working.
Everything works for me forexFoyou broker.
So it's just me, even from my phone it works
First you check orders through OrderSelect() as it should be - control the symbol and the order master number, and then you close the order in OrderCloseX() and search through the orders again, but for some reason you do not control the symbol and the master number in OrderSelect()
I think we should add OrderCloseX() in order not to rewrite all the code:
Once again to my question from yesterday. You turned out to be 100% right. There is already a confirmation today, everything works correctly now. Thank you once again. I somehow missed it and didn't pay attention.
So it's just me, even from my phone it works.
I'll tell you the truth, it happens.
Good afternoon, I am a newbie, help convert this to code:
-cross bars backwards, find the closest cross of 2 MAs and a touch from a fast MA
- go to the last order in the history, if it was opened before the crossover, then we may open a new one
I'll figure it out and figure out what my mistakes were!
Please don't forget that I'm new to programming :-(
Thank you.
If wrong, please write the correct code.
I'll figure it out and figure out what my mistakes were!
Please don't forget that I'm new to programming :-(
Thank you.
Index what do you pass it into the function for? What happens to it inside the function?
Inside the function index is needed to refer to the parameter-address that is specified in the call. And changes to the index will affect the value of the index outside the function.
Index is a variable that you pass to a function by reference. It then changes its value in the function itself. Why do you rewrite it by calling a function and putting a double-value in the int-variable? There is no need to do this.
You should start with programming basics.