Can you post some code to demonstrate your issue ?
hi, I have discovered where the error is and it is not my code.
The MT5 visual tester does not handle the objects correctly. If the line style is not set to SOLID then one of two things happens:
1) it shows the line but as SOLID style
2) it does not show the line and gives the Pen Creation Error - this error is not available to MT5 ie: I cannot catch it.
In order to work around this I have had to place a text message on the screen in Tester mode so that users understand the issue is with the tester and not the product. I have also changed the code to set the STYLE to solid if the program is running in test mode.
I have raised a service desk issue, but I think there are still some issues with object handling in test mode, some appear to jump about and I suspect that the objects are not getting updated as often as they should to save execution time of the tester.

- 2012.06.11
- MetaQuotes Software Corp.
- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Does anybody know what this is? I get it when trying to test an indicator in strategy tester.
The indicator draws trend lines on the chart
thanks