I programmed the following for NinjaTrader, so I can provide that script if it would be of help. I have no idea how to do it in MT4. It'd be great if somebody could help me:
I'd like an indicator that prints different colored vertical bars in the indicator panel when the CCI with a user defined period input reaches certain user defined thresholds. For example, I would like to input period 50 as an example, and thresholds of 150 and 200. So when the CCI reaches 150, I'd like it to print red (and continue printing red until it is below 150) and then a second threshold at 200 where it would start printing yellow once it reached there. And similar for the other side - when CCI reaches -150 it prints green, and at -200 it prints yellow.
I'd also like an indicator that does the same thing for a stochastic with a user defined period, and user defined thresholds. For example, a 10 period full stochastic (3 smoothing, I don't care about the trigger line) that prints red while it is above 90 and green while it is below 10.
If anybody could help me out, I'd really appreciate it.
I'd like an indicator that prints different colored vertical bars in the indicator panel when the CCI with a user defined period input reaches certain user defined thresholds. For example, I would like to input period 50 as an example, and thresholds of 150 and 200. So when the CCI reaches 150, I'd like it to print red (and continue printing red until it is below 150) and then a second threshold at 200 where it would start printing yellow once it reached there. And similar for the other side - when CCI reaches -150 it prints green, and at -200 it prints yellow.
I'd also like an indicator that does the same thing for a stochastic with a user defined period, and user defined thresholds. For example, a 10 period full stochastic (3 smoothing, I don't care about the trigger line) that prints red while it is above 90 and green while it is below 10.
If anybody could help me out, I'd really appreciate it.
Small disciplines repeated with consistency lead to great achievements.