Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Well, even though Im not experienced in coding I can learn. Nonetheless, if its carelessness you are worried about, then you dont have to worry because I am an experienced trader. (not that you would be worried). I just want to be able to implement this and try it out. Im sure I can adjust some things here and there. Ill ask for help if need be.I am the creator of this program, and let me tell you, if you are not familiar with programming, then you should not attempt to implement this until you have a good foundation in programming. This is an intermediate to advanced level program.
That being said, I can at least advise you on database creation for your cluster.
When you create a cluster in Mongo using the GUI, you need to click on the cluster name within your projects. Once in your cluster, there is a button that says Create Database. Click that, give your database a name, and insert some data just to temporarily fill it, and your good.
And I created a workaround for "paper trading" in the program. Read the docs in my repo at the bottom of the README in the results section.Thanks for sharing. Members probably know, but just want to post a reminder nevertheless, TD API's do not work on paper trading.
It's more of a plug and play type of program. The code is already written. You just have to handle the third party API's and configure them to your personal settings. If you follow the docs in the repo, they will guide you in the right direction. It's quite complex of a program, and only makes sense to the one who wrote it. That being said, don't hesitate to ask me questions throughout.Well, even though Im not experienced in coding I can learn. Nonetheless, if its carelessness you are worried about, then you dont have to worry because I am an experienced trader. (not that you would be worried). I just want to be able to implement this and try it out. Im sure I can adjust some things here and there. Ill ask for help if need be.
Are you basically saying the code you provided requires additional code input to complete? If so, thats fine. I just want to be able to get something going that I can come back to and build upon, If that makes any sense.
Thats perfect. If the structure is there I can fill in the rest. I appreciate you taking some time to answer my questions thank you. And thanks again for sharing your code with the community.It's more of a plug and play type of program. The code is already written. You just have to handle the third party API's and configure them to your personal settings. If you follow the docs in the repo, they will guide you in the right direction. It's quite complex of a program, and only makes sense to the one who wrote it. That being said, don't hesitate to ask me questions throughout.
The sim trader has not been set up to trade options due to the fact that it is difficult to get accurate results "paper" trading options.@kimber_da @TreyThomas673 - this is awesome, nice work.
one issue i found was that the sim_trader runTrader has conditions to check if side is BUY or SELL, but not checking for BUY_TO_OPEN or SELL_TO_CLOSE.
And one question. As far as i can tell, this is designed for a user to have only one Asset_Type, EQUITY or OPTION. So if i want to trade both Asset_Type I can not unless I use two separate TD accounts, and create two users, is it correct?
I have had several requests for this, and may consider it in the future. It would have to be a series of videos, due to the complexity and details of the program.kimber_da,
Do you have a video that will explain how to use your trading bot? That would help me and maybe some others too.
Thanks.
https://github.com/TreyThomas93/python-trading-bot-with-thinkorswimIn addition to thinkScript, can Python be used in ThinkOrSwim?
@TreyThomas673 Can you share your success thus far using this code for auto trade? I wanted to use this to trigger auto trade based on a study condition similar to conditional trades (1st trgs seq), but do it on GTC_EXT hours on all my watchlist that have buy signal based on a specific study/studies.. I would love to pick your brain on this..https://github.com/TreyThomas93/python-trading-bot-with-thinkorswim
I created this program for auto trading through TDAmeritrades API, using scanners and alerts from the Thinkorswim platform.
Hope this helps.
The results here are simulated results using the strategies developed through Thinkorswim. What makes these simulated is that these buy and sell every alert triggered and received from TOS. Unlike live trading, which limits you based on buying power. So basically you are paper trading through the program. As for live trading results, since November 2020, the program has made close to $450. This is obviously subject to be different per user based on how successful the users strategies are. My program is a mere vessel to trade through using those strategy based alerts. The past several months have been mainly debugging and enhancing the program to where it is at currently.@TreyThomas673 Can you share your success thus far using this code for auto trade? I wanted to use this to trigger auto trade based on a study condition similar to conditional trades (1st trgs seq), but do it on GTC_EXT hours on all my watchlist that have buy signal based on a specific study/studies.. I would love to pick your brain on this..
This is indeed interesting stuff. It might be possible, for those wishing to paper trade, to set up the code to use ToS Strategies, the same email setup as the original code, but route trade orders through Alpaca, for example, which has a paper trade API. Not saying this is a good idea, and if the code polls your positions via ToS it wouldn't work... but it could offer a paper trading method without having to create data pipelines and indicators in python.Thanks for sharing. Members probably know, but just want to post a reminder nevertheless, TD API's do not work on paper trading.
You would need to completely rewrite all the sections of code directly involving Mongo, which is almost the entire program.Pretty neat program. How difficult would it be to implement MySQL DB instead of MongoDB? Any recommendations on the code?
If you wanted to learn, Python is one of the easier languages to learn. I would recommend using either PyCharm or Visual Studio Code as an IDE. PyCharm has pretty much everything you need "out of the box" while VSC necessitates installing some free plugins. There are some good courses on Udemy for learning Python, but it will take an investment of time. Once you get your head around one language, subsequent languages are easier to pick up in my experience.I will ask my partner and see what he says. Like I said, I know next to nothing about code.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
what research tools can improve my trading game ? | Playground | 1 | ||
Trading Books | Playground | 0 | ||
Verniman trading style | Playground | 12 | ||
QuantConnect for Algo Backtesting & Trading | Playground | 2 | ||
C | taxes on a IRA trading account | Playground | 1 |
Start a new thread and receive assistance from our community.
useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.
We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.
If you are new, or just looking for guidance, here are some helpful links to get you started.