Probably you are doing something that involves dividing by the number of bars in
the chart, live charts always have a large back period, where the tester starts
from bar 0.
Craig:
Probably you are doing something that involves dividing by the number of bars in the chart, live charts always have a large back period, where the tester starts from bar 0.
Probably you are doing something that involves dividing by the number of bars in the chart, live charts always have a large back period, where the tester starts from bar 0.
absolutely right Craig. finally got it worked out.
Can you offer any guidance on the proper way to deal with an IsConnected()==false?
I am finding that all I can do in this situation is shutdown metatrader and restart. Should I, in the code, attempt to call init() ?

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
I am attempting to use the Strategy Tester with this EA but every time I try it just loads "zero divide" into the Journal. Can anyone offer a suggestion as to why when I run my EA "live" it works fine but when I try with the Strategy Tester it dies?
From what I can see, it doesn't even look like the init is called. I have an "Alert("i'm in init)". But this Alert is never called.
Does the Strategy Tester not call it ?