OPEN-SOURCE SCRIPT

4EMA_3826_Manh Luan_VN

78
✅ 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! 🚀

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.