zokipoki

Two EMA's crossing w/ TRIX & ADX/DI & EMA@RSI filtering

The initial idea for the "X-candle" script is from @nmike, and the requirement was to mark the bar with positive or negative as EMA(5) and EMA(13) cross. Later, it was requested to filter the above with Trix(3) so it just crosses the "zero" line and goes in either positive or negative territory - confirming the EMA's crossing.

In addition, one of my ideas was to integrate 2 more rules, and the final looked something like this ...

The script marks the candle vertical background with green or red when all 4 rules are satisfied:
1. Between the current and previous bar has to be a cross of the EMA lines (by default: EMA 5 and EMA 13)
2. The current bar is the first or second bar crossing the zero TRIX line ... going in either Positive or Negative range, confirming the first rule
3. ADX is above threshold 25 & DI is also valid (higher than the opposite DI) ... confirming trend direction and strength
4. EMA(21) on top of RSI(13), one of my favorites, so it has to be valid also

At the end the script did extensive filtering, and it does filter some good ones also. Needs more work, less filtering, more tolerance, and new rules. All of the above indicator parameters can be modified easily, so anybody can play with. If you find some better indicator parameters that will provide a more efficient filtering, please let us know and drop me a note.

Thanks!
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?