Skip to content Skip to sidebar Skip to footer
Showing posts with the label Quantitative Finance

How To Calculate Volume Weighted Average Price (vwap) Using A Pandas Dataframe With Ask And Bid Price?

How do i create another column called vwap which calculates the vwap if my table is as shown below?… Read more How To Calculate Volume Weighted Average Price (vwap) Using A Pandas Dataframe With Ask And Bid Price?

How To Apply The Hurst Exponent In Python In A Rolling Window

I am trying to apply the Hurst Exponent on SPY closing prices on a rolling window. The below code (… Read more How To Apply The Hurst Exponent In Python In A Rolling Window

Pandas P&l Rollup To The Next Business Day

I'm having a hard time trying to do this efficiently. I have some stocks and daily P&L info… Read more Pandas P&l Rollup To The Next Business Day