Need help on my EA - page 2

 
Quattrofan:


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

Reason: