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

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?


Também em:

Aviso legal