OPEN-SOURCE SCRIPT

Xiang Stoch MACD 200EMA

Stochastic + MACD + 200 EMA indicator

Green flag
1) MACD crossover Signal line
2) Stochastic in oversold region (</=20)
3) Above 200 EMA (direction of trend)

Red flag
1) MACD crossunder Signal line
2) Stochastic in overbought region (>=80)
3) Below 200 EMA (direction of trend)

I use 200 EMA to determine the direction of the trend, (can ignore point 3 for both flag if you got other ways).

If green flag, high possibility of market going up.
If red flag, high possibility of market going down.
Oscillators

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?

Disclaimer