OPEN-SOURCE SCRIPT
EMA10/20

1️⃣ Trend filter is already TRUE
Price above VWAP
EMA10 > EMA20
EMA20 rising
➡ This stays TRUE for many candles in a strong uptrend.
2️⃣ Pullback condition is TRUE
1–3 red candles already happened
Price is still near EMA20
➡ This condition does not reset immediately.
3️⃣ Engulfing logic is the key problem
Your current engulfing rule is roughly:
Candle is green
Closes above previous close
Above EMA20
Now look at your chart:
First green candle → BUY
Next candle is also green, still above EMA20 → BUY again
Next candle still satisfies all conditions → BUY again
📌 Result:
👉 BUY, BUY, BUY on consecutive candles
That’s why you see 3 BUY labels together.
Price above VWAP
EMA10 > EMA20
EMA20 rising
➡ This stays TRUE for many candles in a strong uptrend.
2️⃣ Pullback condition is TRUE
1–3 red candles already happened
Price is still near EMA20
➡ This condition does not reset immediately.
3️⃣ Engulfing logic is the key problem
Your current engulfing rule is roughly:
Candle is green
Closes above previous close
Above EMA20
Now look at your chart:
First green candle → BUY
Next candle is also green, still above EMA20 → BUY again
Next candle still satisfies all conditions → BUY again
📌 Result:
👉 BUY, BUY, BUY on consecutive candles
That’s why you see 3 BUY labels together.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。