OPEN-SOURCE SCRIPT
Equal-Length EMA/SMA Crossover Momentum Signal V1

Overview:
How it works:
Signal description:
- This momentum and trend-following strategy captures the majority of any trending move, and works well on high timeframes.
- It uses an equal-period EMA and SMA crossover to detect trend acceleration/deceleration, since an EMA places a greater weight and significance on the most recent data.
- This version is optimized for longs, and designed to cut your losses quickly and let your winners run.
- To reduce noise and optimize entries, we combined this with an overall trend bias for further confluence.
How it works:
- Signals are determined by the crossover of an EMA and SMA of the same length, e.g. EMA-50 and SMA-50.
- The overall trend bias is determined using a slower SMA golden/death cross, e.g. SMA-50 and SMA-100.
- The signal is stronger when it occurs in confluence with the overall trend bias, e.g. when EMA-50 crosses over SMA-50, while above the SMA-100. This is analogous to only opening long positions in a bull market.
Signal description:
- Trend Buy: EMA crosses above SMA, and overall trend bias is bullish. Buying is in confluence with the overall trend bias.
- Risky Buy: EMA crosses above SMA, and overall trend bias is bearish. Buying is early, more risky, and not in confluence with the overall trend bias.
- Late Buy: SMA crosses above BIAS_SLOW. This gives further confirmation of bullish trend, but signal comes later.
- Sell: EMA crosses under SMA.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。