TA-Lib / ta-lib-python

Python wrapper for TA-Lib (http://ta-lib.org/).
http://ta-lib.github.io/ta-lib-python
Other
9.58k stars 1.75k forks source link

Techincal indictor question #342

Open hussanirizvi2 opened 4 years ago

hussanirizvi2 commented 4 years ago

This maybe a silly question but is there a method of using an indicator (e.g. SMA) on a variable (e.g. unemployment rate) to pridect when to buy and sell a index (e.g. sp500). I know I can use sma on the index itself but here I am trying to use a leading indicator

kwtneo commented 4 years ago

not a silly question but your economic variables are in fact usually lagged. (monthly time series vs another that has lower level of time horizon granularity). U can run backtests to see if it works of course.

hussanirizvi2 commented 4 years ago

Thanks! do you have an example of SMA on a variable (e.g. unemployment rate) being used to predict/trade on another (e.g. SP500), using TA-Lib indicators to show this?