There is no chart, therefor there are no objects on it.
Your indicator is running if, and only if, you call iCustom.
The problem lies if I want NOT to use visual mode for much faster backtests. Then the indicators in my opinion don't load or the idea of global variables is just broken, because I don't open any trades.
THE QUESTION is, is it possible to load an EA with a few Indicators running at the same time without visual mode, and if so, how??? Or does the problem form from the Global Variables not working for some reason
Please, provide more info. Indicators executed by EA are running in the same tester agent where this EA runs and they can exchange data via global variables without problems.
Please, provide more info. Indicators executed by EA are running in the same tester agent where this EA runs and they can exchange data via global variables without problems.
Well the way we have used our custom indicators till now with the EA is by setting a new chart. Activating the indicators we want to use and setting their input variables on that new chart. Then we save that chart as a Template with the name "tester" or the name of the EA we are going to use( example: "GRID 2.55") and when you run the GRID 2.55 in the Strategy tester in visual mode the idicators will automatically load and run at the same time as the EA.
The problem is when just click off the visual mode(everything else is the same) the template probably doesn't load and therefor the idicators also don't load and the EA won't open any trades, because there are no indicators to send him the signals.
So is there any other way to make the Custom indicators run at the same time as our EA in NON-visual mode so that the indicators can save their signals in the global variables and the EA be able to process them and open trades. (the Indicators are some 2-3k rows of code and are not just simple indicators that just return a value and thats it)

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I conclusion, Yes it is possible to do that when using visual mode. In MT4 you can just drag the indicator over the chart and drop it. That way the Custom Indi will work simultaneously with the EA.
For me this is extremely important because we use the indicators to save information in the global variables, which are basically coded signals in a way that is comfortable for us(the EA reads those signals and executes trades)
Other way to use indicators with EAs on the same chart is by using templates and the indicators are saved in the template so the program executes them.
The problem lies if I want NOT to use visual mode for much faster backtests. Then the indicators in my opinion don't load or the idea of global variables is just broken, because I don't open any trades.
THE QUESTION is, is it possible to load an EA with a few Indicators running at the same time without visual mode, and if so, how??? Or does the problem form from the Global Variables not working for some reason