OPEN-SOURCE SCRIPT

IchiMAMA (Experimental)

Goichi Hosoda's "Ichimoku Kinkō Hyō" is a widely used Trend Following indicator and can be defined as a "system" rather than an indicator.

Published in the late 1960's, consisting of 5 lines.

TenkanSen (Conversion Line) = [Highest High + Lowest Low/2] of the last 9 bars
KijunSen (Base Line) = [Highest High + Lowest Low/2] of the last 26 bars
SenkouSpanA (Leading Span A) = Average of Tenkan&KijunSen shifted -> 26 bars
SenkouSpanB (Leading Span B) = [Highest High + Lowest Low/2] of the last 52 bars
ChikouSpan (Lagging Span) = Price shifted <- 26 bars

On the other hand, Mesa Adaptive Moving Average developed by John Ehlers around early 2000's shows similarities with Hosoda's Tenkan and KijunSen using a different calculation method. For futher info: mesasoftware.com/papers/MAMA.pdf

I find MAMA superior to TenkanSen and KijunSen in terms of crossing signals.

Ichimoku:
snapshot

Thus, decided to replace TenkanSen and KijunSen of regular Ichimoku with MAMA&FAMA of Ehlers and calculated SenkouSpanA accordingly. SenkouSpanB and ChikouSpan stays the same as per Ichimoku's logic. (Periods are 30 by default for cryptocurrencies. If stocks then 26)

IchiMAMA:
snapshot

This is purely experimental and educational. Hope you'll like it :)

I'd like to thank everget for MAMA&FAMA
and KivancOzbilgic for Ichimoku Kinkō Hyō and Volume Based Colored Bars


famaIchimoku CloudKaufman's Adaptive Moving Average (KAMA)MESA Adaptive Moving Average (MAMA)Trend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer