CodeRe: Moving Average indicators for MT4

4044
Lorentzian Moving Average

Just experiment Lorentzian MA

This experimental Moving Average explores an alternative method of smoothing price using Lorentzian-inspired weighting.

Unlike traditional Moving Averages, which use fixed, linear or exponential weighting methods, the Lorentzian approach draws on a mathematical function with heavier tails than the Gaussian distribution.

In theory, this allows more distant price observations to retain greater influence in the averaging calculation, potentially producing different smoothing and lag characteristics.

Note: This is an experimental indicator, and its precise formula and performance characteristics have not yet been confirmed.
These users thanked the author kvak for the post (total 7):
Jimmy, boytoy, talaate, emanuelmb10, Krunal Gajjar, elvenso, thomdel
"fear moves faster than greed"


Re: Moving Average indicators for MT4

4046
boytoy wrote: Sun Nov 22, 2026 2:31 pm Lorentzian moving average looks good what is it? Did a search but I'm not finding much can you help
Hello.
I don't think you'll find anything; as I wrote, it's my experiment.
It occurred to me when I was porting two indicators from TV (where the Lorentzian is used in a different way - I post some beta versions in post below. ).
And trying apply different weighting calculation to moving average.
These users thanked the author kvak for the post (total 2):
RodrigoRT7, Jimmy
"fear moves faster than greed"

Re: Moving Average indicators for MT4

4047
kvak wrote: Mon Nov 23, 2026 5:57 am Hello.
I don't think you'll find anything; as I wrote, it's my experiment.
It occurred to me when I was porting two indicators from TV (where the Lorentzian is used in a different way - I post some beta versions in post below. ).
And trying apply different weighting calculation to moving average.
Lorentzian Length Adaptive Moving Average [LLAMA]
Original Pine: © Starcruiser, Mozilla Public License 2.0
kernel/ML ext. by jdehorty

Optional additions:

- base MA: any MA from the pack (EMA = original), incl. ALMA, Lorentzian MA and Ehlers Gaussian filter
- features from the library (ADX, Kernel, Volume, RSI, WT, CCI, MFI, Fisher), combined as average (original) or as a vector with true Lorentzian distance per feature .

For LMMA calculation use only recursive MA like EMA, RMA, SMMA, Gauss.
These users thanked the author kvak for the post (total 4):
RodrigoRT7, JimKuba, elvenso, emanuelmb10
"fear moves faster than greed"

Re: Moving Average indicators for MT4

4048
kvak wrote: Mon Nov 23, 2026 5:57 am Hello.
I don't think you'll find anything; as I wrote, it's my experiment.
It occurred to me when I was porting two indicators from TV (where the Lorentzian is used in a different way - I post some beta versions in post below. ).
And trying apply different weighting calculation to moving average.
Based on "Machine Learning: Lorentzian Classification"
Original: © jdehorty, Mozilla Public License 2.0

v1.1+ : v1.0 core (past label, original neighbour selection)
on the user's template functions, with OPTIONAL additions
inspired by the "Quantum ML Engine" concepts:
- ATR neutral zone for training labels
- switchable volatility filter (off / fast / slow)
- switchable regime filter (off / original / trend strength)
- higher-timeframe EMA confluence filter (closed HTF bar)
- exit modes: fixed / dynamic / ATR trail / Supertrend
- MFI and Fisher Transform as optional features
- extended stats: net, profit factor, avg win/loss, max DD,
close-to-close calibration win-rate
With default settings the signals follow v1.0.
These users thanked the author kvak for the post (total 12):
RodrigoRT7, detatong, Jimmy, Akela, JimKuba, FredericoA, talaate, thomdel, JAEYOUNG, Abdi, emanuelmb10, AlgoAlex811
"fear moves faster than greed"

Re: Moving Average indicators for MT4

4049
kvak wrote: Mon Nov 23, 2026 6:23 am Based on "Machine Learning: Lorentzian Classification"
Original: © jdehorty, Mozilla Public License 2.0

v1.1+ : v1.0 core (past label, original neighbour selection)
on the user's template functions, with OPTIONAL additions
inspired by the "Quantum ML Engine" concepts:
- ATR neutral zone for training labels
- switchable volatility filter (off / fast / slow)
- switchable regime filter (off / original / trend strength)
- higher-timeframe EMA confluence filter (closed HTF bar)
- exit modes: fixed / dynamic / ATR trail / Supertrend
- MFI and Fisher Transform as optional features
- extended stats: net, profit factor, avg win/loss, max DD,
close-to-close calibration win-rate
With default settings the signals follow v1.0.
Hi kvak, thank you for this indicator, is it possible to add alerts at candle open please?