Discover how to use Claude AI to automatically identify dynamic Support & Resistance levels on Nifty 5 min chart. In this video, I’ll show you the exact FREE Claude prompt that helps traders analyze Nifty charts faster and improve their trading workflow to develop the Pine script Version 6.
Prompt
You are an expert Pine Script v6 developer and professional Nifty price action trader.
Create a complete TradingView indicator in Pine Script Version 6.
IMPORTANT OUTPUT RULES:
* Return the code directly in plain text inside the chat.
* Do NOT create a file, attachment, canvas, artifact, markdown document, or code project.
* Do NOT use placeholders.
* Do NOT omit any sections.
* The first line must be: //@version=6
* The code must compile successfully in TradingView without modification.
* After generating the code, review it for errors before returning it.
Indicator Name:
“Nifty Dynamic S&R (2 Support + 2 Resistance)”
Primary Market:
* NIFTY 50 Index
* Nifty Weekly Options
Primary Timeframe:
* 5-minute
Objective:
Automatically identify and plot:
* Nearest Support 1 (S1)
* Nearest Support 2 (S2)
* Nearest Resistance 1 (R1)
* Nearest Resistance 2 (R2)
Core Logic:
* Use confirmed swing highs and swing lows.
* Use ta.pivothigh() and ta.pivotlow().
* Default pivot strength:
* Left bars = 5
* Right bars = 5
Selection Rules:
* S1 = nearest confirmed support below current price.
* S2 = second nearest confirmed support below current price.
* R1 = nearest confirmed resistance above current price.
* R2 = second nearest confirmed resistance above current price.
Zone Rules:
* Ignore duplicate levels within 0.10% price distance.
* Keep only the most recent valid pivot levels.
* Store levels using arrays.
* Remove outdated levels automatically.
Non-Repainting Rules:
* Never use lookahead.
* Never use future bar references except internally required by ta.pivothigh() and ta.pivotlow().
* Only confirm levels after pivot confirmation.
* Use barstate.isconfirmed where appropriate.
Visual Requirements:
* R1: Solid red line
* R2: Dashed red line
* S1: Solid green line
* S2: Dashed green line
* Display labels on the right edge:
* Resistance 1
* Resistance 2
* Support 1
* Support 2
* Labels must update dynamically.
User Inputs:
* Pivot left bars
* Pivot right bars
* Maximum stored pivots
* Duplicate threshold percentage
* Show/hide labels
Alerts:
Create alertcondition() for:
* Price touching S1
* Price touching S2
* Price touching R1
* Price touching R2
Performance Requirements:
* Avoid unnecessary loops.
* Use efficient array operations.
* Limit historical processing.
* Ensure smooth execution on lower-end systems.
Validation Checklist:
Before returning the code, verify:
* Pine Script version is exactly v6.
* No syntax errors exist.
* No type mismatch errors exist.
* No undeclared identifiers exist.
* All arrays are initialized correctly.
* All labels update correctly.
* All lines update correctly.
* alertcondition() functions compile correctly.
* The indicator is non-repainting.
* The script compiles successfully in TradingView Pine Editor.
After verifying everything, return ONLY:
1. Complete Pine Script code in plain text.
2. A short explanation of how S1, S2, R1, and R2 are selected.
Do not provide anything else.
✅ Free Account Opening | ✅ Free Delivery | ✅ Zero AMC for Lifetime
✅ Open Dhan Trading & Demat account Now :
⚡Join & Follow us
📱Telegram Link: (or) Simply type on search @mdhanushkumar on Telegram
👥Instagram :
Disclaimer: AI insights are for educational purposes only, not financial advice. Please verify all information before making any trading or investment decisions.
Dhan Universe
⚡ Dhan:
📱 Dhan Trading App:
🖥️Windows DEXT T3:
🖥️Mac DEXT T3:
🖥️Web DEXT T3 :
🖥️ Dhan Web Trading Platform:
📱 Options Trading App:
🖥️ Option Trading Platform & Strategy Builder :
🖥️ Dhan+Tradingview Console :
🖥️ Connect to Tradingview :
📊Create Your Screener :
🛎️MTF on Dhan Just starts at 12.49% pa :
⚡Dhan App or for Other Features –
⚡ Dhan OT –
💡 ScanX YT –
🔔 This is not a recommendation or financial advice. Always do your own research before investing or trading.
Disclaimers :
Designed by Freepik :
コメント