jason5480

Two MA Signal Indicator

jason5480 已更新   
This Signal Indicator that emits a signal based on two MAs crossover/crossunder. It is designed to be used as an External Input for "Template Trailing Strategy" to verify the correctness of the External Deal Condition Mode of the aforementioned script and the Internal Strategy logic. Also, this script is a simple example on how to create custom signal indicators that can be "pugged" to the "Template Trailing Strategy" and get all the features this strategy script can provide!
版本注释:
  • 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 libraries. Use the datagram library to compose the signal.
版本注释:
Refactor and update internal libraries
版本注释:
Update internal libraries
版本注释:
  • Update internal library "two_ma_logic" and add "series_collection"

If you're interested in exploring and discovering other high quality free strategies come join us in Discord: discord.gg/2wkm9QqSuY
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?