This file contains hidden or 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
| """ | |
| Copyright (C) 2018 Interactive Brokers LLC. All rights reserved. This code is subject to the terms | |
| and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable. | |
| """ | |
| import sys | |
| from ibapi.contract import * |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| # MOMENTUM | |
| data['ADX'] = ta.ADX(data.High.values, data.Low.values,data.Close.values) | |
| data['ADXR'] = ta.ADXR(data.High.values, data.Low.values,data.Close.values) | |
| data['APO'] = ta.APO(data.Close.values) | |
| data['AROONdown'],data['AROONup'] = ta.AROON(data.High.values, data.Low.values) | |
| data['AROONdmu'] = data['AROONdown'] - data['AROONup'] | |
| data['AROONOSC'] = ta.AROONOSC(data.High.values, data.Low.values) | |
| data['BOP'] = ta.BOP(data.Open.values,data.High.values, data.Low.values,data.Close.values) | |
| data['CCI'] = ta.CCI(data.High.values, data.Low.values,data.Close.values) | |
| data['CMO'] = ta.CMO(data.Close.values) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.