
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
In terms of connecting data between indicators that are invoked through ChartIndicatorAdd, that isn't possible, but it is possible to invoke an indicator on the main window and subwindow at the same time with this function
That part is technically correct in the strictest sense, however, there are workarounds for that using for example memory-based SQLite database. There are probably several others which did not immediately come to mind.
My main use for ChartIndicatorAdd is in EA's. I have always assumed that this is ChartIndicatorAdd's primary purpose. I can certainly envision a bare bones EA that simply plots in a multitude of windows. I mentioned this in Post #10 but it was a retroactive edit so it may have been overlooked.
Yes, you are correct about the intention of that function!
If I remember correctly, ChartIndicatorAdd() will not work if the main custom indicator is called from iCustom(). I am not absolutely sure about this, so don't quote me, but I seem to have read this on a few other topics.
EDIT2:
Yes, you are correct about the intention of that function!
If I remember correctly, ChartIndicatorAdd() will not work if the main custom indicator is called from iCustom(). I am not absolutely sure about this, so don't quote me, but I seem to have read this on a few other topics.
I'm actually live trading my own custom EA that calls two chart window indicators and one sub window indicator, all via each's own iCustom(). Each called indicator has its own array, handle, and CopyBuffer(). Each called indicator also has its own ChartIndicatorAdd (referencing handle) and its own ChartIndicatorDelete (referencing indicator short name). Of course, this is a trading EA so it incorporates a main loop to iterate through the indicators' values. The OP could likely do without the loop and use the EA as a "conglomerate indicator." Just to clarify, there is no main custom indicator calling other indicators in my code.
I just saw your EDIT2. Yes!