djmad

Mad_Fibonaccibox

Library "Mad_Fibonaccibox"
This library is designed to create and manage multiple Fibonacci boxes, which are graphical representations based on the inputs.

-----------------
exports:

f_fib_calc(_Fibonacci_box, _itemnumber)
  fibonacci calc.
@description This function block uses the levels and paramters set into the type_fibonacci_box(levels) and fills the corresponding array of prices.
  Parameters:
    _Fibonacci_box (type_Fibonacci_box)
    _itemnumber (int)
  Returns: returns a type_Fibonacci_box with the filled data

f_fib_draw(_Fibonacci_box, _itemnumber)
  fibonacci draw.
@description This function block uses the levels, prices and paramters set into the type_fibonacci_box(levels) and draws the fib on the chart
  Parameters:
    _Fibonacci_box (type_Fibonacci_box)
    _itemnumber (int)
  Returns: returns lines labels and fills on the chart, no data returns

type_level
  s for defining a lines and texts of a fibonacci box
  Fields:
    level (series float)
    price (series float)
    drawline (series bool)
    linewidth (series int)
    linetype (series string)
    fiblinecolor (series color)
    drawlabel (series string)
    labeltext (series string)
    textshift (series int)
    fibtextcolor (series color)
    fibtextsize (series string)
    transp (series int)

type_fill
  s for defining the fills of a fibonaccibox
  Fields:
    partner_A (series int)
    partner_B (series int)
    fill_color (series color)
    transp (series int)

type_Fibonacci_box
  s for defining a fibonacci box
  Fields:
    bottom_price (series float)
    top_price (series float)
    StartBar (series int)
    StopBar (series int)
    levels (type_level)
    fills (type_fill)
    ChartisLog (series bool)
    fibreverse (series bool)
    fibdrawreverse (series bool)
    decimals_price (series int)
    decimals_percent (series int)
    drawlines (series bool)
    drawlabels (series bool)
    drawfills (series bool)
    draw_biginfo (series bool)
    biginfo_textshift (series int)
    rangeinfo_location (series int)
    rangeinfo_color (series color)
    rangeinfo_textsize (series string)
    line_array (line)
    linefill_array (linefill)
    label_array (label)

Trader & coder. TA & NFTs.
bitblockwizard.com more at bitblockart.com
Pine腳本庫

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

免責聲明

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

想使用這個腳本庫嗎?

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