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
Biblioteca do Pine

No verdadeiro espírito TradingView, o autor publicou este código de Pine como uma biblioteca de código aberto para que outros programadores de Pine de nossa comunidade possam reutilizá-lo. Um brinde ao autor! Você pode usar esta biblioteca em particular ou em outras publicações de código aberto, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Gostaria de usar essa biblioteca?

Copie a seguinte linha e cole-a em seu script.