or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

Files

docs

commodity.mdcrypto.mdcurrency.mdderivatives.mdeconomy.mdequity.mdetf-index.mdfixedincome.mdindex.mdnews.mdregulatory.mdtechnical.md

technical.mddocs/

0

# Technical Analysis

1

2

Technical analysis indicators, charting capabilities, and quantitative analysis tools. This module provides comprehensive technical analysis and quantitative metrics for financial data.

3

4

## Capabilities

5

6

### Technical Indicators

7

8

Comprehensive technical analysis indicators and charting tools.

9

10

```python { .api }

11

def obb.technical.fib(

12

data: str,

13

provider: str = None,

14

**kwargs

15

) -> ResponseObject:

16

"""

17

Create Fibonacci Retracement Levels.

18

19

Parameters:

20

- data: Input price data

21

- provider: Data provider to use

22

23

Returns:

24

ResponseObject with Fibonacci retracement levels

25

"""

26

27

def obb.technical.demark(

28

data: str,

29

provider: str = None,

30

**kwargs

31

) -> ResponseObject:

32

"""

33

Calculate the Demark sequential indicator.

34

35

Parameters:

36

- data: Input price data

37

- provider: Data provider to use

38

39

Returns:

40

ResponseObject with Demark sequential data

41

"""

42

43

def obb.technical.relative_rotation(

44

data: str,

45

provider: str = None,

46

**kwargs

47

) -> ResponseObject:

48

"""

49

Calculate the Relative Strength Ratio and Relative Strength Momentum.

50

51

Parameters:

52

- data: Input price data

53

- provider: Data provider to use

54

55

Returns:

56

ResponseObject with relative rotation data

57

"""

58

59

def obb.technical.atr(

60

data: str,

61

provider: str = None,

62

**kwargs

63

) -> ResponseObject:

64

"""

65

Calculate the Average True Range.

66

67

Parameters:

68

- data: Input price data

69

- provider: Data provider to use

70

71

Returns:

72

ResponseObject with Average True Range values

73

"""

74

75

def obb.technical.cg(

76

data: str,

77

provider: str = None,

78

**kwargs

79

) -> ResponseObject:

80

"""

81

Calculate the Center of Gravity.

82

83

Parameters:

84

- data: Input price data

85

- provider: Data provider to use

86

87

Returns:

88

ResponseObject with Center of Gravity values

89

"""

90

91

def obb.technical.clenow(

92

data: str,

93

provider: str = None,

94

**kwargs

95

) -> ResponseObject:

96

"""

97

Calculate the Clenow Volatility Adjusted Momentum.

98

99

Parameters:

100

- data: Input price data

101

- provider: Data provider to use

102

103

Returns:

104

ResponseObject with Clenow momentum values

105

"""

106

107

def obb.technical.aroon(

108

data: str,

109

provider: str = None,

110

**kwargs

111

) -> ResponseObject:

112

"""

113

Calculate the Aroon Indicator.

114

115

Parameters:

116

- data: Input price data

117

- provider: Data provider to use

118

119

Returns:

120

ResponseObject with Aroon indicator values

121

"""

122

123

def obb.technical.macd(

124

data: str,

125

provider: str = None,

126

**kwargs

127

) -> ResponseObject:

128

"""

129

Calculate the Moving Average Convergence Divergence (MACD).

130

131

Parameters:

132

- data: Input price data

133

- provider: Data provider to use

134

135

Returns:

136

ResponseObject with MACD values

137

"""

138

```

139

140

### Quantitative Analysis

141

142

Statistical analysis and quantitative modeling tools for financial data.

143

144

```python { .api }

145

# Quantitative module provides quantitative analysis tools

146

# Note: Specific quantitative functions depend on available implementations

147

# Common quantitative analysis capabilities include:

148

# - Statistical analysis and metrics

149

# - Risk analysis and value-at-risk calculations

150

# - Performance attribution analysis

151

# - Portfolio optimization tools

152

# - Factor analysis and modeling

153

# - Correlation and covariance analysis

154

```

155

156

## Usage Examples

157

158

### Technical Analysis

159

160

```python

161

from openbb import obb

162

163

# Calculate MACD indicator

164

macd_data = obb.technical.macd(data="price_data")

165

macd_df = macd_data.to_dataframe()

166

167

# Calculate ATR (Average True Range)

168

atr_data = obb.technical.atr(data="price_data")

169

atr_df = atr_data.to_dataframe()

170

171

# Calculate Fibonacci retracement levels

172

fib_data = obb.technical.fib(data="price_data")

173

fib_df = fib_data.to_dataframe()

174

```

175

176

### Quantitative Analysis

177

178

```python

179

# Access quantitative analysis tools

180

# (Specific quantitative functions available in the quantitative module)

181

# Example usage pattern would be similar to other modules

182

```

183

184

### Technical Analysis Workflow

185

186

```python

187

# Calculate technical indicators for stocks

188

# Perform statistical analysis on price data

189

# Generate trading signals and alerts

190

```