OPEN-SOURCE SCRIPT
SPX EMA 9/21 + VWAP Strategy

1. Temporality: 2 minutes.
2. EMA 9 and EMA 21:
• Purchase Call: when EMA 9 crosses up EMA 21 and the price is > VWAP.
• Put : when EMA 9 crosses down EMA 21 and the price is < VWAP.
3. Stop and Take Profit:
• Stop: candle closure on the other side of the VWAP.
• TP: configurable in points (e.g. +10 pts, +20 pts) or up to the opposite crossing of EMAs.
• Long enters when EMA 9 crosses up 21 and the price is above VWAP.
• Short enters when the EMA 9 crosses down the 21 and the price is below VWAP.
• TP and SL in SPX points (configurable in inputs).
• You can run in 2 minutes on SPX.
2. EMA 9 and EMA 21:
• Purchase Call: when EMA 9 crosses up EMA 21 and the price is > VWAP.
• Put : when EMA 9 crosses down EMA 21 and the price is < VWAP.
3. Stop and Take Profit:
• Stop: candle closure on the other side of the VWAP.
• TP: configurable in points (e.g. +10 pts, +20 pts) or up to the opposite crossing of EMAs.
• Long enters when EMA 9 crosses up 21 and the price is above VWAP.
• Short enters when the EMA 9 crosses down the 21 and the price is below VWAP.
• TP and SL in SPX points (configurable in inputs).
• You can run in 2 minutes on SPX.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。