Hi guys, I am very new to this platform so please bare with me...
I have recently started building an ea using mql5. I have coded it in such a way that if the previous DEAL_ENTRY_OUT returns a negative profit value, the buy/sell will not be executed until a new bar has been printed.
As part of the debugging, I have included comments to display the deal ticket number. What I have noticed so far is that it does not display any DEAL_ENTRY_OUT tickets. The DEAL_ENTRY_OUT was initially used as condition which NEVER returned true.
Can anyone confirm if this is a bug or has experienced the same issue? If not, is there anything I can do to work around it?
This is a snippet of the code:
Have you fund the reason of such behavior? Just bumped into the same situation
No mater .. position oppened DEAL_ENTRY_IN .... closed DEAL_ENTRY_IN ... the funny thing is that DEAL_ENTRY_OUT used to be exists and it was fully working code
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi guys, I am very new to this platform so please bare with me...
I have recently started building an ea using mql5. I have coded it in such a way that if the previous DEAL_ENTRY_OUT returns a negative profit value, the buy/sell will not be executed until a new bar has been printed.
As part of the debugging, I have included comments to display the deal ticket number. What I have noticed so far is that it does not display any DEAL_ENTRY_OUT tickets. The DEAL_ENTRY_OUT was initially used as condition which NEVER returned true.
Can anyone confirm if this is a bug or has experienced the same issue? If not, is there anything I can do to work around it?
This is a snippet of the code: