I have quite a lot of charts with a custom strategy on my screens and whenever there's a trading signal my strategy will put an arrow on the corresponding chart and generate a sound.
What I'd like to do to save some time is to include a code snippet into my strategy that additionally makes the chart "blink" while there's an active signal on it.
By blinking I mean that the chart background color should change between white and gray in a 2 second interval during the 60 seconds the signal is active (I'm trading on a 1 minute chart and a signal is cancelled if it is not triggered within this 60 second interval). I've already played with the background color using
BackColorAll = Color.White etc
but the tricky part is to make the background color change every 2 seconds, thus creating the blinking effect.
How should I go about this?
Thanks
Comment