Keltner-Aroon-EFI FlowKeltner-Aroon-EFI Flow - |K| |A| |E| |F|
KAE Flow is a quantitative trend-aggregation engine designed to determine the dominant market bias by fusing three distinct market dimensions: Volatility, Trend Strength, and Volume.
This script does not rely on a single metric. Instead, it creates a composite "Flow" score derived from the Daily timeframe to act as a high-level bias filter for intraday or swing trading.
1. The Quantitative Logic (The Engine)
The core of this indicator is the KAE Engine, which polls data from the Daily timeframe (by default) to ensure you are always trading in alignment with the macro trend. It aggregates three logical components:
K (Keltner Channels): Measures Volatility Breakouts.
Logic: Returns bullish if price closes above the Upper Channel, bearish if below the Lower Channel. This captures the expansion phase of price action.
A (Aroon): Measures Trend Age & Strength.
Logic: Returns bullish only if the Aroon Up is > 70 and dominating the Aroon Down. This ensures the trend is not just present, but mathematically strong.
E (Elder’s Force Index): Measures Volume-Weighted Momentum.
Logic: Uses volume pressure to confirm price moves. Positive smoothed force indicates bullish accumulation.
2. Signal Processing (ALMA)
Raw data is noisy. The KAE Flow takes the aggregated raw score from the components above and runs it through an ALMA (Arnaud Legoux Moving Average).
Why ALMA? It offers the best balance between smoothness and responsiveness, removing "false flips" in the trend bias while reacting quickly to genuine reversals.
The Color (The Bias):
Deep Blue: Strong Bullish Flow (KAE Score > 0.1). Look for Long entries .
White: Strong Bearish Flow (KAE Score < -0.1). Look for Short entries.
Gray: Neutral/Transition. Volatility is contracting or the trend is conflicting.
5. Settings & Configuration
Keltner/Aroon/EFI Lengths: Fully customizable to fit different asset classes (Crypto vs. Forex).
Active Smoothing: Toggle ALMA on/off.
Active Components: You can toggle specific engines (K, A, or E) on or off. Default uses Keltner + Aroon for a pure Price/Time analysis.
Risk Warning: This indicator pulls higher-timeframe data (Daily) to color lower-timeframes. While this provides a powerful macro view, be aware that closed candle data is used to prevent repainting issues in real-time.
D_Quant --- Trade With Discipline
EFI
Colored Columns for Elder's Force Index EMAThe Elder's Force Index is an oscillator that takes into account the change of the price combined with the volume:
EFI = (close of the current day - close of the previous day) * volume of the current day
If measure the force of the price change.
If you calculate the exponential moving average of the last two days to smooth the signal EMA(EFI,2), you have a nice buy/sell indicator in the context of the "Elder Triple Screen Method":
- If you are in a long term uptrend (for example ema(13) going up), you have a buy signal if EFI(2)<0, because then you have a short term downtrend in a long term uptrend. Put a "stop buy" a bit higher in case the long term uptrend continues.
- If you are in a long term downtrend (for example ema(13) going down), you have a sell signal if EFI(2)>0, because then you have a short term uptrend in a long term downtrend. Put a "stop sell" a bit lower in case the long term downtrend continues.
This graph shows you colored columns for the EMA(EFI,2), which is more visible than the one-color indicator provided by default by TV.
You can also display the EFI itself on top of the columns. (optional, I personaly do not use it)
PS: ema(13) is to make the explanation simple. Personaly, I use MACD histogram on a weekly view to define if I am on a long term uptrend or downtrend.
Elder's Force Index Function (with source)TradingView has built in functions for RSI, Momentum, and many other oscillators. Why the source isn't available for Elder's Force Index is beyond me. To me it's one of the Holy Grail indicators. This is EFI indicator with a simple function inside the source code. You're can easily copy this function into any study(indicator) or strategy that uses built-in oscillators, as a replacement.
Example using EFI instead of RSI in built-in Divergence Indicator:
gyazo.com
//Discord: Sheldon#7775
//Server: discord.gg
Hull MACD with Force Index Backcolorswww.tradingview.com
Like many other indicators this tells the past and it will dutifully follow the future price changes whatever they will be.
This is an upgrade of the "Hull Moving Average Convergence/Divergence" low lag indicator in my scripts. Added Elder Force Index (background colors) to include effects of Volume.
When EFI goes positive the background goes green, when it slopes up (more positive than previous bar) it is darker green. Negative red and slope down darker red.
I find it useful in all time frames but I use mostly hour and day. The direction color combined with price action and macd tell whether the volume supports the price movement and the shading (darker green for increasing up volume and darker red for increasing down volume) tells of the degree of support.
Since when the EFI is positive and dropping, for example, the price can be dropping with opposite for negative.
Dark shading tells where the EFI and possibly the price is headed (at the moment).
Light shading says to check more on other indications for likely direction.
Changed also the histogram color so it stands out of background and added hlines to make relative volatility and peak height easier to see.
Anyway help yourself if any of this code is useful to you, enjoy, happy trading and Keep Smiling!




