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:
快照

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:
快照

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

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?


更多:

免责声明