OPEN-SOURCE SCRIPT
15m EMA 9/15 + OI Flip Signals

This indicator is a focused scalping tool designed for crypto markets, specifically optimized for the 15-minute timeframe. It combines a classic trend-following approach with market flow data to help identify short-term reversals while filtering out weak signals. The core logic relies on a crossover between the 9 EMA and 15 EMA to detect trend changes, but a trade signal is only generated if the Open Interest is currently trading above its 20-period average.
By adding this Open Interest filter, the script aims to ignore "fake-outs" that happen during low-volume chop and only highlights setups where new capital is actually entering the market. Visually, it colors the area between the EMAs to show trend direction and prints clear Buy or Sell labels when all conditions are met. If specific Open Interest data is unavailable for a ticker, the system automatically falls back to standard volume data to keep the strategy functional. This tool is intended to provide high-quality entry signals that you can manage with your own exit strategy and risk management rules.
By adding this Open Interest filter, the script aims to ignore "fake-outs" that happen during low-volume chop and only highlights setups where new capital is actually entering the market. Visually, it colors the area between the EMAs to show trend direction and prints clear Buy or Sell labels when all conditions are met. If specific Open Interest data is unavailable for a ticker, the system automatically falls back to standard volume data to keep the strategy functional. This tool is intended to provide high-quality entry signals that you can manage with your own exit strategy and risk management rules.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.