Momentum-Trading-Example icon indicating copy to clipboard operation
Momentum-Trading-Example copied to clipboard

An example algorithm for a momentum-based day trading strategy.

Results 28 Momentum-Trading-Example issues
Sort by recently updated
recently updated
newest added

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 ![error](https://user-images.githubusercontent.com/78063508/105939086-7a313100-6026-11eb-9193-98a01fe49562.PNG)

When I run the script I get the following: ![image](https://user-images.githubusercontent.com/53151058/95901320-2b0a0d80-0d61-11eb-8193-ba8ccc2e27e5.png) I've made modifications with the fixes in #14, #4, and `from ta.trend import macd` from #8 The following are the...

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...

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:...