Forum

Need help fixing logic for custom Spike/P-Gap Indicator (Breakout & Retest logic)

Hello everyone, I am posting this request again because I previously asked a similar question but unfortunately didn't reach a solution. I am working on a custom indicator for MQL4 based on a "Spike" and "P-Gap" strategy, but the code is not behaving according to my defined logic. I would really

Help Debugging My Custom SP2L (Spike and 2 Legs) Indicator – Getting Too Many False Signals, Especially in Ranging Markets

Hi everyone, I’ve written a custom indicator called SP2L (Spike and 2 Legs) , and I’d really appreciate your help in identifying where my logic might be flawed. The core idea is as follows: A "spike" is detected when at least three consecutive candles of the same color each break the high/low of the

How to Generate Only ONE Signal Per Confirmed Trend (Swing + EMA Based)?

Hi all, I’m working on a custom MQL4 swing-based indicator that should generate only one clean BUY signal when a bullish trend is confirmed , and only one SELL signal when a bearish trend is confirmed — then stay silent until the trend actually reverses