peerchemist / finta

Common financial technical indicators implemented in Pandas.
GNU Lesser General Public License v3.0
2.13k stars 688 forks source link

ROC does not respect column name #94

Closed ppawel closed 4 years ago

ppawel commented 4 years ago

TA.ROC(TA.SMA(data).to_frame(name="sma"), 10, "sma") results in KeyError: 'close'.

Custom column name sma in the above example is not respected - close seems to be hard-coded in the ROC implementation.