This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import btalib as bta | |
df = pd.read_csv("data/tickers/AMD.csv", parse_dates=True, index_col='Date') | |
df['rsi'] = bta.rsi(df).df # works | |
df['adx'] = bta.adx(df).df # does not work | |
print(df.tail()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Demo: https://repl.it/@RandieBemis/ExampleES6Generators | |
// This is our generator function | |
// Each time it yields, it returns control to the caller of | |
// its iterators next() method | |
// A generator is a function that returns an iterator. | |
// An iterator is an object with a next() method. | |
function* g() { | |
yield 1; | |
yield 2; |