
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
This was my previous problem https://www.mql5.com/en/forum/435434#comment_42935818 which has been solved
However, a new problem emerged that i'm needing help with.
When i load my EA onto a chart, immediately within seconds i get a email of the info i wanted to receive, but after that first email, my EA stops placing pending orders after the first pending orders expire or if price triggers a pending order and either hits my stop loss / take profit level. My EA stopped placing pending orders after i placed this code in the body of the on tick function:
and once i remove this code above and recompile it to test the EA on a live chart, it works normally and places pending orders every 2 minutes(expiry time 120 seconds) on the 1 minute chart.
Can someone please help me solve this. Why is my EA not placing orders whenever a signal is generated and how can i fix this? Thank you in advance!