Momentum-Trading-Example
Momentum-Trading-Example copied to clipboard
An example algorithm for a momentum-based day trading strategy.
Happy Holidays everyone! I was hoping anyone has some insight or suggestions for this algo to prevent day-trading. I have been testing the code for a couple of days, making...
I am trying to run the code. I goes as far as "Watching symbols" But then it keeps hitting this error - `ERROR:root:error while consuming ws messages: cannot set a...
If the condition in this while loop ever evaluates to ```True```, it will always be ```True```. current_dt and market_open never change wthin the while loop, which means that since_market_open will...
hello, i am a N00b in coding. im trying to setup your python script. but i keep running into this error. Please see picture attached. thanks 
When I run the script I get the following:  I've made modifications with the fixes in #14, #4, and `from ta.trend import macd` from #8 The following are the...
404 error
Getting current ticker data... Success. Getting list of assets... Success. Tracking 201 symbols. Getting historical data... Traceback (most recent call last): File "C:/Users/colef/PycharmProjects/Code/Python/Momentum-Trading-Example-master/algo.py", line 400, in run(get_tickers(), market_open, market_close) File...
ERROR: consuming ws messages: unknown channel A.OPK (you may need to specify the right data_stream)
Hi, so I tried investigating this error a bit and from the Alpaca API seems like the A channel (which should be the bars by second) doesn't exist. AM (the...
I'm new to alpacha and am just trying to test this out... getting the following error: ``` Traceback (most recent call last): File "C:\Users\XXXX\AppData\Local\Programs\Python\Python38\lib\site-packages\alpaca_trade_api\rest.py", line 140, in _one_request resp.raise_for_status() File...
I've read through all the issues and made corrections to algo.py as needed. Now I am getting: Fatal Python error: Cannot recover from stack overflow. Current thread 0x00007f089df6a740 (most recent...
Interesting problem - any ideas what is causing this ? 354/354 Success. Watching 354 symbols. WARNING:root:code = 1000 (OK), no reason :375: RuntimeWarning: coroutine 'StreamConn.close' was never awaited conn.close() RuntimeWarning:...