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.

免责声明