Momentum-Trading-Example
Momentum-Trading-Example copied to clipboard
An example algorithm for a momentum-based day trading strategy.
Changed macd import to Class Based due to changes in ta module. https://technical-analysis-library-in-python.readthedocs.io/en/latest/ta.html#ta.trend.MACD
Added into the readme: - a project description explaining the base Alpaca API and the outline of this particular trading strategy - Resources for the user to further their personal...
Hi, In **Momentum-Trading-Example**, inappropriate dependency versioning constraints can cause risks. Below are the dependencies and version constraints that the project is using ``` alpaca-trade-api>=0.25 ta sklearn ``` The version constraint...
update this sample code to use the alpaca data v2 API
Instead of hardcoding secure information in the script, make it available through the environment variables, which is the suggested method described in Alpaca document guidelines.
#40 I'm getting the above error when running this version of the code.
I think that "from ta import macd" needs to change to "from ta.trend import macd" because of an update.

can we have the code updated given that Polygon is now gone/deprecated ?
 please give the solution for this problem.