Two MA Signal Indicator

- Minor refactoring
- The convention that is demonstrated for this signal indicator is the following: The signal is a two digit integer. The second digit (the one on the left) is the channel of communication for the long deals and the first digit is the channel of communication for the short deals. To be more specific if the digit of the channel is 2 you start and if it is 1 you end the deal otherwise you do nothing. So the possible values are 20 (start long), 10 (end long), 02 (start short), 01 (end short), 00 (no operation), 21 (end short and start long), 12 (end long and start short). This approach has the advantage that you can pass information both for longs and shorts in the same bar. The user of this input may use the integer division and modulo by 10 to extract each digit and get signal for both channels
- Change default fastMA color
- Edit last comment to refer to the correct possible values of the signal
- Set minimum value to MA length
- Added trend filters into the indicator logic
- Now indicator also can emit cancelation signals to inform the "Template Trailing Strategy" that should cancel any existing unfiled stop-limit orders
- Draw the signals using external_input_utils library that also TTS uses to decode the signals
- The ema now use security in a "secure" way so it does not repaint in higher timeframes in real-time bars...
- Update exernal_input_utils library
- Add alerts for start end and cancel signals.
- Minor refactoring checking #region feature
- Show the actual signal value in the status line and data window
- Refactor to make it easier to copy-paste the Signal region to create your own signal indicator
- Update internal library "two_ma_logic" and add "series_collection"
- Update internal libraries
- Use enum
- Update to pinescript version 6
- Changed offset of signals and shapes
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Để truy cập nhanh vào biểu đồ, hãy thêm tập lệnh này vào mục yêu thích của bạn — tìm hiểu thêm tại đây.
Telegram: @jason5480
🔗 Addresses
₿ - bc1qxh3jeld7ke70fx3r5q243d96jsx0etth6x8fa7
* Please contact me before any donation ☕
Thông báo miễn trừ trách nhiệm
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Để truy cập nhanh vào biểu đồ, hãy thêm tập lệnh này vào mục yêu thích của bạn — tìm hiểu thêm tại đây.
Telegram: @jason5480
🔗 Addresses
₿ - bc1qxh3jeld7ke70fx3r5q243d96jsx0etth6x8fa7
* Please contact me before any donation ☕