Steinwealth/EasyTrendline ? reverse-engineered prompt

Reverse engineered prompt

Build me a TradingView strategy script for XAUUSD on the 30 minute chart that matches the Easy Trendline idea in the README.

I want it to detect trendline breakouts from pivot highs and lows, only take long trades, and filter entries with EMA 50 and EMA 200 trend confirmation plus RSI momentum. Please add ATR based stops, a breakeven move, a trailing stop, and exit rules for RSI weakness and opposite trendline breaks. Make sure the signals do not repaint and the logic only uses confirmed bars.

Please keep it simple to use in TradingView, with sensible default settings that match the README, and add helpful input settings so I can tweak lookback, RSI levels, ATR multipliers, and position sizing. If anything in the README is unclear, use the most reasonable interpretation and look up the current Pine Script docs online if needed.

Also please make the chart easy to read, with the trendlines and entries and exits clearly shown.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab