Free Forex indicator · MT4 / MT5

Stochastic Alert for MT4 & MT5: 5/3/3 Settings and Free Source Download

Understand what a Stochastic crossing actually means. Explore five event configurations, compare 5/3/3 with 14/3/3 on real EUR/USD data and download the marked ForexBestRobots source edition for your platform.

Reviewed by ForexBestRobots Editorial Team

Original sourceEarnForex 1.04 · ForexBestRobots edition 1.05
PlatformsDesktop MT4 · MT5
LicenseApache 2.0 · Free
On this page

What Stochastic with Alert adds

Stochastic describes where the Close lies within a recent price range. Main %K and Signal %D fluctuate on a 0–100 scale in a separate window. A reading of 80 is not an 80% probability; an extreme can persist during a trend and does not guarantee a reversal.

This free ForexBestRobots 1.05 source edition derives from EarnForex 1.04 under Apache 2.0. It adds documented buffer/history, evaluated-candle arrow and notification-bookkeeping corrections. It can display arrows and attempt notifications, but does not place orders or manage stops.

5/3/3, slowing and five strict event configurations

Defaults are K=5, D=3, Slowing=3, MODE_SMA and Low/High. For each candle, L and H are the lowest Low and highest High of the last K candles, including that candle. Main %K=100×sum(Close−L,Slowing)/sum(H−L,Slowing); Signal %D=SMA(Main,D). Slowing is a ratio of sums, generally not the average of raw percentages. The reference model assigns 100 when the denominator is zero.

STOCH_MAIN_SIGNAL_CROSS labels strict Main below Signal then Main above Signal BUY; the reverse is SELL. This mode ignores AlertLine. STOCH_BREAK_OUT labels a strict upward crossing of 80 BUY and downward crossing of 20 SELL. STOCH_COMES_IN labels an upward crossing of 20 BUY and downward crossing of 80 SELL. The last two can watch Main or Signal: five effective configurations, not six.

Both the preceding and evaluated values must be strictly on opposite sides; equality does not qualify. Limits are configurable, and a return may jump across the entire 20–80 range without ending inside it. BUY/SELL are event names. Close/Close changes the range to closing-price extremes; the MA choice changes %D. Our numerical reconstruction covers SMA, not every native MA initialization.

22 functional inputs and ForexBestRobots defaults

Both sources expose 22 controls plus four decorative Comment headings. Use positive periods, ordered limits within 0–100, nonnegative scan/cooldown and arrow size 1–5. Give each instance on the same chart a unique nonempty name.

InputDefaultPractical meaning
IndicatorNameFBR-STOCHWAInstance name and owned-arrow prefix; use a different name for each copy on one chart.
StochKPeriod5%K range lookback, default 5 candles.
StochDPeriod3%D averaging period, default 3.
StochSlowing3Internal %K slowing window, default 3; ratio of summed distances and ranges.
StochMAMethodMODE_SMA%D method: SMA, EMA, SMMA or LWMA. Illustrations use SMA.
StochPriceField00=Low/High, 1=Close/Close. Two range definitions, not the seven applied-price choices.
StochHighLimit80Upper threshold, default 80; used only by the threshold modes.
StochLowLimit20Lower threshold, default 20; used only by the threshold modes.
AlertLineSTOCH_MAINMain or Signal for BREAK_OUT/COMES_IN; ignored by the Main/Signal cross mode.
AlertSignalSTOCH_MAIN_SIGNAL_CROSSMain/Signal cross, boundary breakout or boundary return; selects the event rule.
CandleToCheckCURRENT_CANDLECurrent evaluates a forming candle; Previous a completed candle. ForexBestRobots arrows mark the evaluated candle.
BarsToScan500Scan 500 evaluation positions; 0 uses available valid history and increases work.
EnableNotifyfalseMaster switch, false disables all notification channels.
SendAlerttruePopup channel true, still gated by EnableNotify=false.
SendAppfalsePush false; requires terminal configuration if enabled.
SendEmailfalseEmail false; requires terminal configuration if enabled.
WaitTimeNotify5Pause between notification attempts in MINUTES, default 5. Zero removes the pause, not the per-bar gate.
EnableDrawArrowstrueDraw event arrows, true by default; independent of notification delivery.
ArrowBuy241Wingdings code for BUY arrows.
ArrowSell242Wingdings code for SELL arrows.
ArrowSizeARROW_SIZE_MEDIUMARROW_SIZE_MEDIUM=3; supported sizes 1–5.
NoWindowfalseRequests a reduced/hidden subwindow for additional instances; platform appearance is untested. Calculations and alerts remain active.

Real EUR/USD: crosses, returns and parameter sensitivity

These original charts use archived Yahoo Finance EURUSD=X H1 OHLC in UTC. We calculated Low/High Stochastic with SMA %D and applied the strict rules to completed readings. These are calculated illustrations, not MetaTrader screenshots, native arrow captures, tick replays or trades.

EUR/USD with 5/3/3 Main %K and Signal %D. Letters mark selected strict STOCH_MAIN_SIGNAL_CROSS events. The 20/80 levels are context; this cross mode does not require either extreme.
EUR/USD with 5/3/3 Main %K and Signal %D. Letters mark selected strict STOCH_MAIN_SIGNAL_CROSS events. The 20/80 levels are context; this cross mode does not require either extreme.2025-06-09 00:00 — 2025-06-11 23:00 UTC · 72 candles
A separate fixed window shows STOCH_COMES_IN on Main, using the same 5/3/3 and 20/80 limits. Letters are ForexBestRobots annotations; a return does not establish a profitable reversal.
A separate fixed window shows STOCH_COMES_IN on Main, using the same 5/3/3 and 20/80 limits. Letters are ForexBestRobots annotations; a return does not establish a profitable reversal.2025-06-16 00:00 — 2025-06-19 23:00 UTC · 96 candles
Identical candles, SMA and Low/High with 5/3/3 versus 14/3/3. Only the %K lookback changes. Different timing and smoothness do not prove that either setting is better.
Identical candles, SMA and Low/High with 5/3/3 versus 14/3/3. Only the %K lookback changes. Different timing and smoothness do not prove that either setting is better.2025-06-16 00:00 — 2025-06-19 23:00 UTC · 96 candles

These are provider OHLC, not identified broker-specific Bid/Ask execution prices. Native history can differ; spreads, fills and returns were not measured. Scroll charts horizontally on narrow screens.

Download the illustrated readings (CSV) · 1Download the illustrated readings (CSV) · 2

Notification defaults, minutes and the ForexBestRobots bar gate

EnableNotify=false is the master default; SendAlert=true, SendApp=false and SendEmail=false. Enabling only the master therefore requests popups. Push/email additionally need terminal setup and retain broker company, account name and account number in their messages. Downloading activates nothing.

ForexBestRobots records the current chart-bar time after a dispatch attempt. Both Current and Previous allow at most one attempt per chart bar, plus WaitTimeNotify=5 minutes. Zero removes only the time pause. A failed delivery still consumes that bar and pause; an event suppressed by either gate has no queued catch-up.

Current values and arrows can change or disappear before close; a notification already sent cannot be withdrawn. Previous uses a completed candle, with the ForexBestRobots arrow at that candle. Historical arrows do not generate one notification each. Only oscillator buffers 0=Main and 1=Signal exist; there is no separate 1/−1 event buffer or sound-file input.

Compile and install the platform source

Choose MQ4 for desktop MT4 or MQ5 for MT5. The derivative ZIPs supply source without ready EX4/EX5.

  1. Download and extract the ZIP for the matching platform.
  2. In MetaTrader: File → Open Data Folder → MQL4 or MQL5.
  3. Copy Indicators, Files and Include into that directory, retaining folder names. The upstream copy is reference material.
  4. Open Stochastic_Alert_FBR.mq4 or Stochastic_Alert_FBR.mq5 in matching MetaEditor, Compile(F7) and inspect errors.
  5. Refresh Navigator → Indicators, attach to a demo chart, choose a unique IndicatorName and inspect settings, history and Experts/Journal.

ForexBestRobots has not compiled or executed these sources in MetaTrader. Formula, event and index-model checks do not replace a native test, including arrows, NoWindow appearance and notification delivery. Test the compiled program on demo first.

Download Stochastic with Alert ForexBestRobots free

Each ZIP includes modified platform source, untouched original reference source, required icon and include files, full Apache 2.0 license, change log, patch, instructions and SHA-256 checksums. No registration or broker account is required to download.

ForexBestRobots 1.05 identifies this derivative of EarnForex 1.04. Author attribution remains intact and modifications are marked. Original source, icons and includes from the complete pinned repository match the official platform archives byte for byte. Compile the modified source in the matching platform editor.

Free source ZIP · ForexBestRobots 1.05 · Compile in MetaEditor

Changing signals, bounded history and testing limits

Stochastic can remain above 80 or below 20 while price continues trending. A line cross is different from returning through a boundary. Neither event alone defines an entry, exit, stop or position size; no profit or reversal claim follows from an arrow.

ForexBestRobots bounds complete windows and neighbouring comparisons, aligns arrows to evaluated candles and restricts cleanup to the instance arrow prefix. BarsToScan=0 uses available valid history and may increase work. NoWindow keeps platform-specific window-size requests; complete hiding is not certified.

Our independent models compare Low/High and Close/Close with SMA %D, strict events and index/notification rules. They do not execute MQL or verify all MA initializations, native objects, broker feeds, intrabar paths, costs or delivery. Data corrections can also change historical readings.

Frequently asked questions

Why five configurations rather than six?

Main/Signal cross ignores AlertLine. Breakout and return each allow Main or Signal: 1+2+2=5.

Does touching 20 or 80 trigger a signal?

No. Threshold events require strict opposite-side values on adjacent candles. Equality is insufficient, and Main/Signal cross does not require an extreme.

Can an arrow disappear?

Yes. Current is the default and changes before close. Previous uses a completed candle and the ForexBestRobots arrow marks that candle; feed corrections remain possible.

Is WaitTimeNotify=5 five seconds?

No, five minutes. ForexBestRobots also limits both Current and Previous to one dispatch attempt per chart bar. The master EnableNotify=false disables every channel by default.

Are compiled EX4/EX5 files included?

No. Compile MQ4/MQ5 in matching MetaEditor. This is marked ForexBestRobots 1.05 source; ForexBestRobots has not performed native compilation or runtime testing.

Sources and review scope

Original source, license and dependencies are pinned to an EarnForex revision. The independent SMA reconstruction follows the MetaQuotes ratio-of-sums example. ForexBestRobots changes are marked; numerical models do not certify terminal runtime or trading performance.