Library "MarketAnalysis" A collection of frequently used market analysis functions in my scripts.
bullFibRet(priceLow, priceHigh, fibLevel) Calculates a bullish fibonacci retracement value. Parameters: priceLow (float): (float) The lowest price point. priceHigh (float): (float) The highest price point. fibLevel (float): (float) The fibonacci level to calculate. Returns: The fibonacci value of the given retracement level.
bearFibRet(priceLow, priceHigh, fibLevel) Calculates a bearish fibonacci retracement value. Parameters: priceLow (float): (float) The lowest price point. priceHigh (float): (float) The highest price point. fibLevel (float): (float) The fibonacci level to calculate. Returns: The fibonacci value of the given retracement level.
bullFibExt(priceLow, priceHigh, thirdPivot, fibLevel) Calculates a bullish fibonacci extension value. Parameters: priceLow (float): (float) The lowest price point. priceHigh (float): (float) The highest price point. thirdPivot (float): (float) The third price point. fibLevel (float): (float) The fibonacci level to calculate. Returns: The fibonacci value of the given extension level.
bearFibExt(priceLow, priceHigh, thirdPivot, fibLevel) Calculates a bearish fibonacci extension value. Parameters: priceLow (float): (float) The lowest price point. priceHigh (float): (float) The highest price point. thirdPivot (float): (float) The third price point. fibLevel (float): (float) The fibonacci level to calculate. Returns: The fibonacci value of the given extension level.
Библиотека Pine
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.