- Indicators to be displayed in the main window and separate subwindow
- Overlay chart indicator with button to switch between line chart and bar chart
- Errors, bugs, questions
one indicator in separate window calls dll which updates buffers
one indicator in main window calls dll which updates other buffers.
This is an unnecessary overhead I wish to avoid if possible. I want to call the DLL once and have it plot the relevant parts of its output to the appropriate windows.
Once indicator makes the calls but some buffers are not displayed
Other indicator gets the non-displayed buffers via iCustom
Once indicator makes the calls but some buffers are not displayed
Other indicator gets the non-displayed buffers via iCustom
7bit,
How would I store values "in the DLL?" I know how to pass values to and from the DLL by reference, effectively storing values in an external array, but how would I store them in the DLL itself?
7bit,
How would I store values "in the DLL?" I know how to pass values to and from the DLL by reference, effectively storing values in an external array, but how would I store them in the DLL itself?
You allocate memoy on the heap and use it to store the arrays. If you need to use it on more than one chart at the same time then you could make a table to hold separate pointers to this data, one for each chart. Maybe use a hash table or something that can map a symbol name (something like "EURUSD15") to the pointer pointing to the relevant data for this chart and pass this symbol name to each dll function so it can look up in the hash table to find the pointer where its data is stored.
Allocate the memory and the hash table entry in init() and free it in deinit(). Do this in the master-indicator only, not in the slaves that only plot the existing data.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use