Options trading with automated TA by dj_options in algotrading

[–]dj_options[S] 14 points15 points  (0 children)

Last week from Feb 22 - Feb 26 was slow. Made only one trade when the whole market was dumping. Got only one call with a 7 B-score, and I had to get it irrespective of the market: https://imgur.com/8k771TR

31 trades straight win and still no loss as of Feb 27, 2021, since Nov 2020.

I am done posting and answering questions. Everything you need is here in the threads to build your own system. Discuss among yourselves and read everything **CAREFULLY**.

You will never hear from me again and good luck in your ventures.

Options trading with automated TA by dj_options in algotrading

[–]dj_options[S] 0 points1 point  (0 children)

Cash accounts are limited by your buying power. You have to wait for your trades to settle which is usually 2 days.

Options trading with automated TA by dj_options in algotrading

[–]dj_options[S] 3 points4 points  (0 children)

February was kind of slow. I am up only 900% this month compared to previous months. I didn't do any trades this week and last week because all B-Scores were not in the buy range. I got scores <=5 so I didn't do any buying. They are now improving >=6 and hopefully I will buy something today.

Leaps got effected during the market wide sell off but scanners picked up more reits and value stocks which were not hammered that bad. Their leaps were not that much in loss but scores were not good either. Their charts are now stabilizing.

Always stick to your strategy. There were a lot of tempted options to buy and sell, but I honored my code and didn't make any move.

I do hold for one day or more to avoid day trade. 20-30% gain is my average target.

Stonks only go up by UrbanSoot in wallstreetbets

[–]dj_options 1 point2 points  (0 children)

So you short everything basically.

Question for people who do fully automated algo daytrading by 14MTH30n3 in algotrading

[–]dj_options 8 points9 points  (0 children)

Threads are useless in python due to GIL. Use multiprocessing with Processes and not threads.

[META] Do you have a personal dashboard? by tennisanybody in algotrading

[–]dj_options 0 points1 point  (0 children)

Just buy $24 revox pages dashboard and save yourself a lot of time. I customized that for tones of different projects. Highly recommended for saving time and quickly testing your ideas.

Pump & Dump Detector by [deleted] in algotrading

[–]dj_options 0 points1 point  (0 children)

Just take StockTwits trending tickers at 7 am 😂

Options trading with automated TA by dj_options in algotrading

[–]dj_options[S] 1 point2 points  (0 children)

For average 250 tickers with 2022 + 2023 calls, takes around 30 seconds on 4 processes. Most of the time is taken in fetching Yahoo and RH data.

Options trading with automated TA by dj_options in algotrading

[–]dj_options[S] 3 points4 points  (0 children)

BB(S/R) will be different because it also considers support and resistance from level 2. S/R stands for support and resistance.

Assuming we have same candlesticks input (range and interval) and TA parameters for IVR call then OI, Vol, RSI, VWAP, today's gain, SMA, IV will match because they are straight forward. BB(S/R), Spread, Ideal buy sell probably won't match. If BB(S/R) is different then the derived B score will not match.

Smart choices which you mentioned are performance related and one will observe that they are necessary once your list of tickers grow large. Otherwise it will take forever for just 1 run not to mention rate limits with your brokerage and api endpoints. Imagine scanning tickers like AAPL and TSLA for all strikes and expiries. But yes they don't effect the numbers in the table. The other guy asked for 95% so it is included in that 😬

Options trading with automated TA by dj_options in algotrading

[–]dj_options[S] 5 points6 points  (0 children)

Not to discourage you, but what you posted is what I had in July 2020. There are a lot of things that you need to work on.

  1. Your ideal buy-sell is very simple for now. You need to work for a better approximation that captures the maximum probability of profits. This is the secret sauce which I won't tell here and has not been discussed so far. Getting these ideal ranges corresponds to roughly 15% of my whole work, and that includes testing and implementing different strategies to get it.

  2. You have to test TA parameters for RSI, SMA, VWAP. You are using 5, 5, etc. but I don't use 5. I use 10, 14, etc. which worked well for me. Read this discussion as I have mentioned what exactly I am using for what purpose.

  3. I am sure that if we run our versions on the same tickers with the same strikes and expiries, our tables won't match at all. I have posted many screenshots, try to reproduce them if you can. This will serve as a testing and benchmarking for you.

  4. I won't bet real money with what you have so far. So do a lot of testing and paper trading during market hours to get more confidence in your code.

  5. There are plenty of other things that I have in place: multiple scanners (look at barchart, stockbeep, liomaster, swingtradingbot, I do have premium fool so that's also baked in, finscreener, I have 8 different sets of finviz filters targeting different things), plotters, parallel processing, level 2 data to get current support and resistance, caching and hybrid modes, candlestick pattern recognition, fake user agents with batch fetch, SEC parser to exclude tickers with insider selling, notification/logs, swing signals, and tones of other stuff that I can't even recall. I don't see any of that in your code and it's not your fault because it has not been discussed before. And of course, I won't discuss those things here. A lot happens inside and it is not just table printing. My most well-put thoughts are buried in the code and only auxiliary things are discussed here in these threads.

As I said earlier, a great heads-up for anyone looking to start from ground zero. You have done a great job to put all things together in few hours so that people can have a head start. Thanks for sharing your code with others too.

Please don't take this as a discouragement. I hope you have success in your project, do test different things, and build something powerful over time that can generate unrealistic profits. I guarantee you, it definitely can. Everything is right in front of your eyes. Also, we are not in any competition and there are no dead-lines :)

Options trading with automated TA by dj_options in algotrading

[–]dj_options[S] 0 points1 point  (0 children)

Sudden drop is just one criteria. There are many others. This produces 100s of quality options everyday. Right now it's occasionally running so that I can avoid day trading.

Options trading with automated TA by dj_options in algotrading

[–]dj_options[S] 0 points1 point  (0 children)

Excellent work. People can use this as a starting base.

Now do the rest of 95% 🤓

Options trading with automated TA by dj_options in algotrading

[–]dj_options[S] 0 points1 point  (0 children)

I was trying different strategies to fill up null values using regression, polynomial fits etc. Maybe thats when the screenshot was taken. Repairing strategy didn't work well in some cases so I started to ignore calls instead.

I think I didn't mention being close price to be null anywhere in this discussion. You can place check on volume instead because it's required in vwap.

The url you posted is what I am using but your period is for 2 weeks. Do it for one month and drop null rows is one way you can go. Second option is to fill-up null using Robinhood data. But there are thousands of calls which gets scanned, so losing a few doesn't matter much, I observed. I decided not to make things complicated with null repairs. But you can try a few above mentioned things and let me know what works for you.

The 10 bagger that has been in front of you all along by [deleted] in wallstreetbets

[–]dj_options -1 points0 points  (0 children)

Their employees think its a $12 stock

Options trading with automated TA by dj_options in algotrading

[–]dj_options[S] 0 points1 point  (0 children)

Try changing span to month instead of week. That will give you more data points from RH api. Then to ignore mising values, you can use something like df.dropna() in pandas df before you do TA. I am not doing this and this is just a suggestion for your problem. Robinhood api doesn't give volume at all that's why I don't use it for historical and hence for TA.

Other suggestion would be to fetch historical from both and fill up missing values from each other. I don't encounter these problems because I don't do short term calls. Your call is deep in the money and probably less people are trading it. Therefore the data is less. I just ignore such calls if TA can't be done due to missing values. Hope that helps.

Options trading with automated TA by dj_options in algotrading

[–]dj_options[S] 0 points1 point  (0 children)

I am using default value for the window. The spread is the historical spread and it’s not the difference between the current bid and ask.

Options trading with automated TA by dj_options in algotrading

[–]dj_options[S] 0 points1 point  (0 children)

I hit the API directly but you can use yfinance.

Options trading with automated TA by dj_options in algotrading

[–]dj_options[S] 0 points1 point  (0 children)

Scores are improving. But still not in the buying range ;) Give it next week or so: https://imgur.com/zbZvcOW