TradingView Setup Indicator
Publicada el 2026-07-17
Descripción de la oferta
I’m looking for a clean Pine Script that turns my two-bar setup into a fully automated indicator on TradingView. Here’s the logic the script must follow: • Short: Bar 1 closes bullish, Bar 2 breaks Bar 1’s high then closes back inside Bar 1’s range. Immediately plot a red line at Bar 2’s low and leave it there until price breaks below or a fresh setup forms. When that break occurs, fire a sell alert and draw a yellow target line at Bar 1’s low. Remove the yellow line once hit or when a newer setup overrides it. • Long: Mirror the above rules in the opposite direction. • 1R equals the distance from entry to target. I’d like an input that lets me choose whether the stop line is 1R or 1.5R away so I can toggle risk without editing code. Behaviour requirements – Lines refresh only when a brand-new setup appears, not on every candle. – Alerts are needed for both the sell/long entry and the eventual target hit. Make sure they’re standard TradingView alert() calls so I can route them to webhooks later. – Code must be written in the latest recommended Pine version, formatted and commented clearly enough for me to adjust colours, line styles, or alert text in the future. Deliverables 1. The .pine file ready to paste into TradingView. 2. A brief note explaining the user-adjustable inputs (stop multiple, colours, alert messages). 3. Confirmation that you have tested both long and short scenarios on any major market to prove the lines and alerts behave exactly as described. Once everything matches the rules above, I’ll mark the project complete.
Fuente original: freelancer