instruction stringlengths 15 26.1k |
|---|
I am a bit confused about the definition of basis risk, and how it applies to a zero dividend stock.
A study manual that teaches me about that mentioned basis risk happens when there are mismatches in underlying asset price and future price, e.g. for a $(t+k)$-year maturity future, the basis risk at the time of sale... |
Hi there and welcome to the forum. I can't say for recovery cycles, but I used this paper (https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3299498) on a project for a master's course. It is mostly about bubble and crisis prediction with an econometric model, I guess that corresponds to your boom and busts.
Hopef... |
In the paper "Realized kernels in practice: trades and quotes" by O. E.Bandorff-Nielsen etc. cf.
https://onlinelibrary.wiley.com/doi/full/10.1111/j.1368-423X.2008.00275.x
in the section dedicated to data cleaning the authors suggest:
> Retain entries originating from a single exchange (NYSE in our application)... |
I am sales and would like to grasp rough levels of quanto CDS, such as BMW denominated in USD, without askin traders each time. What i'm thinking is to calculte it using Python.
But i cannot build up complex codes. Does there exist quanto CDS pricer/library in Python? |
I am learning about central clearing.
In my understanding, CDS are usually cleared via central clearing.
But at the same time I heard that in case of too much correlation such as US bank selling protection w.r.t. US Gov, trades cannot happen b/c no one wants to enter into this wrong way risk.
If such CDS is c... |
Let the $r$ riskless rate to be constant. Let's consider the following underlying dynamic under the $\mathbf{P}$ “physical measure”
$$dS_{t}=\mu_{t}S_{t}dt+\sigma_{t}S_{t}dW_{t}^{\mathbf{P}},$$
where $W^{\mathbf{P}}$ is a Wiener process under $\mathbf{P}$. In many cases this underlying dynamic under the $\mathbf... |
Too long for a comment:
> Does the same hold if the underlying dynamic under is basically an Ornstein-Uhlenbeck process:
$$_=__+\sigma_^_?$$
> Or are these two processes have the same form, just the $\sigma_t$ contains an $1/_$ term?
If $S$ is a tradable asset its risk-neutral rate of return is $r$, even i... |
Is there a way to trade IV skew between two maturities? For example, bull put in near maturity and bear put in far maturity. |
I have some trouble to understand on valuing the floating side of a swap.
In my book, the value of floating side at the time t is
P(t,T_0) - P(t,T_n)
Where `P(t,T_n)`denotes the value of zero coupon bond which payoff at the maturity.
However, there are no additional explanation about this and I think that... |
I have some trouble to understand on valuing the floating side of a swap.
In my book, the value of floating side at the time t is
$$ \ P(t,T_0) - P(t,T_n) \ $$
Where `$$ P(t,T_n) $$`denotes the value of zero coupon bond which payoff at the maturity.
However, there are no additional explanation about this ... |
I have some trouble to understand on valuing the floating side of a swap.
In my book, the value of floating side at the time t is
P(t,T_0) - P(t,T_n)
Where `P(t,T_n)`denotes the value of zero coupon bond which payoff at the maturity.
However, there are no additional explanation about this and I think that... |
I have some trouble to understand on valuing the floating side of a swap.
In my book, the value of floating side at the time t is;
$$ P(t,T_0) - P(t,T_n) $$
Where $$ P(t,T_n)$$ denotes the value of zero coupon bond at time t which payoff $1 at the maturity.
However, there are no additional explanation abou... |
For a swaption, this text (http://www.ict.nsc.ru/jct/getfile.php?id=461( reads:
[![enter image description here][1]][1]
I get that he's just taking the derivative of the swaption valuation formula (which is N * A * BLACKSCHOLES), but he's assuming A (the annuity) is independent of the underlying swap rate. Surely... |
How is this greek calculation meaningful? |
For a swaption, the "[Pricing And Hedging Of Swaptions](http://www.ict.nsc.ru/jct/getfile.php?id=461)" paper by Akume et al (2003) says:
[![enter image description here][1]][1]
I get that he's just taking the derivative of the swaption valuation formula (which is N * A * BLACKSCHOLES), but he's assuming A (the an... |
You're on the right track. Specifically, let $D(K,T)$ be the price of a digital put option of strike $K$ and maturity $T$. Then, as you might know
$$
D(K,T) = N(-d_2(K,T)) + K n(-d_2(K,T)) \sqrt T \, \frac{\partial I(K,T) }{\partial K}
$$
where $I(K,T)$ is the IV for $K$ and $T$, $N()$ is the standard normal distri... |
You're on the right track.
Specifically, let $D(K,T)$ be the price of a digital put option of strike $K$ and maturity $T$. Then, as you might know
$$
D(K,T) = N(-d_2(K,T)) + K n(-d_2(K,T)) \sqrt T \, \frac{\partial I(K,T) }{\partial K}
$$
where $I(K,T)$ is the IV for $K$ and $T$, $N()$ is the standard normal dis... |
This might be a rather basic question that might be closed... but I can't for the life of me understand why in many Google search results the annualization of daily returns is done like this:
r_yearly = (1+r_daily)^252 - 1
However, this is not the correct way to annualize returns in a portfolio optimization conte... |
23
Bloomberg always have two codes for the same instruments. For example, for CIE CIE FINANCIERE
RICHEMO, Bloomberg has CFR SE and CFR SW.
I am wondering what is the difference between these two codes? |
There is a well known **offline profit optimal** algorithm for market clearing (matching buy-bids with sell-bids, [visit for more details](https://www.cs.cmu.edu/~sandholm/online_clearing.jacm.pdf)) which is based on bipartite weighted matching. This algorithm assumes that all buy-bids and sell-bids have quantity $= 1$... |
There is a well known **offline profit optimal** algorithm for market clearing (matching buy-bids with sell-bids, [visit for more details](https://www.cs.cmu.edu/~sandholm/online_clearing.jacm.pdf)) which is based on bipartite weighted matching. This algorithm assumes that all buy-bids and sell-bids have quantity $= 1$... |
Say instead of directly buying 2m EUR Jan 31,2024 forward, you buy 2m EUR spot and the swap that with Jan 31, 2024 as forward date. Why would transaction costs will be less than the outright forward trade? |
Why sometimes fx forward positions are built via spot + fx swap trades rather than outright fx foward trade? |
Before asking any reference, I think it makes sense to give some feature of the recipient.
I am a pure mathematician. After the PhD I went to industry to work as software engineer. Recently I started being interested in finance; in the very beginning it was just to understand how to invest my savings, so I read "A R... |
It seems like you want a quant finance book but without the math? I can propose a few good autobiographies by famous quants or biographies on these quants:
1. My Life as a Quant by Emanuel Derman - talks about an ex-physicist who went into quant finance and worked at an investment bank in financial engineering. Th... |
According to your various experience, is there an industry consensus about which C++ implementation of the Levenberg-Marquardt algorithm to use ?
I came across two places where it was the C numerical recipeds version which was used, only one time where it was reimplemented from scratch, but I'd be very interested in... |
Which C++ implementations of Levenberg-Marquardt does the "industry" use? |
Think about issuing digital coupon dual ccy notes below.
Notional ccy: USD
Tenor: 10yr
Coupon: if eurusd > certain level, 6%
otherwise 0%, SA
Redemption: if eurusd > certain level2, usd 100%. otherwise notional * eurusd / initial eurusd in eur.
If we change high cpn to 6.01%, change in value of notes ... |
Isn't it easy to check this thesis by checking what's happened to ctd basis recently? If there's more demand to long basis, it should widen..
Also swap spreads / invoice spreads might be a good indicator. |
I am reading the following [paper][1]. In particular, in section 4 - numerical determination of OTRs, it mentions applying Ordinary Least Square on Eq(5). However, what I don't know is whether ${P_{0,0}, P_{0,1}, ...,P_{0,T_1}}$ is simulated or coming from actual historical data? I am guessing it's coming from actual h... |
I am studying a previous post on how to build `SOFR` discount curve here https://quant.stackexchange.com/questions/61838/libor-transition-building-sofr-discount-curve
However, I struggle to understand the below formula
[![enter image description here][1]][1]
What is the reason of having `LHS` as 100 i.e. the P... |
i am trying to learn by myself stochastic calculus I have a question regarding semi-martingale stochastic process and geometric brownian motion (GBM)
We know that A stochastic process $S_t$ is said to follow a GBM if it satisfies the following stochastic differential equation (SDE): $dS_t = \mu_t S_t dt+\sigma S_t W... |
Generally my question is: what are best practices for building FX volatility surfaces with Quantlib?
In FX options, I would like to price structures such as risk reversals, strangles and butterflies.
Of interest are 10D and 25D structures.
I want to evaluate the premium and greeks at different points in the lifeti... |
**Aims:**
- Given approximately 11 years of historical time-series data, to determine how much of this data should be reserved for `in-sample` and `out-of-sample` testing when using the data in the `backtesting` of a forecasting system
- To become familiar with potential techniques, if any, that can be used to dete... |
I am new to the eTrading and RFQ world and am learning these applications / services used within sell-side orgs like Investment banks in some details.
As Far as I know , the RFQ engine involves the below functions :
1. Receive a Quote Request from client platform for a security , for certain amount.
2. Generate ... |
I am trying to learn by myself stochastic calculus, and I have a question regarding semi-martingale stochastic process and geometric Brownian motion (GBM).
We know that a stochastic process $S_t$ is said to follow a GBM if it satisfies the following stochastic differential equation (SDE): $\textrm{d}S_t = \mu_t S_t ... |
Usually, there is only one vol surface (I have never seen or heard of anyone using two). Almost certainly the most advanced commercially available vol surfaces are built by [voladynamics](https://voladynamics.com). They also offer only one surface for each underlying as well.
Even for interest rates, most of the t... |
[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/3xF93.png
Where:
P_F: Current value of the floating rate bond
D : Duration of the floating rate bond
R_F: Interest rate of the floating rate bond
R_I: Interest rate of the fixed-rate bond
P_I: Value of the fixed-rate... |
How to express the price of an FRN using its duration and interest rate difference? |
I'm having an issue with calculation of dividend adjusted prices as I have some mismatches with adjusted prices on other data sources.
For example, here is a day when dividend ex_date of IBM happened:
2023-08-09
Close (as traded) - 142.49
Dividend - 1.66
Previous day:
2023-08-08
Close... |
[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/3xF93.png
Where:
$P_F$: Current value of the floating rate bond
$D$ : Duration of the floating rate bond
$R_F$: Interest rate of the floating rate bond
$R_I$: Interest rate of the fixed-rate bond
$P_I$: Value of the ... |
This is important for traders.
What I'm really asking is how do we ascertain if vomma is being valued correctly by the market?
and for the fly, fair fly value will be a combination of risk reversal gamma and vol gamma. But again, how can we analyse that and decide to go long or short? |
These three sources all say that the bond roll-down effect is negative if the bond is trading at a premium:
- https://www.investopedia.com/terms/r/rolldownreturn.asp
- https://corporatefinanceinstitute.com/resources/fixed-income/rolling-down-the-yield-curve/
- https://www.wallstreetoasis.com/resources/skills/fina... |
These three sources all say that the bond roll-down effect is negative if the bond is trading at a premium:
- https://www.investopedia.com/terms/r/rolldownreturn.asp
- https://corporatefinanceinstitute.com/resources/fixed-income/rolling-down-the-yield-curve/
- https://www.wallstreetoasis.com/resources/skills/fina... |
This is important for traders.
What I'm really asking is how do we ascertain if vanna (or dvegadspot) is being valued correctly by the market?
and for the fly, fair fly value will be a combination of risk reversal gamma and vol gamma. But again, how can we analyse that and decide to go long or short? |
When building Quantlib from source there used to be an --enable-indexed-coupons flag option. This was an override for the default 'par coupon' setting which came with the standard Quantlib installation at the time. Has this flag been deprecated in newer Quantlib releases (i.e. 1.30 onwards)? It doesn't seem to have any... |
The paper says the reservation bid/ask prices are the quotes in "the setting where no trading is allowed." I interpret this to mean "no competition." By taking the average of the bid and ask prices, you get an ideal mid-price for the market maker based on their inventory and their risk tolerance. Quoting symmetrically ... |
I think it just means the implied repo rate is higher than the actual repo rate. Explanation: if you are long bonds and short futures, what do you have? Well assuming that the bond is the CTD and the net basis is zero, then your economics are zero after the futures has expired since you just deliver the bond. All you ... |
this is probably a naming issue - but i am totally confused as the documentation is never clear. I understand well what a generic TBA is, what is a "STIP"? is it also a form of TBA? One doc I read, said - you can also get Specific TBAs (i.e a Spec Pool forward), is that true (assume bilateral mkt provides what I ask fo... |
TBA - what is and isn't a TBA? (help please) |
When estimating various risk measure like `VaR` a good amount of times series data is required. Somethings it happens that sufficient data may not available of identified risk factor. In that case some dummy/proxy time series is used.
I wonder if there is any regulatory mandate which defines a floor on estimated cor... |
Im looking at a call butterfly spread where i am long one ITM and OTM call option, and short two ATM call options. Also i have a time spread where i am long December put and short November put.
Now lets say implied volatility goes up. I have read online that delta increases for the OTM one but decreases for the ITM... |
How does implied volatility affect delta and gamma for different spreads? |
In the context of derivatives pricing, what are Pillars and Marking? |
I wanted to make sure my calculation of the US treasury note/bond price is correct. Since T-notes and bonds pay coupons twice a year, let
\begin{eqnarray}
F &=& \rm{face\_value} = 100 \\
y &=& \frac{ \rm{yield} }{ 2 } \\
c &=& \frac{ \rm{coupon\_rate} }{ 2 } \\
n &=& 2 \cdot \rm{maturity\_years} \\
a &=& \frac{... |
I'm a bit at loss after trying to find papers regarding tail risk for electricity markets. There doesn't appear to be a whole lot of literature (or perhaps I haven't managed to find it) regarding modelling VaR/ES for price processes that can turn negative.
A few I have found mentions that they do ARMA-GARCH models ... |
I don't know if this is the right place (at most they will close the post). Anyway, I am trying to implement the characteristic function of the Heston Wishart Stochastic Volatility model illustrated in the work of [Da Fonseca, Grasselli and Tebaldi [2008]][1] in order to use Fourier transform methods
The characteri... |
I don't know if this is the right place (at most they will close the post). Anyway, I am trying to implement the characteristic function of the Heston Wishart Stochastic Volatility model illustrated in the work of [Da Fonseca, Grasselli and Tebaldi [2008]][1] in order to use Fourier transform methods
The characteri... |
I don't know if this is the right place (at most they will close the post). Anyway, I am trying to implement the characteristic function of the Heston Wishart Stochastic Volatility model illustrated in the work of [Da Fonseca, Grasselli and Tebaldi [2008]][1] in order to use Fourier transform methods
The characteri... |
Let’s say I have a swap portfolio and a vector of Par sensitivities (DV01‘s) for N nodes of a curve. Let’s call the vector P = (P_1,…,P_N). To derive the sensitivities w.r.t zero rates, we could of course do this numerically via bump and reprice or some jacobian transformation. Let’s call this Z = (Z_1,…,Z_N). Without ... |
Sorry I misundertood the question - you're just looking for VaR/ES, not option pricing.
Suppose you have a series of historical prices $P_t$, indexed by time, and the current price $P_\mathrm{now}$, and we want to see what the price would become if the price now had changed similarly to how it changed for each obser... |
I know that coupons in the phoenix option can be received in each observation date if the underlying price in that date does not touch down the knock in barrier and receiving periodic coupons is independent with each other.
Could I understand the pricing in this way?
phoenix option = snowball option with zero coupon ... |
Could a phoenix option be split into a snowball option with zero coupon plus expectation of coupons received in knock out observation dates? |
I know that coupons in the phoenix option can be received in each observation date if the underlying price in that date does not touch down the knock in barrier and receiving periodic coupons is independent with each other.<br/>
<br/>
Could I understand the pricing in this way?<br/>
phoenix option <br/>= snowball op... |
I know that coupons in the phoenix option can be received in each observation date if the underlying price in that date does not touch down the knock-in barrier and receiving periodic coupons is independent with each other.<br/>
<br/>
Could I understand the pricing in this way?<br/>
phoenix option <br/>= snowball op... |
I know that coupons in the phoenix option can be received in each observation date if the underlying price in that date does not touch down the knock-in barrier and receiving periodic coupons is independent with each other.<br/>
<br/>
Could I understand the pricing in this way?<br/>
phoenix option <br/>= snowball op... |
Could a phoenix option be priced by a snowball option with zero coupon plus expectation of coupons received in knock out observation dates? |
I know that coupons in the phoenix option can be received in each observation date if the underlying price in that date does not touch down the knock-in barrier and receiving periodic coupons is independent with each other.<br/>
<br/>
Could I understand the pricing in this way?<br/>
phoenix option <br/>= snowball op... |
I know that coupons in the phoenix option can be received in each observation date if the underlying price in that date does not touch down the knock-in barrier and receiving periodic coupons is independent with each other.<br/>
<br/>
Could I understand the pricing in this way?<br/>
phoenix option <br/>= snowball op... |
What does hollow green, full green, hollow red, full red candlesticks represent in the following chart? I know red candlestick appear when closing price is lower than opening price of the stock and green candlestick appear when closing price is higher than the opening price.
[![Candlestick chart][1]][1]
... |
Sorry I misundertood the question - you're just looking for VaR/ES, not option pricing.
Suppose you have a series of historical prices $P_t$, indexed by time, and the current price $P_\mathrm{now}$, and we want to see what the price would become if the price now had changed _similarly_ to how it changed for each obs... |
Let’s say I have a swap portfolio and a vector of Par sensitivities (DV01‘s) for N nodes of a curve. Let’s call the vector P = (P_1,…,P_N). To derive the sensitivities w.r.t zero rates, we could of course do this numerically via bump and reprice or some jacobian transformation. Let’s call this Z = (Z_1,…,Z_N). Without ... |
Suppose you have a series of historical prices $P_t$, indexed by time, and the current price $P_\mathrm{now}$, and we want to see what the price would become if the price now had changed _similarly_ to how it changed for each observation the past. To get basic historical VaR/ES, you rank the P&L's from all these simula... |
Can anything be said on how a parallel shift in the forward curve affects the forward swap curve?
The question arises from looking at a calibrated LMM model vol skew which provides an estimate of the vol surface following a parallel shift in the forward curve.
To be more concise, Say we have a model estimate of... |
I am looking for some good materials to understand the calculation methodologies, regulatory requirements etc. on `RNiV`.
I am particularly interested on following scenario:
Let say we have some instrument for which we need to estimate `Expected shortfall` (or, may be some other risk measure). Say, it has risk f... |
I am looking for some good materials to understand the calculation methodologies, regulatory requirements etc. on `RNiV`.
I am particularly interested on following scenario:
Let say we have some instrument for which we need to estimate `Expected shortfall` (or, may be some other risk measure). Say, it has risk f... |
I'm struggling with the best way to approach bootstrapping out a SOFR curve using SOFR 1m and 3m futures. Theoretically, unless I'm wrong, there should be a way to price out the expected overnight rate daily for the next year or so using both futures.
The 1m future settles into the arithmetic average of the overnigh... |
I’m looking at the change in market cap $m_{t} - m_{t-i}$ for index constituents over a fixed time period ($i$ years). How would you beta adjust this change in market cap? If I take the average $\beta_{i}$ over the $i$ years, how do I then get a beta adjusted market cap change?
Thanks! |
I am looking for some good materials to understand the calculation methodologies, regulatory requirements etc. on `RNiV`.
I am particularly interested on following scenario:
Let say we have some instrument for which we need to estimate `VaR`. Say, it has risk factor `X`. In the construction of the time series fo... |
Question 1:
You can see Bloomberg EUR/USD page in the annex
EUR 3 months yield=3.9412
US 3 months yield= 5.6683
Spot Rate: 1.0580
How does it find FX swap rate as 1.062732?
[![enter image description here][2]][2]
Question 2:
The last column in this picture is "**Basis spread**", is this **FX swa... |
How to Bloomberg compute the implied Yield ? What is FX swap basis spread? |
Can anything be said on how a parallel shift in the forward curve affects the forward swap curve?
To be more concise, say we have a model estimate of the implied vol for the 2Y-10Y point (2Y expiration, 10y term) of the vol surface following a parallel shift in the forward curve, can I say anything about what the ... |
Question 1:
You can see Bloomberg EUR/USD page in the annex
EUR 3 months yield=3.9412
US 3 months yield= 5.6683
Spot Rate: 1.0580
How does it find FX swap rate as 1.062732?
[![enter image description here][2]][2]
Question 2:
The last column in this picture is "**spread**", is this **FX swap basi... |
**Question**:
Suppose we are in a market where there are only two zero coupon bonds, both with a face value of 100: the first one with a maturity of one year and a price of 90, and the second one with a maturity of two years and a price of 40.
I would like to know if this market is free of arbitrage opportunities. ... |
Question 1:
You can see Bloomberg EUR/USD FXFA\<go\> page attached below
EUR 3 months yield=3.9412
US 3 months yield= 5.6683
Spot Rate: 1.0580
How does it find FX swap rate as 1.062732?
[![enter image description here][2]][2]
Question 2:
The last column in this picture is "**spread**", is this *... |
How to find the expression for the SDF and solve this exercise? |
I am building a monte carlo based on the GMB, and I am having a hard time understanding why we subtract 1/2 variance from the drift. If I have a drift of 12% and a volatility of 50%, that would give me "mean" drift of -.24% based on this. That doesn't make sense to me. If I am expecting the asset to drift higher then d... |
Suppose we are interested in testing the CAPM using the [GRS test][2]. Consider $N$ assets observed for $T$ time periods. Using the notation of Cochrane ["Asset Pricing"][1] (2005), the GRS test amounts to running $N$ time series regressions of the form
$$
R^{ei}_t=\alpha_i+\beta_i f_t+\varepsilon^i_t \tag{12.1}
$$
... |
What quantities (means, betas) must be constant over time for the GRS test to be valid? |
I assume you are talking about this:
$dS_t = \mu S_t dt + \sigma S_t dW_t$
with the solution to the SDE above given as:
$S_t = S_0 exp((\mu - \sigma^2/2)t + \sigma W_t)$
The drift is the $\mu$ term above and I guess when you say "mean drift" you are referring to $\mu - \sigma/2$? The "mean drift" is actuall... |
I am interested in testing the CAPM using the [GRS test][2]. Consider $N$ assets observed for $T$ time periods. Using the notation of Cochrane ["Asset Pricing"][1] (2005), the GRS test amounts to running $N$ time series regressions of the form
$$
R^{ei}_t=\alpha_i+\beta_i f_t+\varepsilon^i_t \tag{12.1}
$$
and testi... |
Have u tried this? - i can get it to work on VS Code
clang++ -O2 -std=c++17 -I/Users/XXXX/YYYY/libtensorflow-cpu-darwin-x86_64-2.14.0/include -I/opt/homebrew/Cellar/quantlib/1.31.1/include -I/opt/homebrew/Cellar/boost/1.82.0_1/include main.cpp -c
clang++ -L/Users/XXXX/YYYY/libtensorflow-cpu-darwin-x86_64-2.14.0... |
I know that coupons in the phoenix option can be received in each observation date if the underlying price in that date does not touch down the knock-in barrier and receiving periodic coupons is independent with each other.<br/>The phoenix option here refers to one underlying stock. <br/>
<br/>
Could I understand the... |
I know that coupons in the phoenix option can be received in each observation date if the underlying price in that date does not touch down the knock-in barrier and receiving periodic coupons is independent with each other.<br/>The phoenix option here refers to one underlying stock. <br/>
<br/>
Could I understand the... |
I know that coupons in the phoenix option can be received in each observation date if the underlying price in that date does not touch down the knock-in barrier and receiving periodic coupons is independent with each other.<br/>The phoenix option here refers to one underlying stock. <br/>
<br/>
Could I understand the... |
I know that coupons in the phoenix autocall can be received in each observation date if the underlying price in that date does not touch down the knock-in barrier and receiving periodic coupons is independent with each other.<br/>The phoenix autocall here is simplified to one underlying stock. <br/>Also, the coupon bar... |
Could a phoenix autocall be priced by a snowball option with zero coupon plus expectation of coupons received in knock out observation dates? |
What does the level of put call ratio of SPX tells you about the impending S&P 500 movement? |
I implemented and tested the Corwin Shultz method of liquidity calculation from High and low prices as follows:
Paper: https://www.scielo.br/j/bar/a/DbHB3rhpfgr8f6qRFKPSMhG/?format=pdf&lang=en
def calculate_corwin_schultz(ohlc_df): # Code written based on Corwin & Schultz (2011) for details: https://www.scielo... |
I implemented and tested the Corwin Shultz method of liquidity calculation from High and low prices as follows:
Paper: https://www.scielo.br/j/bar/a/DbHB3rhpfgr8f6qRFKPSMhG/?format=pdf&lang=en
def calculate_corwin_schultz(ohlc_df): # Code written based on Corwin & Schultz (2011) for details: https://www.scielo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.