Hello, friends! I want to ask for help from professionals who will help me make a special sound in the indicator. I already have a version of this indicator with sound in x4 mode. The sound has one problem. When the channel is broken, it correctly delivers sound at any time on the current candle. But when the price goes inside the channel, the sound still comes in: "The channel is broken." This greatly hinders when the indicator is placed on several instruments at once. I need to receive 2 signals. 1-Channel is broken. Channel 2 is redrawn. In the first case, when the price hit the channel or left the channel, the signal is justified at each candle close. But when the price went back into the channel at the close of the candle, you do not need to signal that the channel is broken. I will attach an ex4 file along with the mq4 file. These are different indicators. Mq4 without sound. And ex4 with sound. If someone will understand it will see. I understand that, most likely, the sound on ex4 arrives until the channel is redrawn.
I understand that, most likely, the sound on ex4 arrives until the channel is redrawn. That is, the channel is broken but not redrawn. And until it is redrawn, the signal "channel is broken"is received. The whole day. If there are 28 instruments and the time is H1, then the signal is 20-28 times. Every hour. Terribly. If someone can help, then I need to when the price went inside the channel and the candle closed and the channel is not redrawn, then the sound that would not be. Total 2 sounds: 1. The channel is broken the sound is received immediately at the moment. If the candle is closed and the price is outside the channel, then the sound is also there. This is normal. But if the price went inside the channel, the candle closed, then there should be no sound. 2. the Channel is redrawn-sound. The channel is redrawn only when the candle (bar) is closed.
I understand that, most likely, the sound on ex4 arrives until the channel is redrawn. That is, the channel is broken but not redrawn. And until it is redrawn, the signal "channel is broken"is received. The whole day. If there are 28 instruments and the time is H1, then the signal is 20-28 times. Every hour. Terribly. If someone can help, then I need to when the price went inside the channel and the candle closed and the channel is not redrawn, then the sound that would not be. Total 2 sounds: 1. The channel is broken the sound is received immediately at the moment. If the candle is closed and the price is outside the channel, then the sound is also there. This is normal. But if the price went inside the channel, the candle closed, then there should be no sound. 2. the Channel is redrawn-sound. The channel is redrawn only when the candle (bar) is closed.
Attached File(s)
SHI Channel MTF.mq4
18 KB
|
215 downloads
SHI_Channel_MTF.ex4
13 KB
|
156 downloads