PINE LIBRARY
已更新

OneMonthFVG

91
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)
發行說明
v2

Added:
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
發行說明
v3

Example of Usage for Bullish 1M FVG
Pine Script®
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
Pine Script®
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))
發行說明
v4

Updated:
OneMonthFVGBox
  Fields:
    right (series int)
    top (series float)
    left (series int)
    bottom (series float)
    is_tested (series bool)
發行說明
v5

Updated:
OneMonthFVGBox
  Fields:
    right (series int)
    top (series float)
    left (series int)
    bottom (series float)
    is_tested (series bool)
    is_covered (series bool)
發行說明
v6
發行說明
v7

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。