Only trigger alerts for signals after candle is closed?

zeek

zeek

Active member
2019 Donor
This question relates to how alerts for buy/sell signals works in TOS. The way i understand it is that the current candle has to close before the signal will stay on the chart (arrow for example) and what i am curious to know is if there is any way to only trigger audio alerts if the current candle has closed? Is that possible within thinkscript?

Here`s an example of alerts for the TMO study where i have audio alerts, can these be modified to only trigger if the current candle has closed in order to not get too many false signals?

# Alerts
Alert(BuySignal, " ", Alert.Bar, Sound.Chimes);
Alert(SellSignal, " ", Alert.Bar, Sound.Bell);
 

Similar threads

Top