# How to combine 2 indicators with different values into one custom indicator?

39

Hi everyone,

How can one calculate the buffer value for a custom indicator that displays 2 indicators with different values (stochastic which has value of 0-100 and OsMA which has value of -0.00x to +0.00x), as if like adding 2 indicators in one indicator window (picture below)?

71113

Man:

Hi everyone,

How can one calculate the buffer value for a custom indicator that displays 2 indicators with different values (stochastic which has value of 0-100 and OsMA which has value of -0.00x to +0.00x), as if like adding 2 indicators in one indicator window (picture below)?

You can not do that - one would look like a flat line
17122

Man: How can one calculate the buffer value for a custom indicator that displays 2 indicators with different values (stochastic which has value of 0-100 and OsMA which has value of -0.00x to +0.00x), as if like adding 2 indicators in one indicator window (picture below)?
1. Scale them to a common range. stoch [0..100]: OsMAlow = lowest for the last 40 bars. OsMAhigh = highest. OsMaScaled  = (OsMA - OsMAlow) / (OsMAhigh - OsMAlow) [0..100]
2.  A geometric mean is often used when comparing different items—finding a single "figure of merit" for these items—when each item has multiple properties that have different numeric ranges