Editors' picksOPEN-SOURCE SCRIPT

Signal Adapter

Updated
This Signal Adapter script can compose a signal based on inputs from other simple (non-signal) indicators and can forwards it to the "Template Trailing Strategy".
It allows the user to combine up to eight external inputs and define the conditions that will trigger the start, end, cancel start and cancel end deals.
A signal will be composed from those user-defined conditions. The "indicator on indicator" feature is needed so you can forward the resulted signal to the "Template Trailing Strategy".
Thus you should be Plus or Premium user to get it's full potential. It is very convenient for those who want to create a strategy without coding their own signal indicator and for those
who want to fast prototype various ideas based on simple conditions.
Release Notes

  • Added the 'barssince' option for cancelation conditions. This option can be used when you use limit, stop, or stop limit orders on the "Template Trailing Strategy" side and you want to cancel e.g. the limit entry if a number of bars have been passed and your order wasn't triggered.
  • Simple alerts on each condition so the users that do not have the "indicator on indicator" feature to connect the produced signal to the "Template Trailing Strategy" can also benefit from this script and get a notification based on their custom logic


P.S. I want to thank user upslidedown who reminded me how useful this script had been in general. This persuaded me to publish it even if I had created it several months ago.
Release Notes
  • Update internal libraries
  • Style changes to match latest TTS style
  • Use enum
adaptercompositeconditionsPine utilitiessignaltemplate

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


📧 Contact info
Telegram: @jason5480

🔗 Addresses
₿ - bc1qxh3jeld7ke70fx3r5q243d96jsx0etth6x8fa7

* Please contact me before any donation ☕

Disclaimer