Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import talib
- close = raw_dataset['Close','AAPL']
- high = raw_dataset['High','AAPL']
- low = raw_dataset['Low','AAPL']
- dataset = raw_dataset['Close']
- indicators_df = pd.DataFrame()
- indicators_df['close'] = close
- indicators_df['rsi'] = talib.RSI(close, timeperiod=14)
- indicators_df['aroon'] = talib.AROONOSC(high, low, timeperiod=30)
- indicators_df['ema'] = talib.EMA(close, timeperiod=100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement