Pine script pine脚本,log(pi*(atr(factor))的含义是什么

Pine script pine脚本,log(pi*(atr(factor))的含义是什么,pine-script,trading,indicator,Pine Script,Trading,Indicator,在和Julia重写之前,我试图理解这段代码 // // @author LazyBear // @credits http://freethinkscript.blogspot.com/2009/05/only-scalpers-channel-that-you-will.html // study(title = "Scalper's Channel [LazyBear]", shorttitle="weak_volume_dependency [LB]", overlay=true) len

在和Julia重写之前,我试图理解这段代码

//
// @author LazyBear
// @credits http://freethinkscript.blogspot.com/2009/05/only-scalpers-channel-that-you-will.html
//
study(title = "Scalper's Channel [LazyBear]", shorttitle="weak_volume_dependency [LB]", overlay=true)
length = input(20)
factor = input(15)
src = input(close)
pi = atan(1)*4
Average(x,y) => (sum(x,y) / y)
scalper = Average(src, factor) - log(pi * (atr(factor)))
scalper_line= plot(scalper, color=blue, linewidth=1)
hi = plot (highest(length), color=fuchsia)
lo = plot (lowest(length), color=fuchsia)
但是我不明白这行代码做了什么
scapper=Average(src,factor)-log(pi*(atr(factor))