Advice to get an indicator to load from within EA

 
Good day MQL4/5 fam. I have a quick question. I have a custom indicator that I am making calls to using iCustom, and this always works without issue. However, the data doesn't show up in the data window because the indicator isn't actually loaded on to the chart per say (I'm assuming). I want to see the data in the data window in real time. Quick example, I am running a custom indicator as well as iFractals, when I run my EA through the strat tester, the data loads in the data window once the test/run is complete, but not during the testing (in visual mode) and not on live charts. I'm assuming this is because the entire indicator is not actually loaded or fully loaded onto the chart. If I physically drop them on the live chart (while the EA is running) and set the params the same as what the EA is using, they then show up in the data window. So my question is, is there a way in the EA to actually load the entire indicator(s) onto the chart with the params the EA is using? Like I said, I'm aware of making calls to the buffers with iCustom (which I'm already doing) but I'd like to see those buffers in the data window during live trading. It would be nice to not have to physically drop them onto the chart every time and then set the params to whatever the EA is using manually, and instead have this same action done through the EA. Any help here is much appreciated. Thanks in advance!
 
danno4200:
Good day MQL4/5 fam. I have a quick question. I have a custom indicator that I am making calls to using iCustom, and this always works without issue. However, the data doesn't show up in the data window because the indicator isn't actually loaded on to the chart per se (I'm assuming). I want to see the data in the data window in real time. Quick example, I am running a custom indicator as well as iFractals, when I run my EA through the strat tester, the data loads in the data window once the test/run is complete, but not during the testing (in visual mode) and not on live charts. I'm assuming this is because the entire indicator is not actually loaded or fully loaded onto the chart. If I physically drop them on the live chart (while the EA is running) and set the params the same as what the EA is using, they then show up in the data window. So my question is, is there a way in the EA to actually load the entire indicator(s) onto the chart with the params the EA is using? Like I said, I'm aware of making calls to the buffers with iCustom (which I'm already doing) but I'd like to see those buffers in the data window during live trading. It would be nice to not have to physically drop them onto the chart every time and then set the params to whatever the EA is using manually, and instead have this same action done through the EA. Any help here is much appreciated. Thanks in advance!
Only in mt5 not mt4
Chartindicatoradd for mt5
 
Paul Anscombe #:
Only in mt5 not mt4
Chartindicatoradd for mt5

Ahhh, interesting, thank you. Yeah ChartIndicatorAdd() sounds exactly like what I would be looking for, thanks. So only in MT5 of course. I just searched MT4 help for "chartinidicator" and see that there is a ChartIndicatorDelete, but no add. How convenient, ha

 

Hi

You can also try to use some template. You can set the template with the indicators and EA parameters you use and run it on the chart (so you have all together set at the same time).

Of course, you have to change settings in the indicator if you change settings on the EA manually, but if you would run EA with same parameters most of the times that can help you make things faster.

Have a nice day

 
Marzena Maria Szmit #:

Hi

You can also try to use some template. You can set the template with the indicators and EA parameters you use and run it on the chart (so you have all together set at the same time).

Of course, you have to change settings in the indicator if you change settings on the EA manually, but if you would run EA with same parameters most of the times that can help you make things faster.

Have a nice day

Exactly. That's the current method I'm using, but as you said, I have to go through the params and ensure they are set the same as in the EA or else it will be a false visual.