Learn R Programming

⚠️There's a newer version (3.2) of this package.Take me there.

Trading (version 3.0)

CCR, Advanced Correlation & Beta Estimates, Betting Strategies

Description

Contains performance analysis metrics of track records including entropy-based correlation and dynamic beta based on the Kalman filter. The normalized sample entropy method has been implemented which produces accurate entropy estimation even on smaller datasets while for the dynamic beta calculation the Kalman filter methodology has been utilized. On a separate stream, trades from the five major assets classes and also functionality to use pricing curves, rating tables, CSAs and add-on tables. The implementation follows an object oriented logic whereby each trade inherits from more abstract classes while also the curves/tables are objects. Furthermore, odds calculators and P&L back-testing functionality has been implemented for the most widely used betting/trading strategies including martingale, DAlembert, Labouchere and Fibonacci. Back-testing has also been included for the EuroMillions and EuroJackpot lotteries. Furthermore, some basic functionality about climate risk has been included.

Copy Link

Version

Install

install.packages('Trading')

Monthly Downloads

251

Version

3.0

License

GPL-3

Maintainer

Tasos Grivas

Last Published

February 14th, 2024

Functions in Trading (3.0)

EuroMillionsExample

Euromillions analysis example
Curve-class

Curve Class
InformationAdjustedCorr

Information Adjusted Correlation
InformationAdjustedBeta

Information Adjusted Beta
DynamicBeta

Time Varying Beta via Kalman filter & smoother
Weighted_Average_Carbon_Intensity

Weighted Average Carbon Intensity
CommSwap-class

Commodity Swap Class
EuroJackpotResults

Returns all the EuroJackpot results until the end of 2023
Carbon_Intensity

Carbon Intensity
EuroMillionsResults

Returns all the EuroMillions results until the end of 2023
IRDFuture-class

IRD Future Class
Bond-class

Bond Class
roulette_pl_calculator_dalembert

Roulette P&L betting based on the D'Alembert Betting System
martingale_strategy_repetitions

Martingale Strategy Repetitions
capped_fibonacci_seq

Fibonacci sequence up to a specified maximum number
Collateral-class

Collateral Class
IRDSwap-class

IRD Swap Class
Chebyshev_distance

Chebyshev distance
Commodity-class

Commodity Class
OuterJoinMerge

Returns all possible combinations of two dataframes
ParseTrades

Parse trades through a .csv file.
EquityOptionIndex-class

Equity Option Index Class
EquityOptionSingle-class

Equity Option Single Class
roulette_pl_calculator_martingale

Roulette P&L betting based on a modified martingale strategy
Equity-class

Equity Class
NormXASampEn

Normalized Cross Sample Entropy
EquityIndexFuture-class

Equity Index Future Class
roulette_pl_calculator_specific_number

Roulette P&L betting on a specific number
EuroLotteryBacktesting

Euromillions/EuroJackpot Backtesting
HashTable-class

Hashtable Class
FxSwap-class

Fx Swap Class
FxForward-class

FX Forward Class
EuroLotteryAllCombinations

Returns all the possible number combinations for EuroMillions/EuroJackpot
GetTradeDetails

Returns a list with the populated fields of a Trade Object
SampleEntropy

Sample Entropy
Total_Carbon_Emissions

Total Carbon Emissions
OtherExposure-class

OtherExposure Class
VariationOfInformation

Variation of Information
top5

Top 5 most or least lucky numbers for EuroMillions/EuroJackpot
SelectDerivatives

Select the derivatives out of a trades' list
IRDSwapVol-class

IRD Swap Volatility Class
IRDSwaption-class

IRD Swaption Class
roulette_pl_calculator_fibonacci

Roulette P&L betting based on the Fibonacci Betting System
roulette_pl_calculator_labouchere

Roulette P&L betting based on the Labouchere Betting System
AngularDistance

Angular distance metrics
CDS-class

CDS Class
CDOTranche-class

CDO tranche Class
CSA-class

CSA Class
Carbon_Footprint

Carbon Footprint
CDX-class

CDX Class
CalcEuroLotteryPnL

PnL calculation for EuroMillions/EuroJackpot backtesting
BondFuture-class

Bond Future Class
CommodityForward-class

Commodity Forward Class
CrossSampleEntropy

Angular distance metrics
EuroJackpotExample

Eurojackpot analysis example