Intraday Trend-Follow and breakout Pine Script

Замовник: AI | Опубліковано: 03.02.2026

I need a well-structured Pine Script that executes an intraday trend-following strategy built on two core indicators: Moving Averages and RSI. The script should be fully parameterised (lengths, sources, thresholds) so I can tune it across several symbols without touching the code. My ideal flow is: • Clean, commented Pine v5 strategy that plots fast/slow MAs, displays RSI in a separate pane, and triggers long or short entries when MA crossover aligns with RSI confirmation. • Clear stop-loss and take-profit logic, plus the usual TradingView strategy performance metrics. • A short Python snippet that replicates the entry/exit conditions so I can run batch back-tests outside TradingView. If you already have a proven approach to real-time intraday data handling and know how to optimise Pine parameters programmatically, that’s a strong plus. I’ll consider the job complete when the script compiles without warnings, produces trade statistics consistent with the described rules, and the Python counterpart mirrors the same signals on sample CSV data.