kprsa

Natural Market Mirror

251 0 19
The natural market mirror indicator (see Jim Sloman's book "Ocean theory") coded in Trading View.
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
//coded in tradingview by kprsa
//idea by Jim Sloman (RIP) - see his book "Ocean theory"
// ------

study("Natural Market Mirror",shorttitle="NMM",overlay=false)
n=input(defval=40,title="Length",type=integer,minval=1,maxval=100,step=1)
s=input(defval=close,title="Source price")

nmm(src2) =>
    src=log(src2)
    sum=0.0
    for i=1 to n
        sum := sum+(src-src[i])/sqrt(i*1.0)
	nmm=sum/(n*1.0)

plot(nmm(s),color=red)
United States
United Kingdom
India
Deutschland
España
France
Việt Nam
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Support Priority Support Report Issue Ideas Published Followers Following Private Messages Chat Sign Out