I have some code and a variable buy
inside, when buy=true then I send alert("Buy")
. But during 1 hour it may trigger 5-10 times and it's really annoying. Don't you know how to send indicator's alert once per 1hr or selected time frame?
buy = true // some code for calculation
if(buy)
alert("Buy")