PROTECTED SOURCE SCRIPT
jonas

//version=5
indicator("9:30 Candle Levels (30 min)", overlay=true)
// Detect 9:30 candle (exchange time)
is930 = (hour(time) == 9 and minute(time) == 30)
// How many minutes to extend
extendMinutes = 30
// Convert minutes → bars
barsToExtend = math.round(extendMinutes / timeframe.multiplier)
// Declare variables
float topWick = na
float bottomWick = na
float middleCandle = na
if is930
topWick := high
bottomWick := low
middleCandle := (high + low) / 2
endBar = bar_index + barsToExtend
// Draw horizontal lines
line.new(bar_index, topWick, endBar, topWick, xloc=xloc.bar_index, color=color.red, width=2)
line.new(bar_index, bottomWick, endBar, bottomWick, xloc=xloc.bar_index, color=color.green, width=2)
line.new(bar_index, middleCandle, endBar, middleCandle, xloc=xloc.bar_index, color=color.blue, width=2)
indicator("9:30 Candle Levels (30 min)", overlay=true)
// Detect 9:30 candle (exchange time)
is930 = (hour(time) == 9 and minute(time) == 30)
// How many minutes to extend
extendMinutes = 30
// Convert minutes → bars
barsToExtend = math.round(extendMinutes / timeframe.multiplier)
// Declare variables
float topWick = na
float bottomWick = na
float middleCandle = na
if is930
topWick := high
bottomWick := low
middleCandle := (high + low) / 2
endBar = bar_index + barsToExtend
// Draw horizontal lines
line.new(bar_index, topWick, endBar, topWick, xloc=xloc.bar_index, color=color.red, width=2)
line.new(bar_index, bottomWick, endBar, bottomWick, xloc=xloc.bar_index, color=color.green, width=2)
line.new(bar_index, middleCandle, endBar, middleCandle, xloc=xloc.bar_index, color=color.blue, width=2)
סקריפט מוגן
סקריפט זה פורסם כמקור סגור. עם זאת, תוכל להשתמש בו בחופשיות וללא כל מגבלות – למד עוד כאן
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט מוגן
סקריפט זה פורסם כמקור סגור. עם זאת, תוכל להשתמש בו בחופשיות וללא כל מגבלות – למד עוד כאן
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.