OPEN-SOURCE SCRIPT

Two MA Signal Indicator

Actualizado
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!
Notas de prensa
  • Minor refactoring
Notas de prensa
  • 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
Notas de prensa
  • Edit last comment to refer to the correct possible values of the signal
Notas de prensa
  • Set minimum value to MA length
Notas de prensa
  • 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
Notas de prensa
  • The ema now use security in a "secure" way so it does not repaint in higher timeframes in real-time bars...
Notas de prensa
  • Update exernal_input_utils library
Notas de prensa
  • Add alerts for start end and cancel signals.
Notas de prensa
  • Minor refactoring checking #region feature
Notas de prensa
  • Show the actual signal value in the status line and data window
Notas de prensa
  • Refactor to make it easier to copy-paste the Signal region to create your own signal indicator
Notas de prensa
Update internal libraries. Use the datagram library to compose the signal.
Notas de prensa
Refactor and update internal libraries
Notas de prensa
Update internal libraries
Notas de prensa
  • Update internal library "two_ma_logic" and add "series_collection"
Notas de prensa
  • Update internal libraries
  • Use enum
Notas de prensa
  • Update to pinescript version 6
  • Changed offset of signals and shapes
backtestableexternalsourcemovingavaragemoving_averageMoving Averages

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?


📧 Contact info
Telegram: @jason5480

🔗 Addresses
₿ - bc1qxh3jeld7ke70fx3r5q243d96jsx0etth6x8fa7

* Please contact me before any donation ☕

Exención de responsabilidad