PINE LIBRARY
已更新 OneMonthFVG

Library "OneMonthFVG"
The library is searching the open 1M FVG
find_one_m_fvg(provided_bull_fvgs)
Parameters:
provided_bull_fvgs (array<BullFVG>)
BullFVG
Fields:
right (series int)
top (series float)
left (series int)
bottom (series float)
The library is searching the open 1M FVG
find_one_m_fvg(provided_bull_fvgs)
Parameters:
provided_bull_fvgs (array<BullFVG>)
BullFVG
Fields:
right (series int)
top (series float)
left (series int)
bottom (series float)
發行說明
v2Added:
find_one_m_bull_fvg(provided_fvgs)
Parameters:
provided_fvgs (array<OneMonthFVGBox>)
find_one_m_bear_fvg(provided_fvgs)
Parameters:
provided_fvgs (array<OneMonthFVGBox>)
OneMonthFVGBox
Fields:
right (series int)
top (series float)
left (series int)
bottom (series float)
Removed:
find_one_m_fvg(provided_bull_fvgs)
BullFVG
發行說明
v3Example of Usage for Bullish 1M FVG
monthly_high = request.security(syminfo.tickerid, "M", high)
monthly_low = request.security(syminfo.tickerid, "M", low)
is_bull_fvg = (monthly_low[1] > monthly_high[3])
bull_fvg_top = monthly_low[1]
bull_fvg_bottom = monthly_high[3]
var bull_fvgs = array.new<fvg.OneMonthFVGBox>()
if is_bull_fvg
bullFVG = fvg.OneMonthFVGBox.new(bar_index[3], bull_fvg_top, bar_index + 10, bull_fvg_bottom)
array.push(bull_fvgs, bullFVG)
fvg.find_one_m_bull_fvg(bull_fvgs)
// Draw Opened 1M FVG
if array.size(bull_fvgs) > 0 and barstate.islast
for i = 0 to array.size(bull_fvgs) - 1
bullFVG = array.get(bull_fvgs, i)
box.new(bullFVG.left, bullFVG.top, bullFVG.right, bullFVG.bottom, border_color=color.new(color.aqua, 0), bgcolor=color.new(color.aqua, 90))
Example of Usage for Bearish 1M FVG
monthly_high = request.security(syminfo.tickerid, "M", high)
monthly_low = request.security(syminfo.tickerid, "M", low)
is_bear_fvg = (monthly_high[1] < monthly_low[3])
bear_fvg_top = monthly_low[3]
bear_fvg_bottom = monthly_high[1]
var bear_fvgs = array.new<fvg.OneMonthFVGBox>()
if is_bear_fvg
bearFVG = fvg.OneMonthFVGBox.new(bar_index[3], bear_fvg_top, bar_index + 10, bear_fvg_bottom)
array.push(bear_fvgs, bearFVG)
fvg.find_one_m_bear_fvg(bear_fvgs)
// Draw Opened 1M FVG
if array.size(bear_fvgs) > 0 and barstate.islast
for i = 0 to array.size(bear_fvgs) - 1
bearFVG = array.get(bear_fvgs, i)
box.new(bearFVG.left, bearFVG.top, bearFVG.right, bearFVG.bottom, border_color=color.new(color.red, 0), bgcolor=color.new(color.red, 90))
發行說明
v4Updated:
OneMonthFVGBox
Fields:
right (series int)
top (series float)
left (series int)
bottom (series float)
is_tested (series bool)
發行說明
v5Updated:
OneMonthFVGBox
Fields:
right (series int)
top (series float)
left (series int)
bottom (series float)
is_tested (series bool)
is_covered (series bool)
發行說明
v6發行說明
v7Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。