checkmarkit:
solved it! i didn't realize ChartSetSymbolPeriod ran asynchronously. I set a boolean flag after chart change and returned to OnInit and it's all working dandy now!

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 there, really could use some help here. My code is pretty simple, I drag the EA onto a chart template and it get's the values from a Fibonacci indicator on the template. The problem is when I call the ChartSetSymbolPeriod method when iterating between periods or symbols I either get object data from the previous period or pair or no data at all. The indicators are in the chart template and the objects are drawn on the chart. I've tested everything from ChartRedraw to WindowRedraw with no luck at all. Any tips? Even the test Alert there is showing the Ask price from the previous element in the Pairs array. I'm super confused because the chart is drawn correctly on the screen, but the output is from the previous pair.
Thanks so much. I'm a newbie, so please go easy.
Here is my skeleton code...