slowly talk into your microphone and say "Please Expert, only open one order at a time" and see if that works.
or post some of your code so we can actually help you.
Hello traders,
I have just finished my EA but it has 11 warning. At first I thought it would be ok because when I back tested it on the Strategy tester it worked fine.
As soon as I went live the EA does work but because of the errors it opens more than 1 trade at a time.
I would like it to open one and not to open another, till the current one is closed, if that makes sense.
Please help thanks, FXMercury
I would do it with the function PositionsTotal() and a conditional.
https://www.mql5.com/en/docs/trading/positionstotal

- www.mql5.com
slowly talk into your microphone and say "Please Expert, only open one order at a time" and see if that works.
or post some of your code so we can actually help you.
slowly talk into your microphone and say "Please Expert, only open one order at a time" and see if that works.
or post some of your code so we can actually help you.
thats not code only warnings.
it already sais what you need to do.
check the return value of orderselect.
Returned value:
It returns true if the function succeeds, otherwise falses. To get the error information, one has to call the GetLastError() function.
bool result;//declare result result=OrderSelect(.....//get value if(result==1) { // Order Selected } if(result==0) { // Orderselect Failed }
simplistic representation to give you a hint.
Sorry, Here are the attachments.. screenshots.
1 - The 7 warnings
2 - first to problems
3 - next 2 problems
4 - Final 3 warnings
Replace the following code. wherever apply. which will remove 6 warnings return value of "OrderSelect" to be checked.
bool var1=OrderSelect(LongTicket, SELECT_BY_TICKET); instead of OrderSelect(LongTicket, SELECT_BY_TICKET); for more OrderSelect(LongTicket, SELECT_BY_TICKET); OrderSelect(ShortTicket, SELECT_BY_TICKET); replace with bool var1=OrderSelect(LongTicket, SELECT_BY_TICKET); bool var2=OrderSelect(ShortTicket, SELECT_BY_TICKET); bool var3=OrderSelect(LongTicket, SELECT_BY_TICKET); Another warning. add the following statement below the line i specified below: RealPoint=RealPoint(Symbol()); return(0); }
I would do it with the function PositionsTotal() and a conditional.
https://www.mql5.com/en/docs/trading/positionstotal
Bonjour
Je pense que je peux parler francais
If you have a problem to read french language I can translate, no problem
Voila, je vous contacte car j'ai vu que vous aviez commenté un article de Michel du blog Michel attitude
a propos de l'indicateur de Bill William que je découvre et qui me semble pertinent
qu"en pensez vous ?
Sinon, j'essaie de me mettre a la programmation en langage MQL5 et plus précisemment j'essaie d'appliquer un EA que j'ai découvert sur le site, il s'agit de
"STEP-BY-STEP GUIDE TO WRITING AN EXPERT ADVISOR IN MQL5 FOR BEGINNERS 9 June 2010"
de: SAMUEL OLOWOYO
https://www.mql5.com/en/articles/100
il ne fonctionne pas chez moi, j'aurais souhaité un peu d'aide ...
Jean Philippe

- 2010.06.09
- Samuel Olowoyo
- www.mql5.com
Please post in English only on this forum.
Nous avons un seul fil de discussion en français.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello traders,
I have just finished my EA but it has 11 warning. At first I thought it would be ok because when I back tested it on the Strategy tester it worked fine.
As soon as I went live the EA does work but because of the errors it opens more than 1 trade at a time.
I would like it to open one and not to open another, till the current one is closed, if that makes sense.
Please help thanks, FXMercury