OPEN-SOURCE SCRIPT

4EMA_3826_Manh Luan_VN

77
✅ Giữ nguyên logic hiện tại: Khi có tín hiệu BUY hoặc SELL, prevTrend sẽ cập nhật thành 1 hoặc -1.
✅ Reset prevTrend về 0 khi EMA không theo thứ tự: Nếu emaBuy == false và emaSell == false, nghĩa là các đường EMA không thỏa mãn điều kiện sắp xếp theo trend, prevTrend sẽ trở về 0.
✅ Giữ tính năng hiển thị tín hiệu BUY/SELL đúng với thay đổi của trend.

Giờ bạn có thể thử lại trên TradingView! 🚀

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.