Trend-Following Pine Script Automation

Job ID: 40063349

Budget: ₹1,500 – ₹12,500 INR

I need a Pine Script that will run on TradingView and automatically trade a simple trend-following strategy. The logic should combine RSI and MACD to decide entries and exits, then fire alerts that I can route to my broker for execution.

Here’s what I have in mind:
• When MACD crosses above its signal line and RSI is above a configurable threshold, open a long position.
• When MACD crosses below its signal line and RSI drops under the threshold, close the long (or open a short if the code can easily support both directions).
• Everything—including RSI periods, MACD fast/slow/signal lengths, and alert messages—should be adjustable from the script’s settings panel so I can tweak the strategy without editing code.

For deliverables I just need the finished, commented .pine file along with a brief note explaining how to attach the alerts. If you’ve built similar automated strategies on TradingView before, I’d love to see an example so I know the style matches what I’m after.