If you're using a bot/auto trade, why would you need to draw a support/resistance line? I don't recall any bot/tools that do that. Most of them use algorithms with technical indicators (calculation only) without presenting any graph, probably just a bollinger band.
I tried to search on the internet and found several codes that might be interesting for you, such as
https://github.com/albertsl/support-resistance_trading-bot or
https://quivofx.com/expert-advisor/big-breakout-ea/. Keep in mind that I never tried them myself, please do your own research.