I created an indicator that is drawn on only a part of the chart according to the user's request and the values before and after it are filled with Empty_value so that they are not displayed. This section works well; But I need it when my indicator is active. If the user adds another technical or custom indicator to the chart. Those indicators should be drawn only in the same range selected for my indicator. How do I do this and access the buffer for these indicators to manage them?
- Vertical Line - Lines - Analytical Objects - Price Charts, Technical and Fundamental Analysis
- Main characteristics of indicators
- Vertical Line - Lines - Objects - Charts - MetaTrader 5 for Android
justlink: I created an indicator that is drawn on only a part of the chart according to the user's request and the values before and after it are filled with Empty_value so that they are not displayed. This section works well; But I need it when my indicator is active. If the user adds another technical or custom indicator to the chart. Those indicators should be drawn only in the same range selected for my indicator. How do I do this and access the buffer for these indicators to manage them?
I can't control or filter the display of other indicators that a user may attach or not to their chart.
Fernando Carreiro #:
I have been meaning to ask, don't know if you mind, if two indicators are placed on the chart but mapped to buffer "0", which indicator takes priority? I read somewhere indicators all run from a common thread.I can't control or filter the display of other indicators that a user may attach or not to their chart.
Then PlotIndexSetInteger(), is there a sequence to how it is plotted? I wrote an indicator creating a Zigzag with buffers (0,1) Then a line section with buffer(2). Using PlotIndex ... with (0(for Draw_Zigzag),1(for Draw_Line)) gave a weird output. I had to increase the plot to 3, using (0,2) for my plot index value. Is it similar to the precompile directives were the plot number must be higher than the buffer number.
I know using 0 for Draw line and 1 for Draw_Zigzag would have used only 2 plots, but I won't know the reason why the other did not work.
Thanks
Thank-god Avwerosuoghene Odukudu #: I have been meaning to ask, don't know if you mind, if two indicators are placed on the chart but mapped to buffer "0", which indicator takes priority? I read somewhere indicators all run from a common thread.
The indicators are independent of each other. Each will have there own buffers 0,1, ..., plotted in that sequence, with each indicator plotting in the sequence they were added to the chart.
Is that what you are asking?
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