![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
hi,
I´ve tested it. TP / SL =0 but no open order. I´m frustrated. Why run´s the program only on Strategytester and not on Demo Account. I´ve no mor ideas.
if no error is trown in the log and with TP/SL 0 still no order gets open'd i would recheck the logic of my EA.
do you use global variables?
maybe error in timefiltring?
maybe some trading restrictions (not enough free margin or...)
As I said, time to start using Print() statements to debug your EA.
The following line...
Print(Bars);
...if it produced output in the Experts log, would tell you the following
1. That the codeblock in which you placed this statement has been executed (so you're testing your logic flow)
2. The content of Bars (so you can understand perhaps why your logic is behaving in the way it is)
CB