Reputation: 378
Is possible to send an alert for single price movement at 1minute timeframe?
alert(message=new_alert_message, freq=alert.freq_all)
The code above triggers an alert for every 1 minute. Hence, a single minute could have multiple price movements.
Upvotes: 0
Views: 1223
Reputation: 21179
It is possible but your alert will be stopped by Tradingview if it fires 15 times within 3 minutes.
I feel like you are using a strategy
, instead of an indicator
. By default, strategies are recalculated on bar's close, so no matter what frequency you have, it will be called only once unless you use calc_on_every_tick=true
.
Upvotes: 2