Fernando Jose Velasco Borea: I'm trying to make a custom indicator that's able to plot RSI and OBV on the same window so I don't have to load those indicators again and again but I'm having trouble to normalize the value of OBV to fit the range of RSI or ignoring the range of the RSI and just show it relative to its position on the window just as if I throw 2 indicators on the same window. Here's the code I'm using:
I know its not the most efficient or readable, it's my first time working on indicators, I mostly work with EA. The logic I was using to normalize it its the one on this thread: https://stats.stackexchange.com/questions/178626/how-to-normalize-data-between-1-and-1
Is this possible or there's a way to get the desired result (Upper one is the one generated with the code and the bottom one my desired result):
In an indicator, all the buffers share the same units, so you can't have buffers with different units. You could scale them, but then their values would not make sense, neither on the graph nor in the Data Window.
If you really want them to share the same sub-window, then just drop the two individual indicators onto the same sub-window and then save it as a Template, which you can then later load in other charts in order to load them both together with colours and parameters set and all.
In an indicator, all the buffers share the same units, so you can't have buffers with different units. You could scale them, but then their values would not make sense, neither on the graph nor in the Data Window.
If you really want them to share the same sub-window, then just drop the two individual indicators onto the same sub-window and then save it as a Template, which you can then later load in other charts in order to load them both together with colours and parameters set and all.
Yep, tried that but the problem is that if I have some charting it will be lost when I load the template and otherwise I will have to save an individual template for each pair:/
Hello all!
I'm trying to make a custom indicator that's able to plot RSI and OBV on the same window so I don't have to load those indicators again and again but I'm having trouble to normalize the value of OBV to fit the range of RSI or ignoring the range of the RSI and just show it relative to its position on the window just as if I throw 2 indicators on the same window. Here's the code I'm using:
I know its not the most efficient or readable, it's my first time working on indicators, I mostly work with EA. The logic I was using to normalize it its the one on this thread: https://stats.stackexchange.com/questions/178626/how-to-normalize-data-between-1-and-1
Is this possible or there's a way to get the desired result (Upper one is the one generated with the code and the bottom one my desired result):
Please using iRSIOnArray

- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello all!
I'm trying to make a custom indicator that's able to plot RSI and OBV on the same window so I don't have to load those indicators again and again but I'm having trouble to normalize the value of OBV to fit the range of RSI or ignoring the range of the RSI and just show it relative to its position on the window just as if I throw 2 indicators on the same window. Here's the code I'm using:
I know its not the most efficient or readable, it's my first time working on indicators, I mostly work with EA. The logic I was using to normalize it its the one on this thread: https://stats.stackexchange.com/questions/178626/how-to-normalize-data-between-1-and-1
Is this possible or there's a way to get the desired result (Upper one is the one generated with the code and the bottom one my desired result):