Heiken Ashi Pro Signal Arrow Smart Filters Alerts
- Indicatori
- Versione: 1.21
- Attivazioni: 5
Heiken Ashi Pro Signals MT5
Color-Change Buy/Sell Arrows + Ichimoku Senkou Span B + Multi Filters + Alerts
Heiken Ashi signal indicator for MetaTrader 5. It finds a bullish or bearish HA color change on a closed bar, then prints a Buy or Sell arrow only if the filters you enabled all agree. Optional Ichimoku Senkou Span B line (Sienna), Parabolic SAR, trend, momentum, oscillator, support/resistance, and Fibonacci filters. Popup, sound, push, and email alerts are included.
Works on Forex, gold, indices, crypto CFDs, and other MT5 symbols. All timeframes. This is an indicator, not an Expert Advisor. It does not open or close orders.
PRODUCT TYPE
Platform: MetaTrader 5
Type: Custom indicator
Window: Main chart
Visuals: Colored Heiken Ashi candles, Buy/Sell arrows, Senkou Span B line
Version: 1.21
Signal: HA color change on a closed bar
Alerts: popup, sound, mobile push, email
WHAT IT DOES
1. Builds Heiken Ashi candles and paints bull / bear colors.
2. Waits for a color change after the bar closes.
3. Checks every filter that is turned ON.
4. Draws a Buy arrow under the HA low, or a Sell arrow above the HA high, only when all active filters pass.
5. Can draw official Ichimoku Senkou Span B as a Sienna line.
6. Sends one alert per new closed-bar signal.
If a filter is OFF, it is ignored. You can use raw HA arrows, or a stricter multi-filter setup.
MAIN ADVANTAGES
- Senkou Span B uses the native MT5 Ichimoku buffer. No extra manual shift is added on the plot.
- When the Span B filter is ON: Close above Span B = Buy only. Close below Span B = Sell only.
- Arrows and alerts use the last closed bar. The forming candle can still change HA color until it closes.
- Many optional filters in one indicator, so you do not need to stack several separate tools.
- Extra modules from the PinBar-style script: CCI trend, CCI OB/OS, RVI, MACD, S/R zone, Fibonacci swings.
- Alert lock by bar time, so the same closed candle is not repeated.
- HA candles can be hidden if you only want arrows and Span B on normal broker candles.
HOW A SIGNAL IS CREATED
BUY on bar i when all of this is true:
- HA color on i is bullish (HA Close >= HA Open)
- HA color on the previous bar was bearish
- Trend filter ON: Close above Trend MA
- Senkou filter ON: Close above Span B (empty Span B is treated as pass)
- RSI filter ON: RSI above RsiBuyLevel
- CCI filter ON: CCI above CciBuyLevel
- Every other enabled Buy filter also returns true
SELL is the opposite color change, with the matching sell conditions.
Arrow price:
Buy = HA Low minus Arrow Offset x Point
Sell = HA High plus Arrow Offset x Point
If the Fibonacci filter is ON and two valid swings are not found, that bar is skipped on purpose.
INPUT GUIDE
1) Heiken Ashi and arrows
InpBullColor - bullish HA color. Default DodgerBlue.
InpBearColor - bearish HA color. Default Red.
InpBuyArrowColor - Buy arrow color. Default Aqua.
InpSellArrowColor - Sell arrow color. Default Red.
InpArrowCodeBuy - arrow code for Buy. Default 233.
InpArrowCodeSell - arrow code for Sell. Default 234.
InpArrowOffset - distance from HA high/low, in points (not pips). Default 30. On 5-digit Forex, 30 points = 3.0 pips. Increase on gold or indices if arrows sit on the wicks.
InpShowHA - true paints HA candles. false hides HA and keeps arrows plus Span B.
2) Alert and notification
InpShowAlert - terminal popup.
InpPlaySound - play a wav file from the MT5 Sounds folder.
InpAlertSound - file name only, example alert.wav.
InpPushNotify - push to the MetaQuotes mobile app. Enable Tools > Options > Notifications first.
InpSendEmail - email alert. Configure Tools > Options > Email first. Default off.
One alert per unique closed-bar time.
3) Trend filter
UseTrend - default off. Buy needs Close above the MA. Sell needs Close below the MA.
TrendPeriod - default 200.
TrendMethod - SMA / EMA / SMMA / LWMA. Default EMA.
Use: block HA flips against a long moving-average side.
4) Ichimoku Senkou Span B
UseSenkouFilter - default on.
SenkouPeriod - Span B period. Default 52.
SenkouShift - sent to iIchimoku as the standard shift parameter. Default 26. Used for the official handle only. The Sienna line is Ichimoku buffer 3 as MT5 returns it.
Read the line like classic cloud Span B:
Close above the line = Buy arrows only.
Close below the line = Sell arrows only.
Empty or zero value at the start of history = filter passes both sides so the chart is not blank.
5) RSI level filter
UseRSI - default off.
RsiPeriod - default 10.
RsiBuyLevel / RsiSellLevel - default 51 / 49.
Buy needs RSI above 51. Sell needs RSI below 49.
6) CCI level filter
UseCCI - default off.
CciPeriod - default 20, typical price.
CciBuyLevel / CciSellLevel - default +1.0 / -1.0.
Light zero-line bias, not the classic +/-100 extreme.
7) RSI cross filter
Use_RSI_Cross_Filter - this is a cross event, not only "RSI above 30".
RSI_Length - default 14.
RSI_Price_Source - applied price. Default Close.
Oversold / Overbought - default 30 / 70.
Buy: RSI crosses up through 30.
Sell: RSI crosses down through 70.
Expect fewer arrows.
8) ADX filter
Use_ADX_Filter - both sides need ADX at or above ADX_Min_Level.
ADX_Period - default 10.
ADX_Min_Level - default 25.
ADX_Smoothing - 1 = raw ADX. Above 1 = simple average of the last N ADX values.
9) Single MA filter
Use_MA_Filter - Buy if Close above MA. Sell if Close below MA.
MA_Period / MA_Method / MA_Shift - default 50 SMA, shift 0.
10) RSI 75 filter
Use_RSI75_Filter - long RSI, default period 75.
Buy if RSI75 above 50. Sell if RSI75 below 50.
Useful as a slow side filter on H1 to D1.
11) Double MA filter
Use_DoubleMA_Filter - compares two MAs, not price versus MA.
MA_A default 30 EMA. MA_B default 140 EMA.
Buy if MA_A above MA_B. Sell if MA_A below MA_B.
12) Awesome Oscillator filter
Use_AO_Filter - master switch.
Use_AO_Volume_Filter - Buy needs AO >= AO_Buy_Min (default 4). Sell needs AO <= AO_Sell_Max (default -4). AO is in price units, so retune per symbol. 4 is large on EURUSD and small on gold.
Use_AO_Color_Filter - default on. Buy needs AO rising. Sell needs AO falling.
Use_AO_Zero_Filter - Buy needs rising AO above 0. Sell needs falling AO below 0.
13) Parabolic SAR filter
Use_PSAR_Filter - default off.
PSAR_Step / PSAR_Maximum - default 0.02 / 0.20.
Buy if Close above SAR. Sell if Close below SAR.
14) CCI trend filter
Use_CCI_Trend_Filter - default period 50.
Buy if CCI above 0. Sell if CCI below 0.
15) CCI OB and OS filter
Use_CCI_OBOS_Filter - default period 14.
CCI_Overbought / CCI_Oversold - default +100 / -100.
Buy if CCI is above Overbought. Sell if CCI is below Oversold.
This is a continuation-style extreme filter, not a bounce-from-oversold filter.
16) RVI trend filter
Use_RVI_Filter - default period 75.
Buy if RVI above 0. Sell if RVI below 0.
17) RVI signal filter
Use_RVI_Signal_Filter - default period 20.
Buy if RVI main above RVI signal. Sell if RVI main below RVI signal.
18) MACD histogram filter
Use_MACD_Filter - default 12 / 26 / 9, Close.
Histogram = MACD main minus signal.
Buy if histogram above 0. Sell if histogram below 0.
19) MACD zero filter
Use_MACD_Zero_Filter - uses the same MACD handle.
Buy if MACD main above 0. Sell if MACD main below 0.
You can enable both MACD filters together.
20) Support and resistance filter
Use_SR_Filter - looks back SR_Period bars (default 50) for the lowest low and highest high, then builds a zone of SR_Zone_Points (default 80 points).
Buy if the bar touches or crosses the support zone.
Sell if the bar touches or crosses the resistance zone.
80 points = 8 pips on 5-digit Forex. Raise the zone on gold.
21) Fibonacci filter (swing based)
Use_Fib_Filter - finds a recent swing high and swing low using Depth / Deviation / Backstep, then builds a band between Fib_Level_1 and Fib_Level_2 (default 0.382 and 0.618).
ZigZag_Depth default 12.
ZigZag_Deviation default 5 points.
ZigZag_Backstep default 3.
Both Buy and Sell need the current bar range to touch that 38.2-61.8 band.
Heavier than MA filters. Prefer M15 and higher if the chart feels slow.
STARTING PRESETS
Do not enable every filter at once. Each extra filter reduces the number of arrows.
Preset A. HA + Span B only (start here)
UseSenkouFilter = true
All other filters = false
Preset B. Intraday M15-H1
UseSenkouFilter = true
Use_PSAR_Filter = true
UseTrend = true, period 200 EMA
Optional: Use_MACD_Filter = true
Preset C. Swing H4-D1
UseSenkouFilter = true
Use_DoubleMA_Filter = true (30 / 140)
Use_RSI75_Filter = true
Use_ADX_Filter = true, minimum 20-25
Preset D. Fewer arrows
Span B + ADX + PSAR + MACD zero
or Span B + Double MA + RSI Cross
Do not combine S/R or Fibonacci with CCI OB/OS at the same time unless you accept very rare arrows. One wants a level touch, the other wants an extreme reading.
INSTALL AND USE
1. Install from Market or copy the file into MQL5/Indicators.
2. Compile if needed. Check for 0 errors.
3. Attach to a chart. DLL is not required.
4. For push: Tools > Options > Notifications > enable and add MetaQuotes ID.
5. For email: Tools > Options > Email.
6. For sound: the wav file must be in the terminal Sounds folder.
7. Set InpShowHA = false if you want broker candles under the arrows.
8. Use the last CLOSED candle. Do not treat the still-forming HA candle as a final signal.
9. Add your own stop loss, take profit, and position size. This tool does not place trades.
WHAT YOU SEE ON THE CHART
Heiken Ashi candles: bullish and bearish colors.
Buy arrow: under the HA low, offset applied.
Sell arrow: above the HA high, offset applied.
Senkou Span B: Sienna line, width 2.
Short name: HA Signal + Multi Filters v1.21
NOTES
- The indicator needs enough bars. Calculation waits if history is under 300 bars.
- Early history can have empty Ichimoku values. Those bars pass the Span B filter.
- Arrow offset, SR zone, and ZigZag deviation use Point. Recalibrate on JPY pairs and gold.
- If arrows disappear after you enable many filters, turn filters off one by one.
- HA Open uses the previous HA values, so the current bar can change until close.
- Not an EA. No order management.
- Buffer index for an EA: Buy buffer 5, Sell buffer 6, as series.
WHO IT IS FOR
Traders who already use Heiken Ashi and want confirmed color-change arrows.
Traders who want Span B side control without drawing the full Ichimoku cloud.
Traders who prefer switches inside one indicator instead of five separate tools.
Traders who want a phone push when a filtered HA flip closes.
WHO IT IS NOT FOR
Traders looking for a fully automatic robot.
Traders who want zero lag and a signal on every move. Filters skip bars by design.
Traders who need Tenkan, Kijun, Span A, and Chikou drawn. This product plots Span B only.
TEST BEFORE LIVE USE
- Attach on demo with Span B only.
- Scroll history and check that arrows sit only on color-change bars.
- Enable PSAR and confirm the side of price versus SAR.
- Toggle InpShowHA off and on.
- Confirm one alert per closed signal, not a loop.
- Change timeframe and confirm the plots rebuild.
- If using Fib or S/R, check that mid-range bars are skipped.
DISCLAIMER
Trading involves risk of loss. Chart arrows are not a promise of future results. This indicator does not guarantee profit, win rate, or signal frequency. You are responsible for risk size, broker conditions, and final order decisions. Test on demo first, on the symbol and timeframe you will use.
Thank you for using HA Signal + Multi Filters v1.21.
