TusSensei

Logarithmic Moving Average [TusSensei]

Logarithmic moving averages involve mathematical modification of classical moving averages(EMA-RMA-SMA). Logarithmic modified averages deviate high over short time periods. For long time periods, it behaves exactly like the original moving averages. Its basic formulation is (MovingAverage x (1 + (1 / log(length))).

The most important reason for the operability of logarithmic moving averages is the time periods they use. The values ​​used are 21-55-149-404-1098-2981. These numbers are the consecutive powers of the number "e", which is the base of the natural logarithm (rounded up to an integer).

In this script you will also see another moving average called SQRT. This moving average is equal to the square root of the product of the EMA and the RMA. In other words, it is a moving average that is the geometric mean of two averages. In this script, you can use all of the EMA-RMA-SQRT and SMA averages in the classical and modified way. For formulaic modification, it is sufficient to select "mEMA", "mRMA" forms from the setting section.

Thanks everyone!

Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuyla, bu betiğin yazarı, yatırımcının anlayabilmesi ve doğrulayabilmesi için onu açık kaynak olarak yayınladı. Yazarın eline sağlık! Bunu ücretsiz olarak kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları ile yönetilir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?