EzAlgo_Oscillator
EzAlgo_Oscillator

EzAlgo_Oscillator

更新日期:
2023-05-05
分类标签:
语言:
中文
平台:
没限制

27 人已下载 手机查看

描述文字
EzAlgo_Oscillator

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// ?grandkolla
//@version=5
//
//
//
//
indicator(title=’EzAlgo Oscillator’)
n1 = input(10, ‘Channel Length’)
n2 = input(21, ‘Average Length’)
obLevel1 = input(60, ‘Over Bought Level 1’)
obLevel2 = input(53, ‘Over Bought Level 2’)
osLevel1 = input(-60, ‘Over Sold Level 1’)
osLevel2 = input(-53, ‘Over Sold Level 2’)

ap = hlc3
esa = ta.ema(ap, n1)
d = ta.ema(math.abs(ap – esa), n1)
ci = (ap – esa) / (0.015 * d)
tci = ta.ema(ci, n2)

wt1 = tci
wt2 = ta.sma(wt1, 4)

plot(0, color=color.new(color.gray, 0))
ob1 = plot(obLevel1, color=color.new(color.maroon, 90))
os1 = plot(osLevel1, color=color.new(color.aqua, 90))
ob2 = plot(obLevel2, color=color.new(color.maroon, 90))
os2 = plot(osLevel2, color=color.new(color.aqua, 90))

p1 = plot(wt1, color=color.new(color.aqua, 0))
p2 = plot(wt2, color=color.new(color.maroon, 0))
plot(wt1 – wt2, color=wt2 – wt1 > 0 ? color.new(color.maroon, 50) : color.new(color.aqua, 50), style=plot.style_histogram)
plot(ta.cross(wt1, wt2) ? wt2 : na, color=color.new(color.black, 0), style=plot.style_circles, linewidth=3)
plot(ta.cross(wt1, wt2) ? wt2 : na, color=wt2 – wt1 > 0 ? color.maroon : color.aqua, style=plot.style_circles, linewidth=2)

fill(p1,p2,color = wt2 – wt1 > 0 ? color.new(color.red, 50) : color.new(color.aqua, 50))
fill(ob1,ob2,color = color.new(color.maroon, 20))
fill(os1,os2,color = color.new(color.aqua, 20))

如果你对文件有了解,请帮助投票!

If you are familiar with the file, please help vote!

平均评分 0 / 5. 投票数: 0

到目前为止还没有投票!成为第一位投票人。

相关资源

暂无评论

none
暂无评论...