指定
Hello, I would like 2 things, an RSI indicator (on TradingView [PineScript language]) + integration of that RSI into TD Ameritrade (ThinkorSwim) using Python if possible.
1. TradingView: Using the PineScript scripting language, I need an RSI indicator that will paint a symbol on the chart and issue an alert (sent to TradingView mobile app).
For example, if RSI is over 80 or under 20 on the 5min chart on the S&P500, then issue alert sent to text message AND email (using TradingView API) and paint a sell/buy symbol on chart (non-repainting).
On top of the RSI, I would like for the developer to add a 2nd confirmation for Simple Moving Average 50 period, before it places alert (above or below moving average line, confirmation bias).
Lastly, the indicator should have the option to select a setting to factor in a higher timeframe confirmation bias.
2. Then, I need to integrate this into TD Ameritrade (Thinkorswim) using Python. When an alert is produced, send it to a TD Ameritrade demo account to open a STOCK OPTIONS trade in that direction ATM. I will have the Python program running on a VPS server 24/7 for functionality. TD Ameritrade will require authorization with each session, so might need knowledge of Selenium to simulate access into user account data.
Might want to use Jupyter for a web-based computing interface.
The second part is a little more complicated since have to deal with TD Ameritrade's API, so if I can get the 1st part done first that would be great! I would also prefer to have at least the 1st part done by Monday of next week.