OPEN-SOURCE SCRIPT

ESTOCÁSTICO + NORMALIZED MACD

Updated
=== INTRO ===
This is a 2 in 1 indicator, STOCHASTIC + NORMALIZED MACD.
I release this script as public because both stochastic and normalized macd are public, so I cannot find any reason to post it as private :)

=== USAGE ===
You can use any of the indicators by itself as usual, stochastic as a oversold/overbought indicator as a momentum/trend indicator.
Usually, crossovers are used for LONG/SHORT entries.
I added dots for crossovers as well as background colors to show movement direction when both indicators agree: green = bullish, red = bearish and orange = range/consolidation.

=== SETTINGS ===
Default settings for both indicators have been changed (but they're of course configurable), to make them work better together.
You can also change NMACD moving average time to SMA or WMA instead of SMA, SMA is really slow for me but give it a try, WMA is more aggressive.

=== RECOMMENDATIONS ===
Always look for higher timeframes, for example, if you're trading 1h, don't try to catch a 1H "ALL GREEN" LONG while 4H is "ALL RED" because otherwise you're just "trying" to catch a bounce in the 1H chart that could never happen, always trade with the main trend.
Try to catch both crossovers in the opposite area, ex: try to LONG when both indicators are below 50 and SHORT above.
I did not test divergences on this indicator, as the MACD is normalized i prefer to use a standard MACD for that, but you can use the stochastic for sure.
Release Notes
Added custom oversold and overbought levels, remember, if both indicators make a crossover/cross under on their respective zones trades will be more accurate and safe.
Added option to volume weight the MACD.
Stochastic settings changed to K=6 and D=6 by default, this removes fake signals and make it work better with the MACD.
Release Notes
English:
- Added option to highlight background color ONLY if the NMACD is overbough or oversold when crossover/crossunder occurs.

Español:
- Agregada opción para resaltar el color de fondo SOLO cuando el NMACD está sobrecomprado o sobrevendido cuando ocurren los cruces al alza/baja.
Moving Average Convergence / Divergence (MACD)macdcrossovernormalizedStochastic OscillatorStochasticsstochcross

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer