-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import error: cannot import name 'macd' #32
Comments
Hey Jazz, I ran into the same issue but found an article that said ta had changed is location Use this at the top of your code instead:
|
sickk im gonna try that now, did you get your bot working? |
I believe so, I've gotten to the point where:
Just unsure if it's going to execute at all. |
Hey @Jazz905 That error has to do with the newer V2 API. To save you some time you will need to change it to this: While I would love to give you my complete code, I did alter a few things that I wish to gatekeep but these connection parts I am happy to help with.
|
Also, you can close this issue too as it's been resolved. |
no worries nick i understand, i solved that one now im getting a cannot set a row with mismatched columns errorsm btw is your trading now |
Can you submit the full error for me to see? It made a trade haha, so just seeing how it works throughout the day, my guess is there might be still some outdated parameters to go through. Trying to resurrect this repo, hopefully, the original owners see that. |
i got it to work but now its stuck at watching 198 symbols..... here my code; import alpaca_trade_api as tradeapi Replace these with your API connection info from the dashboardbase_url = 'https://paper-api.alpaca.markets' api = tradeapi.REST( session = requests.session() We only consider stocks with per-share prices inside this rangemin_share_price = 2.0 Minimum previous-day dollar volume for a stock we might considermin_last_dv = 500000 Stop limit to default todefault_stop = .95 How much of our portfolio to allocate to any one positionrisk = 0.001 #add date to imports def get_1000m_history_data(symbols):
def get_tickers(): |
Seems like we are stuck in the spot, curious if we can get it working, atleast the base algo working. |
maybe none of the stocks are hitting the rules setup for trading? |
is your code continually looping and adjusting? Mine just runs through one and then sits at watching X symbols |
@Jazz905 how you do today? Does your python script show you data throughout the whole day as it is running? |
hey nick, no man mine was just stuck at watching stock... for like hrs i did notice the stock count go down from 128 to like 100 after a few hrs, but on alpaca i dont see any trades being made, how did you do? i might have to use blueshift on alpaca to try other python scripts |
I still want to use this strategy but I think it needs more configuring then the template has. If I come across anything I'll be sure to post it. |
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
The text was updated successfully, but these errors were encountered: