taran1tul

fibo_levels

taran1tul 已更新   
Library "Fibo_levels"
Calculate Fibo levels from any 2 levels. Your need know only 2 price of 2 levels for calculate any level of Fibo: function 'fibo_lvl',
or calculate array of price Fibo levels : function 'fibo_lvls'

fibo_lvl(fibo_lvl1, price1, fibo_lvl2, price2, calc_level)
  Parameters:
    fibo_lvl1: First of any level of fibo from 0 to 1 (example 0.236)
    price1: Price for 1th any level (example 2356.1)
    fibo_lvl2: Second of any level of fibo from 0 to 1 (example 0.382)
    price2: Price for 2th any level (example 2497.4)
    calc_level: Price for level to calculate (example 0.5)
  Returns: return price for calc_level fibo

fibo_lvls(bars, time1, time2, fibo_lvl1, price1, fibo_lvl2, price1)
  Parameters:
    fibo_lvl1: First of any level of fibo from 0 to 1 (example 0.236)
    price1: Price for 1th any level (example 2356.1)
    fibo_lvl2: Second of any level of fibo from 0 to 1 (example 0.382)
    price1: Price for 2th any level (example 2497.4)
  Returns: array of price for fibo levels : (0.0, 0.118, 0.236, 0.384, 0.5, 0.618, 0.786, 1.0, 1.27,-0.27,1.618,-0.618)
發布通知:
v2 -remove some unnecessary description of params
發布通知:
v3
- remove error w reversed fibo

With best regards, Sergey.
Pine腳本庫

本著真正的TradingView精神,作者將此Pine代碼以開源腳本庫發布,以便我們社群的其他Pine程式設計師可以重用它。向作者致敬!您可以私下或在其他開源出版物中使用此庫,但在出版物中重用此代碼受網站規則約束。

免責聲明

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

想使用這個腳本庫嗎?

複製以下行並將其黏貼到您的腳本中。