changePercent(source) Returns the one-bar change percentage of the source. Parameters: source (float)
calculateKellyRatio(returns) Calculates the Kelly Ratio. Parameters: returns (array<float>)
calculateAdjustedKellyFraction(kellyRatio, riskTolerance, fedStance) Calculates the adjusted Kelly Fraction. Parameters: kellyRatio (float) riskTolerance (float) fedStance (string)
sumArray(arr) Sums the elements of a float array. Parameters: arr (array<float>)
calculateStdDev(returns) Calculates the standard deviation of an array of returns. Parameters: returns (array<float>)
calculateMaxDrawdown(returns) Calculates the maximum drawdown from an array of returns. Parameters: returns (array<float>)
calculateEV(avgWinReturn, winProb, avgLossReturn) Calculates the Expected Value (EV) of a bet. Parameters: avgWinReturn (float) winProb (float) avgLossReturn (float)
calculateTailRatio(returns) Calculates the Tail Ratio. Parameters: returns (array<float>)
calculateVaR(returns, confidenceLevel) Calculates the Value at Risk (VaR). Parameters: returns (array<float>) confidenceLevel (float)
calculateCVaR(returns, varValue) Calculates the Conditional Value at Risk (CVaR). Parameters: returns (array<float>) varValue (float)
calculateRollingStdDev(returns, window) Calculates the rolling standard deviation of returns. Parameters: returns (array<float>) window (int)
calculateRollingMean(returns, window) Calculates the rolling mean of returns. Parameters: returns (array<float>) window (int)
determineMarketRegime(priceChanges) Determines the market regime based on price changes. Parameters: priceChanges (array<float>)
classifyVolatilityRegime(volatility) Classifies the volatility regime. Parameters: volatility (array<float>)
ספריית Pine
ברוח TradingView אמיתית, המחבר פרסם את קוד Pine זה כספריית קוד פתוח כך שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומי קוד פתוח אחרים, אך השימוש החוזר בקוד זה בפרסומים כפוף לכללי הבית.
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.
ברוח TradingView אמיתית, המחבר פרסם את קוד Pine זה כספריית קוד פתוח כך שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומי קוד פתוח אחרים, אך השימוש החוזר בקוד זה בפרסומים כפוף לכללי הבית.
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.