TradingView
adolgov
8 июля 2022 г., 14:40

Alert example: multiple checked symbols and checked conditions 

Bitcoin / U.S. dollarBitstamp

Описание

Here is the example how to check multiple conditions for multiple instruments using only ONE alert.

How to use:
  • Add into the code needed conditions and instruments.
  • Apply the indicator on the chart, call Create Alert Dialog and just click "Create".
  • Enjoy.
Комментарии
rusty_research
Very good work, simple and effective.
DOSUNFORGIVEN
Reading my question, it is not incredibly clear, could you please show how to get the alert to fire when:
EMAs cross over or under
confirming when super trend is also showing a down trend for cross under and up trend for cross over?
Many thanks in advance
siamakha
that great,
can i use for example 3 indicator such as big snapper, poki ,etc ?
i like mix conditions with this 3 or 2 indicators on one or any pairs and send alert.
DOSUNFORGIVEN
Nice work here!
How do I make this for multiple indicators with confirmations from one to the next?
Example, if 5m Supertrend is trending up or down, crossed in to a fib zone, HTF 13 and 62 ema cross, 62 ema touch
itsmydigiworld
Could someone help please.
I have another indicator which would give BUY and SELL signal. How to refer that here in this script?
Like if it gives BUY signal for any of the given pair, I would like to be notified.
wildbeast123456
@itsmydigiworld,
hi it should work with

if BUY
alertMsg += str.format("buy \n ", syminfo.ticker)

I have done this , but for some reason it does not execute in the context of the requested security (trading pair) , but on the one which was on chart when alert was created. I have asked a question , hopefully the author can help us. If that works than it would be really nice.
leepakhan
When my indicator cross zero up and down

How to write it in script please. Grateful for it.

CheckForAlert()=>
mtahreemalam
wow. Simple and effective indeed.
Any limitations of this vs screener?
adolgov
@mtahreemalam, 40 symbols is the limit (
PretigeChartz
@adolgov, is there a reason why 40 symbols is the limit?
Ещё