Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 14:54:54 +0000



Post From: geometric moving average

[2023-01-24 19:55:47]
User411320 - Posts: 289
The following is a code from tradingview for a geometric average. Can this be put into sierrachart? or what it the best way to do it myself?

//@version=2
study("Geometric Moving Average",overlay=true)
price = input(title ="Source", defval=close)
per = input(title="Length",defval=10)
lmean = log(price)
smean = sum(lmean,per)
gma = exp(smean/per)
plot(gma,title="GMA",color=teal,linewidth=2)
Date Time Of Last Edit: 2023-01-31 20:51:23