Hi everyone,
I'm developing a currency strength indicator in MQL5 that calculates the relative strength of each currency and plots lines for each one in a separate window below the main chart (similar to RSI). However, I’m having trouble getting the lines to display in the indicator’s window, even though I've set #property indicator_separate_window .
Here’s what I’ve done so far:
- Set #property indicator_separate_window to make it appear in a separate window.
- Used SetIndexBuffer and PlotIndexSetInteger for each currency line with PLOT_DRAW_TYPE , PLOT_LINE_WIDTH , and PLOT_LINE_COLOR settings.
- Calculated the values in OnCalculate and populated each buffer (e.g., USD_Buffer , EUR_Buffer ).
- Verified that the calculations produce valid values.
Here’s a sample of the code that configures the buffers and calculates the values:
Despite this, when I apply the indicator to the chart, the separate window appears, but the lines do not render. I've double-checked that I have sufficient historical data for all symbols and ensured the calculation logic is working, but the window remains empty.
Does anyone have suggestions on what might be missing or misconfigured? Any guidance would be greatly appreciated!
Thank you in advance!
and where have you specified the number of plots for example?
I would suggest you look at one of the existing indicators and learn from that...
- www.mql5.com
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi everyone,
I'm developing a currency strength indicator in MQL5 that calculates the relative strength of each currency and plots lines for each one in a separate window below the main chart (similar to RSI). However, I’m having trouble getting the lines to display in the indicator’s window, even though I've set #property indicator_separate_window .
Here’s what I’ve done so far:
Here’s a sample of the code that configures the buffers and calculates the values:
Despite this, when I apply the indicator to the chart, the separate window appears, but the lines do not render. I've double-checked that I have sufficient historical data for all symbols and ensured the calculation logic is working, but the window remains empty.
Does anyone have suggestions on what might be missing or misconfigured? Any guidance would be greatly appreciated!
Thank you in advance!