Skip to content
#

technical

Here are 150 public repositories matching this topic...

dorienh
dorienh commented Apr 12, 2021

This may just be a problem with data, but I am getting blown up sortino ratios. I thought they had to be much smaller.

For instance:

import yfinance as yf 

msft = yf.Ticker("ETH-USD")

def getSortino(h, p):
  sh = []
  for i in range(0, len(h)):
    if i > p:
      a = h['Close'].iloc[i-p:i]
      sh.append(ta.sortino_ratio(a))
    else: sh.append(0)

  return sh

Improve this page

Add a description, image, and links to the technical topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the technical topic, visit your repo's landing page and select "manage topics."

Learn more