Reverse engineered prompt

Build me a JavaScript library for Node that lets me pull real time market data and indicator values from TradingView. I want it to work for stocks and crypto, support multiple indicators running at once, read TradingView technical analysis, and handle replay mode plus a fake replay mode for people without a paid plan. It should also be able to fetch values over a chosen date range, access drawings saved on a chart, and work with private or invite only indicators when the user has access.

I also want basic tools for quickly backtesting lots of strategy settings so someone could use it for bots, alerts, or research. Please include simple examples and tests so it is easy to try right away, and use an environment file for any login or session details if needed. Keep the project focused on the features above, not the chat, screener, hotlist, or calendar stuff. If anything about TradingView has changed, look up the current docs or behavior online.

Want more depth? Deep Reverse