Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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