搜索
产品
社区
市场
新闻
经纪商
更多
CN
开始
社区
/
指标和策略
/
İtalyan Ghost
OPEN-SOURCE SCRIPT
İtalyan Ghost
由Narkobar提供
关注
关注
昨天
1
3
添加到收藏
添加到收藏
1
1
昨天
// © informanerd
//
version
=5
maxBoxes = 500
indicator("İtalyan Ghost", "", true, max_boxes_count = maxBoxes)
htf = input.timeframe("", "Zaman Dilimi")
appearGroup = "===============[ MUM RENKLERİ ]==============="
thickWick = input.bool(true, "RENKLER", group = appearGroup)
ascColor = input.color(color.green, "Rengini Seç → Bull:", inline = "color", group = appearGroup)
descColor = input.color(color.white, " Bear:", inline = "color", group = appearGroup)
bodyTrans = input.int(100, "Transparency → Mum Gövdesi:", 0, 100, 10, inline = "trans", group = appearGroup)
wickTrans = input.int(90, " Mum İğnesi:", 0, 100, 10, inline = "trans", group = appearGroup)
ctfCandleDeltaTime = switch
timeframe.isseconds => timeframe.multiplier * 1000
timeframe.isminutes => timeframe.multiplier * 1000 * 60
timeframe.isdaily => timeframe.multiplier * 1000 * 60 * 1440
timeframe.isweekly => timeframe.multiplier * 1000 * 60 * 1440 * 7
timeframe.ismonthly => timeframe.multiplier * 1000 * 60 * 1440 * 30
var bodies = array.new_box()
var wicks = array.new_box()
var color bodyColor = na
var color wickColor = na
[htfO, htfH, htfL, htfC, htfOpenTime, htfCloseTime] = request.security("", htf, [open, high, low, close, time, time_close])
if bodies.size() > 0 and htfOpenTime == htfOpenTime[1]
bodies.pop().delete()
wicks.pop().delete()
if bodies.size() == maxBoxes / 2
bodies.shift().delete()
wicks.shift().delete()
bodyTop = math.max(htfO, htfC)
bodyBottom = math.min(htfO, htfC)
wickLeft = htfOpenTime + ((htfCloseTime - htfOpenTime) / 2) - ctfCandleDeltaTime
wickRight = htfCloseTime - ((htfCloseTime - htfOpenTime) / 2) + (ctfCandleDeltaTime / 2)
bodyColor := htfO > htfC ? color.new(descColor, bodyTrans) : htfO < htfC ? color.new(ascColor, bodyTrans) : bodyColor
wickColor := htfO > htfC ? color.new(descColor, wickTrans) : htfO < htfC ? color.new(ascColor, wickTrans) : wickColor
bodies.push(box.new(htfOpenTime, bodyTop, htfCloseTime, bodyBottom, bodyTop == bodyBottom ? bodyColor : na, xloc = xloc.bar_time, bgcolor = bodyColor))
wicks.push(box.new(thickWick ? htfOpenTime : wickLeft, htfH, thickWick ? htfCloseTime : wickRight, htfL, na, xloc = xloc.bar_time, bgcolor = wickColor))
Breadth Indicators
Chart patterns
Cycles
开源脚本
本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受
网站规则
约束。 您可以收藏它以在图表上使用。
想在图表上使用此脚本?
添加到收藏
Narkobar
关注
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在
使用条款
阅读更多信息。