Documentation ¶
Index ¶
- func CalcBetaHat(l1, l2 []float64) (float64, error)
- func CalcDist(l1, l2 []float64) (float64, error)
- func CalcEffectiveStandardDeviation(betaHat, hedgeRatio, sigmaHat float64) float64
- func CalcHedgeRatio(betaHat, sigmaHat float64) float64
- func CalcNotes(l1, l2 []float64) ([]float64, error)
- func CalcSigmaHat(l1, l2 []float64, beta float64) (float64, error)
- func CalcSpread(p, q, hedgeRatio float64) float64
- func CalcSpreadReturn(p, q, hedgeRatio float64) float64
- func OptimalPercentPortfolio(chanceOfWin, avgWin, avgLoss float64) float64
- func OptimalStopLoss(M, gain, loss, probCorrect float64) float64
- func OptimalVarStopLoss(b, variance, entry float64) (float64, float64)
- func StdDev(l1, weights []float64) (float64, error)
- func ZNorm(l1 []float64) ([]float64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcBetaHat ¶
CalcBetaHat estimates beta hat
func CalcEffectiveStandardDeviation ¶
CalcEffectiveStandardDeviation ...
func CalcSigmaHat ¶
CalcSigmaHat ...
func CalcSpread ¶
func CalcSpreadReturn ¶
func OptimalPercentPortfolio ¶
OptimalPercentPortfolio ...
func OptimalStopLoss ¶
OptimalStopLoss ...
func OptimalVarStopLoss ¶
OptimalVarStopLoss ... return is long / short
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.