Trading View Indicator
Budget: ₹1,500 – ₹12,500 INR
I need a Pine Script v5 indicator with the following specifications:
Previous Day Levels
• Automatically calculate and plot previous day high, previous day low, and previous day close.
• Lines must extend to the right and behave like TradingView native lines (not static layers).
• Must refresh cleanly at the start of a new session.
Breakout + Retest Logic
• Long signal when price closes above previous day high and later retests that level without breaking below it.
• Short signal when price closes below previous day low and later retests that level without breaking above it.
• Only one long and one short trade allowed per day (optional inputs for enabling/disabling).
Entry Conditions
• Entry is triggered on the retest candle.
• Draw a fixed BUY or SELL arrow on the entry candle.
• Draw optional label or highlight box around the entry candle.
Stop Loss Logic
• For buy trades, SL = previous day low.
• For sell trades, SL = previous day high.
Targets
• Compute risk = entry price minus stop loss.
• Draw three target lines at:
– T1 = entry + 1 × risk
– T2 = entry + 2 × risk
– T3 = entry + 3 × risk
(opposite direction for sell trades)
Drawing Requirements
• All targets, SL, and entry lines must extend-right and move with the chart.
• Old drawings must be deleted at the start of each new day.
• No repainting once signals are printed.
Alerts
• Alert 1: Long entry triggered
• Alert 2: Short entry triggered
General
• Must be clean, stable, and optimized so no errors regarding modifying var/line references occur.
• Must handle intraday timeframes (1 min to 15 min).
This indicator should function as a professional breakout-retest system using previous day levels with SL, T1, T2, T3 auto-computed.
Previous Day Levels
• Automatically calculate and plot previous day high, previous day low, and previous day close.
• Lines must extend to the right and behave like TradingView native lines (not static layers).
• Must refresh cleanly at the start of a new session.
Breakout + Retest Logic
• Long signal when price closes above previous day high and later retests that level without breaking below it.
• Short signal when price closes below previous day low and later retests that level without breaking above it.
• Only one long and one short trade allowed per day (optional inputs for enabling/disabling).
Entry Conditions
• Entry is triggered on the retest candle.
• Draw a fixed BUY or SELL arrow on the entry candle.
• Draw optional label or highlight box around the entry candle.
Stop Loss Logic
• For buy trades, SL = previous day low.
• For sell trades, SL = previous day high.
Targets
• Compute risk = entry price minus stop loss.
• Draw three target lines at:
– T1 = entry + 1 × risk
– T2 = entry + 2 × risk
– T3 = entry + 3 × risk
(opposite direction for sell trades)
Drawing Requirements
• All targets, SL, and entry lines must extend-right and move with the chart.
• Old drawings must be deleted at the start of each new day.
• No repainting once signals are printed.
Alerts
• Alert 1: Long entry triggered
• Alert 2: Short entry triggered
General
• Must be clean, stable, and optimized so no errors regarding modifying var/line references occur.
• Must handle intraday timeframes (1 min to 15 min).
This indicator should function as a professional breakout-retest system using previous day levels with SL, T1, T2, T3 auto-computed.