The bot should close trades automatically exactly according to the trend line. In other words, if the line is red, the bot should automatically enter a short position; if the indicator shows a gray bar, it should exit the position and wait until the colored trend line reappears. If the line is green, it should enter a long position and exit when the line turns gray again. The whole process should work on the same principle as the LNL indicator on TradingView. It should function similarly to the LNL indicator, but the visual interface can be simpler, as in the attached file. It should operate on all timeframes. It should include risk management, allowing the user to specify a percentage of the account to risk. Additionally, it should allow manual exit from a position if needed, without the bot re-entering the position. It would be advantageous to include options for setting a stop-loss and take-profit, but only like optionally parameter. Lastly, it would be beneficial for the bot to trade only during a specified time window, preferably allowing the user to choose the duration. https://www.tradingview.com/script/m0G2Xv7r-LNL-Trend-System/