INVITE-ONLY SCRIPT
nifty support registance

//version=5
indicator("stock and index 5min 15 min 30min", overlay=true)
// Define market open and close times
market_open_time = timestamp(year, month, dayofmonth, 9,40)
market_end_time = timestamp(year, month, dayofmonth, 3, 30)
// Identify the first 5-minute candle of the day
is_first_five_min_candle = (time >= market_open_time and time < market_open_time + 2000000)
// Variables to store the levels
var float first_upper_level =na
var float first_lower_level = na
var line first_upper_line = na
var line first_lower_line = na
// Set levels from the first 5-minute candle
if is_first_five_min_candle
first_upper_level := close * 1.0010
first_lower_level := close * 0.9999
// Upper and lower level lines (solid style)
first_upper_line := line.new(x1=bar_index, y1=first_upper_level, x2=bar_index + 20, y2=first_upper_level, width=2, color=color.rgb(44, 231, 6))
first_lower_line := line.new(x1=bar_index, y1=first_lower_level, x2=bar_index + 20, y2=first_lower_level, width=2, color=color.rgb(238, 13, 13))
// Extend the first upper and lower level lines until 3:25 PM
if time < market_end_time
line.set_x2(first_upper_line, bar_index)
line.set_x2(first_lower_line, bar_index)
indicator("stock and index 5min 15 min 30min", overlay=true)
// Define market open and close times
market_open_time = timestamp(year, month, dayofmonth, 9,40)
market_end_time = timestamp(year, month, dayofmonth, 3, 30)
// Identify the first 5-minute candle of the day
is_first_five_min_candle = (time >= market_open_time and time < market_open_time + 2000000)
// Variables to store the levels
var float first_upper_level =na
var float first_lower_level = na
var line first_upper_line = na
var line first_lower_line = na
// Set levels from the first 5-minute candle
if is_first_five_min_candle
first_upper_level := close * 1.0010
first_lower_level := close * 0.9999
// Upper and lower level lines (solid style)
first_upper_line := line.new(x1=bar_index, y1=first_upper_level, x2=bar_index + 20, y2=first_upper_level, width=2, color=color.rgb(44, 231, 6))
first_lower_line := line.new(x1=bar_index, y1=first_lower_level, x2=bar_index + 20, y2=first_lower_level, width=2, color=color.rgb(238, 13, 13))
// Extend the first upper and lower level lines until 3:25 PM
if time < market_end_time
line.set_x2(first_upper_line, bar_index)
line.set_x2(first_lower_line, bar_index)
僅限邀請腳本
僅作者批准的使用者才能訪問此腳本。您需要申請並獲得使用許可,通常需在付款後才能取得。更多詳情,請依照作者以下的指示操作,或直接聯絡vdhamdhere52。
TradingView不建議在未完全信任作者並了解其運作方式的情況下購買或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
its a normal support rgistance
in market idedification market direction
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
僅限邀請腳本
僅作者批准的使用者才能訪問此腳本。您需要申請並獲得使用許可,通常需在付款後才能取得。更多詳情,請依照作者以下的指示操作,或直接聯絡vdhamdhere52。
TradingView不建議在未完全信任作者並了解其運作方式的情況下購買或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
its a normal support rgistance
in market idedification market direction
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。