Cagawa Sakti FX Indicator: Baseline With Two Gates

Written by Dominic Walsh · Published · Last updated

The cagawa sakti fx indicator runs a baseline trend system with a momentum gate. Three things have to agree before an arrow prints. The baseline direction, its slope, and a separate momentum reading. Sakti Baseline Up and Sakti Baseline Down colour that line.

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 4: Sakti Baseline Up, Sakti Baseline Down, Sakti Buy, Sakti Sell
Alerts popup, push notification, email, sound
Inputs 14

What the Cagawa Sakti Fx Indicator draws on the chart

Sakti Baseline Up carries the line while the baseline rises.

When it turns, the line hands over to Sakti Baseline Down.

Sakti Buy marks a qualifying setup on the long side.

A Sakti Sell marker mirrors it, and text objects label each one.

  • Sakti Baseline Up: line, deep sky blue, width 3
  • Sakti Baseline Down: line, orchid, width 3
  • Sakti Buy: arrow, lime, width 3, arrow code 233
  • Sakti Sell: arrow, red, width 3, arrow code 234
EURUSD H1: the cagawa sakti fx indicator printing Sakti Buy with the baseline sloping up.
EURUSD H1: the cagawa sakti fx indicator printing Sakti Buy with the baseline sloping up.

How the Cagawa Sakti Fx Indicator calculates its values

A double smoothed baseline

An inner average runs at InpFast using the built-in routine. A second smoothing at InpSlow then runs recursively over that inner value.

The recursion seeds with the inner value at the oldest bar, never zero. That stops the line opening on a false spike.

Gating on slope

Direction alone is not enough. The baseline has to slope by at least InpMinSlopeAtr, measured against ATR rather than in points.

Expressing the slope threshold in ATR keeps the same setting meaningful on instruments that move very differently.

The momentum gate

A momentum reading over InpMomPeriod has to sit outside a band set by InpMomBand before a marker prints.

InpCooldown then blocks repeats for five bars, so a baseline hovering around its slope threshold does not produce a cluster.

How to read the signals

Baseline colour is the state and a marker is a qualified setup, which is much rarer.

A colour change with no marker means either the slope or the momentum gate blocked it.

Both gates scale with volatility, so the tool behaves consistently across instruments.

Double smoothing makes the baseline steadier than a single average and slower to turn.

Alert channels in this build: popup, push notification, email and sound, one message per closed bar.

Alerts cover popup, push, email and sound when all three conditions agree. A bar time check keeps it to one alert per closed bar.

Every Cagawa Sakti Fx Indicator input

Core settings

Setting What it does Default
InpFast Inner EMA period (fast). InpFast is the inner average length. It defaults to 8. 8
InpSlow Outer EMA period (smoothing). InpSlow is the outer smoothing applied over that inner value, 13 by default. 13
InpAtrPeriod ATR period (slope yardstick). InpAtrPeriod is the volatility window the slope gate measures against, 14 by default. 14
InpMinSlopeAtr Baseline slope must reach this * ATR. InpMinSlopeAtr is the minimum baseline slope, in ATR, at 0.030. Raising it demands a steeper trend. 0.030
InpMomPeriod Momentum period. InpMomPeriod is the momentum lookback, 14 by default. 14
InpMomBand Momentum band around the 100 mid-line. InpMomBand is how far from neutral momentum has to sit, 0.080 by default. 0.080
InpCooldown Bars between same-direction arrows. InpCooldown blocks repeat markers for that many bars, 5 by default. 5

Display settings

Setting What it does Default
InpArrowOffset Arrow offset (points). InpArrowOffset spaces a marker from its candle, 80 points by default. 80

Alert settings

Setting What it does Default
EnableAlerts (see inputs panel) on
EnablePopup (see inputs panel) on
EnablePushNotify (see inputs panel) off
EnableEmail (see inputs panel) off
EnableSound (see inputs panel) off
SoundFile (see inputs panel) alert.wav
Inputs panel for the cagawa sakti fx indicator showing InpFast, InpMinSlopeAtr and InpMomBand.
Inputs panel for the cagawa sakti fx indicator showing InpFast, InpMinSlopeAtr and InpMomBand.

Settings that fit your chart

The screenshot uses EURUSD H1. A double smoothed 8 and 13 baseline holds its direction through ordinary pullbacks, which is what the two gates then filter. H1 and H4 suit it. On M5 the baseline still turns often enough that the slope gate does most of the work.

When the Cagawa Sakti Fx Indicator fails

Double smoothing buys steadiness and pays in lag. The baseline turns well after price does.

Three conditions on one price series are not three independent views. They can all agree at exactly the wrong moment.

A slope gate set in ATR goes quiet when volatility rises. The same slope becomes a smaller fraction of a larger ATR.

InpArrowOffset at 80 points is wide, so on a quiet instrument the markers float noticeably away from the candles.

Copy the compiled Cagawa Sakti Fx 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.

Download the Cagawa Sakti Fx Indicator for MT4 and MT5

The zip holds the compiled Cagawa Sakti Fx 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

Why does InpSlow seed from the inner value, not zero?

Seeding a recursive average with zero drags the first values down. That puts a false spike on the left of the chart. Starting from the inner value at the oldest bar makes the baseline useful from its first plotted point.

What does InpMinSlopeAtr 0.030 actually require?

The baseline has to be sloping by at least three percent of an ATR reading per bar. Measuring in ATR rather than points is what lets one setting cover instruments that move very differently. Raising it demands a visibly steeper trend before anything prints.

Why does a Sakti Baseline Up colour change sometimes print no arrow?

Because colour follows direction alone, while a marker also needs the slope gate and the momentum gate. A baseline that turns up gently, or turns while momentum sits inside InpMomBand, colours the line and produces nothing else.

Is InpArrowOffset 80 too wide?

On a quiet instrument it can be. Eighty points pushes a marker well clear of the candle. That reads fine on a volatile chart and floats on a calm one. It never affects when a marker fires, so adjust it for legibility.

Are results guaranteed?

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

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