OPEN-SOURCE SCRIPT
Multiple Instrument Automation Screener

I have developed a Pine Script indicator on TradingView designed to demonstrate how to automate execution for ten instruments. This example utilizes a straightforward, Simple Moving Average (SMA) indicator. You can use it as a template, but use your indicator.
Sent alerts look like this:
{"ticker": "DOGEBTC","action": "buy","price": "0.00000199","time": "1719754620658"}
Details and Limitations
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
- The indicator computes long/short signals based on the crossing of the SMA using the security function
- It acts as a screener, presenting calculation results in an organized table format.
- Utilizing the varip variable, the indicator sends alerts for multiple instruments sequentially rather than simultaneously.
- For every generated signal, the indicator builds and sends a JSON execution command to a third-party tool, ensuring seamless integration and automation. You can use your own format.
Sent alerts look like this:
{"ticker": "DOGEBTC","action": "buy","price": "0.00000199","time": "1719754620658"}
Details and Limitations
- Instrument Limit: The example is configured for ten instruments for simplicity. However, it can be expanded to handle up to 40 instruments.
- Alert Rate Limit: There is a rate limit of 15 alerts in 3 minutes. Exceeding this limit may cause some alerts to be stopped. This can be managed by tracking the alert times and delaying some alerts, though this may affect the entry prices.
- Timing of Signal Generation: The indicator processes signals at the bar close to the active instrument. Due to its computational complexity, there is a slight delay in collecting all records, potentially causing signals to reflect a few seconds before the bar closes. Care should be taken when executing based on these signals.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
Quant Developer | Pine Script v6 | Python & R
12+ yrs system. trading, hedge fund experience
Indicators, strategies & screeners
Futures & options
💼 Hire/Consulting:
qntly.com/hire
🎓 Pine Code With AI:
qntly.com/pineai
12+ yrs system. trading, hedge fund experience
Indicators, strategies & screeners
Futures & options
💼 Hire/Consulting:
qntly.com/hire
🎓 Pine Code With AI:
qntly.com/pineai
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
Quant Developer | Pine Script v6 | Python & R
12+ yrs system. trading, hedge fund experience
Indicators, strategies & screeners
Futures & options
💼 Hire/Consulting:
qntly.com/hire
🎓 Pine Code With AI:
qntly.com/pineai
12+ yrs system. trading, hedge fund experience
Indicators, strategies & screeners
Futures & options
💼 Hire/Consulting:
qntly.com/hire
🎓 Pine Code With AI:
qntly.com/pineai
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。