Better Alerts: Make alerts using multiple indicators, easily

BITFINEX:BTCUSD   Bitcoin / U.S. Dollar
Surprised nobody has pushed for this idea already.
Programming languages usually have a means to pass global data from one module (in our case an indicator) to another.

Pinescript has a hint of this when we can write a script that allows one input statement that can pull the plotted series from another script in the same chart.
i.e. a script that contains : x = input(close, title="source data")
Go to setting for this script and click the "source data" drop down box.
There you should see the option to select the plotted output of any other script, great.
Now you do not need to modify the original indicator script,
instead you can now write an ALERT script that references the indicators plotted data.

Now for the real power to make your own ALERT logic.
Add multiple indicators to your chart.
Now you could have an Alert script that does not just say alert me when the RSI is over sold,
But alert me when RSI is over sold, and CCI is crossing -100 and the 20 MA is crossing over the 50 MA.
Wouldn't that be GREAT !!!

Wait, I'm sorry but Pinescript only allows one input statement in a script to do this.
The real potential for this has been kept dormant.

Do you want to really unleash your potential with alerts ?
I think it is time Tradingview fixes this limitation so we can have the control we need and deserve.

I suppose we could try to pull all the logic for each indicator into a single script,
making sure the multiple scripts do not have conflicting logic and fields.
A time consuming prospect, difficult to maintain, and very messy in the end.
But here a simple fix could make life trading a lot easier.

Thank you for your support

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.