Forum

1 new trade per new candle on EA mql4. How?

I'm still learning how to code an EA but I face a challenge while doing it. Here's what I'm trying to achieve... I want the code to open a trade only if there is no open trade during that specific candle. I do not mind having a new trade opened on every candle (multiple trades running at the same

Please HELP! How to make PlaySound for alert only make a sound 3 times per candle not on every tick?

Hi, I am trying to make a proximity indicator based on 2 EMAs but I don't know how to make the sound alert only ring 3 times per candle. Can someone please help me with this? This is what I've done so far. Thank you in advance! void OnTick () { // create Array for prices double

Need help for alert for successive candlestick

Hi, I need help to find a script or alert for successive candlestick. The alert need to pop up when there are 2 or more candlesticks that have the same color formed. So if there are 2 bullish candles the alert will appear with sound and if there are 3 or 5 bearish candles appear the alert will sound