KISS Auto Fib Indicator: One Swing, Seven Fixed Lines

Written by Dominic Walsh · Published · Last updated

The kiss auto fib indicator does one job and stops. It finds the highest high and the lowest low inside `InpLookback` `20` bars. Those two anchor a retracement ladder drawn as horizontal lines.

This build ships as a compiled .ex4 for MT4 and .ex5 for MT5; the screenshots below come from EURUSD H1.

Platforms MT4 (.ex4) + MT5 (.ex5)
Chart window Main price chart
Plots 2: SwingHigh, SwingLow
Alerts popup
Inputs 15

The chart output explained

Horizontal lines mark 0.236, 0.382, 0.5, 0.618 and 0.786.

`InpDrawZeroLine` and `InpDrawFullLine` add the two ends in silver.

`SwingHigh` uses arrow 234 in tomato and `SwingLow` uses 233 in lime green.

Text objects label each line, all named with the `InpObjPrefix` `”KAF_”` prefix.

  • SwingHigh: arrow, tomato, width 2, arrow code 234
  • SwingLow: arrow, lime green, width 2, arrow code 233
Kiss auto fib indicator retracement lines and swing arrows on the EURUSD H1 chart.
Kiss auto fib indicator retracement lines and swing arrows on the EURUSD H1 chart.

The computation

Two anchors

iHighest and iLowest run over `InpLookback` `20` bars from the previous candle. Their prices become the two ends of the range.

Direction from timing

Whichever anchor formed later decides which end counts as zero. A high that came after the low gives a down leg. The ladder then reads from the top rather than the bottom.

Fixed ratios

Each line takes the zero end and adds a set share of the range. `InpDrawExtensions` `false` keeps 1.272 and 1.618 off the chart until you switch them on.

Reading the output

The gold `InpFib500Color` line marks the midpoint of the swing.

The orange line at 0.618 is the one most traders watch.

Lines redraw whenever a new extreme enters the twenty-bar window.

Arrows simply flag where the two anchors sit.

Alert channels in this build: popup, one message per closed bar.

This build carries a single route. `InpAlertOnNewSwing` ships true and raises a terminal message when a fresh anchor appears. No phone, mail or sound option exists, and a closed bar gates each message.

Every KISS Auto Fib Indicator input

Core settings

Setting What it does Default
InpLookback Swing lookback bars. Bars searched for the two anchors, default `20`. 20
InpObjPrefix Object name prefix. Prefix on every object this tool creates, default `”KAF_”`. KAF_

Display settings

Setting What it does Default
InpDrawZeroLine Draw 0.0 line. Show the 0.0 end, default `true`. on
InpDrawFullLine Draw 1.0 line. Show the 1.0 end, default `true`. on
InpDrawExtensions Draw 1.272 / 1.618 extensions. Add the 1.272 and 1.618 lines, default `false`. off
InpFib0Color 0.0 / 1.0 color. silver
InpFib236Color (see inputs panel) dodger blue
InpFib382Color (see inputs panel) deep sky blue
InpFib500Color 50% midline. Colour of the midline, default `clrGold`. gold
InpFib618Color golden ratio. Colour of the golden ratio line, default `clrOrange`. orange
InpFib786Color (see inputs panel) tomato
InpFibExtColor (see inputs panel) medium purple
InpLineWidth Thickness of every line, default `1`. 1
InpLineStyle Line style, default `STYLE_SOLID`. STYLE_SOLID

Alert settings

Setting What it does Default
InpAlertOnNewSwing Alert when new swing forms. Message when a fresh anchor forms, default `true`. on
Kiss auto fib indicator inputs panel with InpLookback, InpDrawExtensions and the colours.
Kiss auto fib indicator inputs panel with InpLookback, InpDrawExtensions and the colours.

Placing it well

Twenty bars is a short window, so the ladder moves often. EURUSD H1 is the reference chart, where that covers most of a trading day. On M5 the lines shift several times an hour. H4 holds one ladder for days.

Where the KISS Auto Fib Indicator struggles

A twenty-bar window redraws the ladder as soon as a new extreme prints.

Anchors come from raw extremes, not confirmed swing structure.

Levels are drawn references, so nothing here tests whether price respected one.

Copy the compiled KISS Auto Fib Indicator file into your MQL4/Indicators folder, and the MT5 build into MQL5/Indicators, then restart the terminal and drag it onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.

Background reading on the method behind the KISS Auto Fib Indicator: Flow trading on Wikipedia, Dowtheory at Investopedia.

Download the KISS Auto Fib Indicator for MT4 and MT5

The zip holds the compiled KISS Auto Fib Indicator build for MT4 and MT5, plus a short README. Compiled files only, no source. Enter your email below and the download link arrives in your inbox.

Download this indicator free

Enter your email and the file is yours. You also get the full MT4 and MT5 library.

  • 1,380+ indicators
  • MT4 and MT5 files
  • No spam, unsubscribe any time

FAQ

What does InpLookback 20 anchor?

The highest high and the lowest low across twenty bars, taken from the previous candle back. Those two prices define the range every line sits inside. A longer window gives a steadier ladder that updates less often.

How does InpLookback decide the direction?

By which anchor formed more recently. A high that printed after the low marks a down leg, so zero sits at the top. That single comparison is the whole of the direction logic here.

Why does InpDrawExtensions ship false?

To keep the chart simple, which is what the name of the tool is pointing at. The 1.272 and 1.618 lines sit outside the range and suit target work rather than retracement reading. Switch them on when you want them.

What is InpObjPrefix for?

It names every object this tool creates, defaulting to `”KAF_”`. That prefix lets the code delete only its own drawings when you remove it, leaving your manual lines and boxes untouched.

Are results guaranteed?

No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the KISS Auto Fib Indicator as one input. Always backtest before trading live.

Category: this is part of our Signal and Forecast collection. Also, truly, browse more Signal and Forecast for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.

External references

Dominic Walsh - Forex trader and MT4/MT5 developer

About the author

Written by Dominic Walsh, a Forex trader and MT4/MT5 indicator, Expert Advisor and script developer. Every tool on forexmt4systems.com is tested on live charts before release and ships with ready-to-use compiled MT4 (.ex4) and MT5 (.ex5) files. Learn more about the trader and developer behind this site.

How we build, test and correct every tool: Editorial & Testing Policy. Trading carries risk; see the disclaimer.

Leave a Comment