Doug Hayman Posted July 16, 2020 Report Share Posted July 16, 2020 Hi guys, I have a strategy that makes use of Range Bars. I would like to provide an audible alert every time a range bar completes. Is there any way to achieve this (via Paintbar call or Other means)? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted July 16, 2020 Report Share Posted July 16, 2020 Lemme see... int PrevCandleNum = 0; public void MainCalculation() { if (CurrentCandle.candlenum != PrevCandleNum) TriggerAlert... PrevCandleNum = CurrentCandle.candlenum; } 1 Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted July 16, 2020 Report Share Posted July 16, 2020 to add to Mike's reply - you add the above paintbar to a chart. Enable the alert in Paintbar parameters and set the alert notification to play a sound. Set it to automatically clear after X seconds - I would do 2 or 3. That way it will clear so it will trigger again on next candle. 1 Quote Link to comment Share on other sites More sharing options...
Doug Hayman Posted July 16, 2020 Author Report Share Posted July 16, 2020 Excellent guys, thanks. I wasn’t aware of how to obtain the current candle state. That will work just fine. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.