Robinhood Trading Automation
Budget: $30 – $250 USD
I am looking to get a quote for building a Robinhood Trading bot using AutomationAnywhere or UIPath
Some notes regarding the Trading bot -
1. Should execute on a scheduled basis (every 5 or 10 minutes)
2. Schedule frequency should be easily configurable
3. The bot should provide for storing the credentials of Robinhood Account
Here's the Algorithm for the Trading Bot -
1. Login to Robinhood using the stored credentials
2. Get the list of all the positions under Header = “Options”
3. Loop over the list of Option Positions identified in Step 2 and make a list of only those Option positions where
a. Type = "Call"
b. Expiration Date is within next 45 days
4. Click on every Option position identified in the above list after Step 3
5. For every Option Position identified in Step 3 above, if Total Return (in percentage) IS GREATER THAN 50% THEN
1. Get the Stock Ticker symbol from the Option Position Name and store it in a variable
2. Get the Expiry Date from the Option page and store it in a variable
3. Click on “View All Options” button
4. Click on “Buy” and “Call” buttons
5. Select a value from the “Expiring” dropdown. The value should match with the expiration date of the Call option position
6. You will now see a table with 6 columns displayed below
7. Scroll to the Row where value in the “Strike Price” column matches the Strike Price mentioned in the Call option position
8. Click on the button in “Price” column of the table of the row matched in above step.
9. Click on “Sell” button
10. Get the Today’s Date
11. Add 30 days to Today’s date and determine what is Today + 30 days
12. Select an option from the “Expiring” dropdown such that the Selected Date from the dropdown > Today + 30 days
13. You will now see a table with 6 columns displayed below
14. Open this website - https://www.barchart.com/stocks/quotes/[Stock Symbol from Step 5.1]
15. Enter the Stock symbol in the Search bar on Barchart.com website
16. Get the number shown against the text - “Pivot Point 3rd Level Resistance”
17. Open the website - https://www.stockconsultant.com/consultnow/basicplus.cgi?symbol=[Stock Symbol from step 5.1]
18. Scroll down on the page where there is a section named - “Support and Resistance Areas”
19. Scroll down within the section where it says - “RESISTANCE ABOVE” in the “Support and Resistance Areas” section
20. Get the 2 Numeric values mentioned in the first line after the text “RESISTANCE ABOVE” ( for e.g. Numeric value = 118.24 ± 1.42)
21. Sum the 2 numeric values (for eg 118.24 + 1.42 = 119.66)
22. Compare the numbers obtained from step 5.16 and step 5.21 and determine the higher number
23. Switch the Tab back to Robinhood
24. Scroll to the Row where value in the “Strike Price” column IS GREATER THAN the Number determined from Step 5.22
25. Click on the Row, a Section expands under the Row and shows more details about that Row
26. Get the value below the text - “Delta”
27. If the value obtained in Step 5.26 above is <0.30 then proceed to Step 5.31 below else proceed to Step 5.28
28. Click on the Row again, the expanded section will close
29. Click on the Row which is right above the row which was just closed in 5.28, a Section expands under the Row and shows more details about that Row
30. Go to Step 5.26
31. Click on the Row, the expanded section will close
32. Click on the button in “Price” column of the table of the row matched in above step.
33. Click on “Continue” button
34. Click on “Review Order” button
35. Click on “Submit” button
36. Click on “Done” button
Some notes regarding the Trading bot -
1. Should execute on a scheduled basis (every 5 or 10 minutes)
2. Schedule frequency should be easily configurable
3. The bot should provide for storing the credentials of Robinhood Account
Here's the Algorithm for the Trading Bot -
1. Login to Robinhood using the stored credentials
2. Get the list of all the positions under Header = “Options”
3. Loop over the list of Option Positions identified in Step 2 and make a list of only those Option positions where
a. Type = "Call"
b. Expiration Date is within next 45 days
4. Click on every Option position identified in the above list after Step 3
5. For every Option Position identified in Step 3 above, if Total Return (in percentage) IS GREATER THAN 50% THEN
1. Get the Stock Ticker symbol from the Option Position Name and store it in a variable
2. Get the Expiry Date from the Option page and store it in a variable
3. Click on “View All Options” button
4. Click on “Buy” and “Call” buttons
5. Select a value from the “Expiring” dropdown. The value should match with the expiration date of the Call option position
6. You will now see a table with 6 columns displayed below
7. Scroll to the Row where value in the “Strike Price” column matches the Strike Price mentioned in the Call option position
8. Click on the button in “Price” column of the table of the row matched in above step.
9. Click on “Sell” button
10. Get the Today’s Date
11. Add 30 days to Today’s date and determine what is Today + 30 days
12. Select an option from the “Expiring” dropdown such that the Selected Date from the dropdown > Today + 30 days
13. You will now see a table with 6 columns displayed below
14. Open this website - https://www.barchart.com/stocks/quotes/[Stock Symbol from Step 5.1]
15. Enter the Stock symbol in the Search bar on Barchart.com website
16. Get the number shown against the text - “Pivot Point 3rd Level Resistance”
17. Open the website - https://www.stockconsultant.com/consultnow/basicplus.cgi?symbol=[Stock Symbol from step 5.1]
18. Scroll down on the page where there is a section named - “Support and Resistance Areas”
19. Scroll down within the section where it says - “RESISTANCE ABOVE” in the “Support and Resistance Areas” section
20. Get the 2 Numeric values mentioned in the first line after the text “RESISTANCE ABOVE” ( for e.g. Numeric value = 118.24 ± 1.42)
21. Sum the 2 numeric values (for eg 118.24 + 1.42 = 119.66)
22. Compare the numbers obtained from step 5.16 and step 5.21 and determine the higher number
23. Switch the Tab back to Robinhood
24. Scroll to the Row where value in the “Strike Price” column IS GREATER THAN the Number determined from Step 5.22
25. Click on the Row, a Section expands under the Row and shows more details about that Row
26. Get the value below the text - “Delta”
27. If the value obtained in Step 5.26 above is <0.30 then proceed to Step 5.31 below else proceed to Step 5.28
28. Click on the Row again, the expanded section will close
29. Click on the Row which is right above the row which was just closed in 5.28, a Section expands under the Row and shows more details about that Row
30. Go to Step 5.26
31. Click on the Row, the expanded section will close
32. Click on the button in “Price” column of the table of the row matched in above step.
33. Click on “Continue” button
34. Click on “Review Order” button
35. Click on “Submit” button
36. Click on “Done” button