forexbob1970: Works well in visual mode. Just as nice in non-visual mode. But try and run an optimization test and it doesn't take a trade.
|
|
That EA has many, many bugs but in regards to your specific query, it uses Graphical Objects to store internal data (instead of using variables). However, Graphical Objects are NOT supported during Optimisation runs (and I quote):
Graphical Objects in Testing
During visualization, the Expert Advisor interacts with a real chart. In case there is no visualization, the Expert Advisor works with a "virtual" chart that is not displayed. The former case has some peculiarities. During optimization, working with graphical objects is not supported.
So, as a result, your EA cannot be optimised!
forexbob1970: Works well in visual mode. Just as nice in non-visual mode. But try and run an optimization test and it doesn't take a trade. |
|
That EA has many, many bugs
Graphical Objects in Testing
During visualization, the Expert Advisor interacts with a real chart. In case there is no visualization, the Expert Advisor works with a "virtual" chart that is not displayed. The former case has some peculiarities. During optimization, working with graphical objects is not supported.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all
I'm running the attached code through strategy tester. Works well in visual mode. Just as nice in non-visual mode. But try and run an optimization test and it doesn't take a trade.
Any chance someone can tell me why?
I do note most my other codes work fine. I do have a few variants of this code, they also don't work. Dazed and confused.