PINE LIBRARY
Updated

Backtesting

666
Library "Backtesting"

curve(disp_ind)
  Call function to get a certain curve of your strategy.
  Parameters:
    disp_ind (string)
  Returns: Returns type of curve plot.

cleaner(disp_ind, plot)
  Call function to filter out your Strategy plots
  Parameters:
    disp_ind (string)
    plot (float)

backtestTable(option, position)
  Assign this function to a random variable to get the "Performance Table"
  Parameters:
    option (simple string)
    position (simple string)
Release Notes
v7 i think
Release Notes
v3
Release Notes
v4
Release Notes
v6
Release Notes
v6
Release Notes
v7
Release Notes
v8
Release Notes
v9
Release Notes
v10
Release Notes
v11
Release Notes
v12
Release Notes
v13
Release Notes
v14
Release Notes
v15
Release Notes
v16
Release Notes
v17
Release Notes
v18
Release Notes
v19

Updated:
calculateMaxDrawdown(_equityCurve, startDate)
  Parameters:
    _equityCurve (float)
    startDate (int)
Release Notes
v20
Release Notes
v21

Added:
buyandhold(startPrice, startDate)
  Parameters:
    startPrice (float)
    startDate (int)

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.