OPEN-SOURCE SCRIPT
Cập nhật EMA Channel Cross

This indicator creates a channel from the EMA of the high and low. A signal is generated when a slow EMA crosses into the channel or a fast EMA crosses out of the channel.
"Maximum Fast Outside Length" requires the fast signal move from outside the channel across to the other outside of channel within this number of bars. I haven't found this too helpful.
"Minimum Slow Outside Length" requires the slow signal to be outside the channel for this number of bars. This should filter some choppiness.
A volume moving average filter is also available.
NOTE: this indicator "repaints". This means the signal may be generated in the middle of the bar, then go away before the bar closes. The alerts are issued the first time the cross occurs in the bar (also mid-bar). It is up to you to decide to act on the signal when it is issued or at the close of the bar.
Inspired by AmericanTrader on Baby Pips user forum:
forums.babypips.com/t/scalping-strategy-to-finish-the-year-strong/970430
"Maximum Fast Outside Length" requires the fast signal move from outside the channel across to the other outside of channel within this number of bars. I haven't found this too helpful.
"Minimum Slow Outside Length" requires the slow signal to be outside the channel for this number of bars. This should filter some choppiness.
A volume moving average filter is also available.
NOTE: this indicator "repaints". This means the signal may be generated in the middle of the bar, then go away before the bar closes. The alerts are issued the first time the cross occurs in the bar (also mid-bar). It is up to you to decide to act on the signal when it is issued or at the close of the bar.
Inspired by AmericanTrader on Baby Pips user forum:
forums.babypips.com/t/scalping-strategy-to-finish-the-year-strong/970430
Phát hành các Ghi chú
Added volume moving average filter.Phát hành các Ghi chú
Added alert function callsMã 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.