PINE LIBRARY

ScalpingMetricsLib

Mis à jour
Library "ScalpingMetricsLib"

winRate(wins, totalTrades)
  Parameters:
    wins (float)
    totalTrades (float)

riskRewardRatio(avgProfit, avgLoss)
  Parameters:
    avgProfit (float)
    avgLoss (float)

profitFactor(totalProfit, totalLoss)
  Parameters:
    totalProfit (float)
    totalLoss (float)

avgTradeDuration(totalDuration, totalTrades)
  Parameters:
    totalDuration (float)
    totalTrades (float)

slippageSensitivity(slippage, totalProfit)
  Parameters:
    slippage (float)
    totalProfit (float)

equityMaxDrawdown(equityHigh, equityLow)
  Parameters:
    equityHigh (float)
    equityLow (float)

sharpeRatio(avgReturn, stdDev)
  Parameters:
    avgReturn (float)
    stdDev (float)

sortinoRatio(avgReturn, downsideDev)
  Parameters:
    avgReturn (float)
    downsideDev (float)

maxConsecutiveLosses(lossArray)
  Parameters:
    lossArray (array<float>)

omegaRatio(totalWins, totalLosses)
  Parameters:
    totalWins (float)
    totalLosses (float)

latencySensitivity(latency)
  Parameters:
    latency (float)
Notes de version
v2

Added:
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)

cobraTable(option, position)
  Assign this function to a random variable to get the "Performance Table"
  Parameters:
    option (simple string)
    position (simple string)

Removed:
winRate(wins, totalTrades)

riskRewardRatio(avgProfit, avgLoss)

profitFactor(totalProfit, totalLoss)

avgTradeDuration(totalDuration, totalTrades)

slippageSensitivity(slippage, totalProfit)

equityMaxDrawdown(equityHigh, equityLow)

sharpeRatio(avgReturn, stdDev)

sortinoRatio(avgReturn, downsideDev)

maxConsecutiveLosses(lossArray)

omegaRatio(totalWins, totalLosses)

latencySensitivity(latency)
Notes de version
v3
display

Bibliothèque Pine

Dans le plus pur esprit TradingView, l'auteur a publié ce code Pine en tant que bibliothèque open-source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur! Vous pouvez utiliser cette bibliothèque en privé ou dans d'autres publications à code source ouvert, mais la réutilisation de ce code dans une publication est régie par nos Règles.

Clause de non-responsabilité