Visual Mode in Strategy Tester

 
Hello, may I know why I get different back test result with On Visual Mode & Off Visual Mode although all the settings are same? Which results are more accurate (with visual mode on or off)?
Documentation on MQL5: Common Functions / TesterStatistics
Documentation on MQL5: Common Functions / TesterStatistics
  • www.mql5.com
TesterStatistics - Common Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 

If you are getting different results then there is probably a bug in your code or you are relying of graphical objects for some of your calculations.

Graphical objects are not supported in non-visual testing.

 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 
I see. On or Off Visual Mode which will be more accurate? Any solution to solve this issue?
 
Mike Peter #: I see. Any resolution to solve this issue?

Yes, fix your code and make it not depend on graphical objects for calculations.

 
Mike Peter #: I see. On or Off Visual Mode which will be more accurate?

If it is a bug, then neither is accurate.

If it is depended on graphical objects, then the visual mode will be more accurate, but that is not an ideal solution.

In either case, the EA code should be fixed.

 
Fernando Carreiro #:

If it is a bug, then neither is accurate.

If it is depended on graphical objects, then the visual mode will be more accurate, but that is not an ideal solution.

In either case, the EA code should be fixed.

Thanks alot for your explanation. Appreciate 🙏
Reason: