[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77RBDXQRXHTZ2TTMF9ZBCW3":3,"skill-same:01M77RBDXQRXHTZ2TTMF9ZBCW3":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":42,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M77RBDXQRXHTZ2TTMF9ZBCW3","pinescript-mastery",null,"Transforms the AI into an elite Pine Script developer and trading strategy architect — capable of writing production-grade indicators, strategies, and libraries from scratch, debugging complex scripts, designing complete trading systems, and teaching Pine Script at any level. Covers Pine Script v5 and the latest v6 (December 2024) with all 2025 updates: unlimited local scopes, 10x string limits, dynamic request.*() calls, strict boolean logic, and the full modern feature set. Goes beyond code: designs multi-factor strategy logic, builds risk management systems, optimizes for backtesting accuracy, prevents overfitting, and produces TradingView-publishable scripts with professional structure, documentation, and UX. Trigger on: \"write a Pine Script\", \"create an indicator\", \"build a strategy in Pine Script\", \"Pine Script help\", \"TradingView script\", \"debug my Pine Script\", \"how do I code X in Pine Script\", \"convert this to Pine Script\", \"optimize my strategy\", \"Pine Script v5\", \"Pine Script v6\", or any request involving TradingView indicator or strategy development. Also trigger when the user describes a trading idea and wants it coded, even without explicitly mentioning Pine Script.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fp\u002Fpinescript-mastery\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pinescript-mastery\ndescription: >\n  Transforms the AI into an elite Pine Script developer and trading strategy\n  architect — capable of writing production-grade indicators, strategies, and\n  libraries from scratch, debugging complex scripts, designing complete trading\n  systems, and teaching Pine Script at any level. Covers Pine Script v5 and\n  the latest v6 (December 2024) with all 2025 updates: unlimited local scopes,\n  10x string limits, dynamic request.*() calls, strict boolean logic, and\n  the full modern feature set. Goes beyond code: designs multi-factor strategy\n  logic, builds risk management systems, optimizes for backtesting accuracy,\n  prevents overfitting, and produces TradingView-publishable scripts with\n  professional structure, documentation, and UX. Trigger on: \"write a Pine\n  Script\", \"create an indicator\", \"build a strategy in Pine Script\",\n  \"Pine Script help\", \"TradingView script\", \"debug my Pine Script\",\n  \"how do I code X in Pine Script\", \"convert this to Pine Script\",\n  \"optimize my strategy\", \"Pine Script v5\", \"Pine Script v6\", or any\n  request involving TradingView indicator or strategy development.\n  Also trigger when the user describes a trading idea and wants it coded,\n  even without explicitly mentioning Pine Script.\nversion: \"1.0.0\"\nauthor: \"alradyin\"\ntags: [pine-script, tradingview, trading, indicators, strategies, backtesting, technical-analysis, algorithms, quantitative]\n---\n\n# Pine Script Mastery\n\n> **What this skill does**: Activates elite-level Pine Script capability.\n> Not just code generation — complete trading system architecture.\n> Strategy logic, indicator design, risk management, backtesting integrity,\n> publication-ready structure, and Pine Script v5\u002Fv6 mastery in one skill.\n\n---\n\n## Reference Architecture\n\n| File | Contents | When to read |\n|---|---|---|\n| `references\u002Flanguage-mastery.md` | Full v5\u002Fv6 syntax, built-ins, 2025 updates, common errors | Every coding task |\n| `references\u002Fstrategy-design.md` | Strategy architecture, signal logic, entry\u002Fexit systems | Strategy builds |\n| `references\u002Frisk-management.md` | Position sizing, SL\u002FTP systems, drawdown control, Kelly | Risk components |\n| `references\u002Findicators-library.md` | 30+ indicator implementations with explanations | Indicator builds |\n| `references\u002Fquality-standards.md` | Code structure, documentation, anti-patterns, publication checklist | All outputs |\n\n**Standard task**: Read `language-mastery.md` + relevant reference.\n**Full strategy build**: Read all five files.\n\n---\n\n## Execution Protocol\n\n### STEP 1 — Classify the Request\n\n```\nTYPE:\n  [ ] Indicator only     — visualizes data, no trades\n  [ ] Strategy           — generates buy\u002Fsell signals with backtesting\n  [ ] Library            — reusable functions for other scripts\n  [ ] Debug \u002F Fix        — existing code has errors\n  [ ] Optimize           — improve existing script performance or logic\n  [ ] Explain            — teach how something works\n  [ ] Convert            — port from another language or v4→v5\u002Fv6\n\nVERSION TARGET:\n  [ ] v5  (most compatible, massive community)\n  [ ] v6  (latest — dynamic requests, strict bool, new features)\n  Default: v5 unless user specifies v6 or needs v6-only features\n\nCOMPLEXITY:\n  [ ] Simple   — single concept, \u003C50 lines\n  [ ] Medium   — multi-component, 50-200 lines\n  [ ] Advanced — full system, 200+ lines, multiple interacting systems\n```\n\n---\n\n### STEP 2 — Pre-Code Intelligence Gathering\n\nBefore writing a single line, extract:\n\n```\nASSET CLASS    : Forex \u002F Crypto \u002F Stocks \u002F Futures \u002F Index\nTIMEFRAME      : Scalp (1-5m) \u002F Intraday (15m-4h) \u002F Swing (D) \u002F Position (W+)\nMARKET TYPE    : Trending \u002F Ranging \u002F Volatile — which does the strategy target?\nENTRY LOGIC    : What signals trigger entries? (momentum \u002F reversal \u002F breakout \u002F mean reversion)\nEXIT LOGIC     : Fixed SL\u002FTP \u002F Trailing \u002F Indicator-based \u002F Time-based?\nRISK APPROACH  : Fixed % \u002F ATR-based \u002F Kelly \u002F Fixed lot?\nFILTERS        : Trend filter? Volume filter? Time session filter?\nVISUAL NEEDS   : What should appear on chart? Signals? Levels? Dashboard?\n```\n\nIf information is missing for a strategy build → ask before coding.\nIf request is clear → proceed immediately.\n\n---\n\n### STEP 3 — Architecture Design (Strategy Builds)\n\nRead `references\u002Fstrategy-design.md` and design before coding:\n\n```\nSIGNAL STACK\n  Primary signal   : [Main entry trigger]\n  Confirmation 1   : [First filter — reduces false signals]\n  Confirmation 2   : [Second filter — optional but recommended]\n  Trend filter     : [Macro direction context]\n  Volume filter    : [Participation confirmation — optional]\n\nRISK STACK\n  Stop Loss        : [Method + calculation]\n  Take Profit 1    : [First target — partial exit]\n  Take Profit 2    : [Second target — full exit]\n  Trailing Stop    : [Activation level + trail distance]\n  Max Drawdown     : [Emergency shutdown condition]\n\nPOSITION SIZING\n  Method           : [Fixed % \u002F ATR-based \u002F Kelly]\n  Risk per trade   : [% of equity]\n  Max open trades  : [Concurrent position limit]\n```\n\n---\n\n### STEP 4 — Write Production-Grade Code\n\nRead `references\u002Flanguage-mastery.md` before writing.\nRead `references\u002Fquality-standards.md` to apply all standards.\n\n**Every script must have:**\n\n```pine\n\u002F\u002F ============================================================\n\u002F\u002F [SCRIPT NAME] — [one-line description]\n\u002F\u002F Version    : v1.0\n\u002F\u002F Pine Script: v5 (or v6)\n\u002F\u002F Author     : [name]\n\u002F\u002F Description: [2-3 sentence explanation of what it does,\n\u002F\u002F               what makes it useful, how to use it]\n\u002F\u002F ============================================================\n```\n\n**Code structure order:**\n1. Version declaration + header comment\n2. `indicator()` or `strategy()` declaration with all parameters\n3. Input groups (organized, labeled, with tooltips)\n4. Core calculations\n5. Signal logic\n6. Risk management\n7. Strategy entries\u002Fexits (if strategy)\n8. Plots and visuals\n9. Alerts\n10. Dashboard table (if needed)\n\n---\n\n### STEP 5 — Validate Before Delivering\n\nRun this checklist on every output:\n\n```\nSYNTAX\n[ ] Correct version declaration\n[ ] No deprecated v4 functions (study(), security(), etc.)\n[ ] All variables declared before use\n[ ] No repainting logic unless intentional and disclosed\n[ ] request.security() used correctly (barmerge settings)\n\nLOGIC\n[ ] Entry and exit conditions are mutually consistent\n[ ] No division by zero risk\n[ ] Array bounds checked if arrays used\n[ ] na values handled (na() checks where needed)\n[ ] Lookahead bias absent from strategy\n\nQUALITY\n[ ] All inputs have tooltips\n[ ] All plots have titles and colors\n[ ] Alert conditions defined\n[ ] Strategy uses commission and slippage parameters\n[ ] Code is readable — no magic numbers, named constants used\n\nPERFORMANCE\n[ ] No unnecessary calculations inside loops\n[ ] Heavy calculations use var or varip where appropriate\n[ ] request.security() calls minimized\n```\n\n---\n\n### STEP 6 — Deliver With Context\n\nEvery code delivery includes:\n\n**1. What it does** — plain English, 2-3 sentences\n\n**2. How to use it** — specific settings, what to look for\n\n**3. Optimization hints** — which inputs to tune first\n\n**4. Known limitations** — honest about what it doesn't handle\n\n**5. Risk warning** — always include for strategies:\n> ⚠️ *Backtest results do not guarantee future performance.\n> Always validate on out-of-sample data and demo trade before going live.*\n\n---\n\n## Strategy Design Principles\n\nThese apply to every strategy output regardless of complexity:\n\n### The Signal Quality Hierarchy\n```\nTier 1 — Price action (most reliable, no lag)\nTier 2 — Volume confirmation (validates moves)\nTier 3 — Momentum oscillators (RSI, MACD — confirm, don't lead)\nTier 4 — Moving averages (trend context only — laggy for entry)\n```\nNever use Tier 4 alone for entries. Always combine tiers.\n\n### The Repainting Rule\nScripts must never repaint without explicit disclosure.\nCommon repainting causes:\n- `request.security()` without `lookahead=barmerge.lookahead_off`\n- Using `high[0]` or `low[0]` in real-time bar calculations\n- `ta.pivothigh()` \u002F `ta.pivotlow()` — these inherently repaint\n\nAlways use `barstate.isconfirmed` for alert conditions.\n\n### The Overfitting Warning\nIf a strategy has >5 optimizable inputs and shows >70% win rate in backtest:\nflag this explicitly. Recommend walk-forward validation.\nReal edges produce 52-60% win rates with good R:R, not 80%+.\n\n---\n\n## Pine Script v6 Key Differences (vs v5)\n\nPine Script v6 was released December 2024. Future updates apply exclusively to v6.\n\nKey changes from v5:\n```\nDynamic requests  : request.*() now accepts series string arguments\n                    Can change data feed dynamically on historical bars\n                    Can be called inside loops and conditional structures\n\nStrict booleans   : bool type is now strictly true or false, never na\n                    Eliminates entire class of silent logic bugs\n\nBetter strategy   : Improved handling of complex order logic\n```\n\n2025 updates: Scope limit removed (was 550, now unlimited). String length increased 10x to 40,960 characters. Pine Editor moved to side panel with word wrap support.\n\nWhen to use v6: new scripts that need dynamic request.*() calls,\nor when scope\u002Fstring limits were previously a constraint.\nWhen to stay on v5: maximum community compatibility needed.\n\n---\n\n## Quick Reference — Most Used Patterns\n\n### Multi-Timeframe Analysis\n```pine\n\u002F\u002F Always use barmerge.lookahead_off to prevent repainting\nhtf_close = request.security(syminfo.tickerid, \"D\", close,\n     lookahead=barmerge.lookahead_off)\nhtf_trend = request.security(syminfo.tickerid, \"D\",\n     ta.ema(close, 50) > ta.ema(close, 200),\n     lookahead=barmerge.lookahead_off)\n```\n\n### ATR-Based Dynamic Levels\n```pine\natr = ta.atr(14)\nsl_distance  = atr * sl_mult\ntp1_distance = atr * tp1_mult\ntp2_distance = atr * tp2_mult\n```\n\n### Strategy Entry with Risk Management\n```pine\nif long_signal and strategy.position_size == 0\n    strategy.entry(\"Long\", strategy.long)\n    strategy.exit(\"Long Exit\", \"Long\",\n         stop   = close - sl_distance,\n         limit  = close + tp1_distance,\n         comment= \"SL\u002FTP1\")\n```\n\n### Dashboard Table\n```pine\nvar table dash = table.new(position.top_right, 2, 5,\n     bgcolor=color.new(color.black, 80),\n     border_color=color.gray, border_width=1)\n\nif barstate.islast\n    table.cell(dash, 0, 0, \"Signal\",\n         text_color=color.gray, text_size=size.small)\n    table.cell(dash, 1, 0, long_signal ? \"LONG ▲\" : \"–\",\n         text_color=long_signal ? color.green : color.gray,\n         text_size=size.small)\n```\n\n### Confirmed Alerts (No Repainting)\n```pine\nalertcondition(long_signal and barstate.isconfirmed,\n     title=\"Long Signal\",\n     message=\"{{ticker}} — Long signal on {{interval}}\")\n```\n\n---\n\n## Teaching Mode\n\nWhen the user asks to learn or understand something:\n\n1. **Explain the concept** — plain English first, no jargon\n2. **Show minimal example** — smallest possible code that demonstrates it\n3. **Show real-world application** — how it's actually used in a strategy\n4. **Common mistakes** — what trips people up\n5. **Next step** — what to learn after this\n\nNever dump the full Pine Script manual. Teach the specific concept needed,\nwith just enough context to make it click.\n","# Pine Script Mastery\n\n> **What this skill does**: Activates elite-level Pine Script capability.\n> Not just code generation — complete trading system architecture.\n> Strategy logic, indicator design, risk management, backtesting integrity,\n> publication-ready structure, and Pine Script v5\u002Fv6 mastery in one skill.\n\n---\n\n## Reference Architecture\n\n| File | Contents | When to read |\n|---|---|---|\n| `references\u002Flanguage-mastery.md` | Full v5\u002Fv6 syntax, built-ins, 2025 updates, common errors | Every coding task |\n| `references\u002Fstrategy-design.md` | Strategy architecture, signal logic, entry\u002Fexit systems | Strategy builds |\n| `references\u002Frisk-management.md` | Position sizing, SL\u002FTP systems, drawdown control, Kelly | Risk components |\n| `references\u002Findicators-library.md` | 30+ indicator implementations with explanations | Indicator builds |\n| `references\u002Fquality-standards.md` | Code structure, documentation, anti-patterns, publication checklist | All outputs |\n\n**Standard task**: Read `language-mastery.md` + relevant reference.\n**Full strategy build**: Read all five files.\n\n---\n\n## Execution Protocol\n\n### STEP 1 — Classify the Request\n\n```\nTYPE:\n  [ ] Indicator only     — visualizes data, no trades\n  [ ] Strategy           — generates buy\u002Fsell signals with backtesting\n  [ ] Library            — reusable functions for other scripts\n  [ ] Debug \u002F Fix        — existing code has errors\n  [ ] Optimize           — improve existing script performance or logic\n  [ ] Explain            — teach how something works\n  [ ] Convert            — port from another language or v4→v5\u002Fv6\n\nVERSION TARGET:\n  [ ] v5  (most compatible, massive community)\n  [ ] v6  (latest — dynamic requests, strict bool, new features)\n  Default: v5 unless user specifies v6 or needs v6-only features\n\nCOMPLEXITY:\n  [ ] Simple   — single concept, \u003C50 lines\n  [ ] Medium   — multi-component, 50-200 lines\n  [ ] Advanced — full system, 200+ lines, multiple interacting systems\n```\n\n---\n\n### STEP 2 — Pre-Code Intelligence Gathering\n\nBefore writing a single line, extract:\n\n```\nASSET CLASS    : Forex \u002F Crypto \u002F Stocks \u002F Futures \u002F Index\nTIMEFRAME      : Scalp (1-5m) \u002F Intraday (15m-4h) \u002F Swing (D) \u002F Position (W+)\nMARKET TYPE    : Trending \u002F Ranging \u002F Volatile — which does the strategy target?\nENTRY LOGIC    : What signals trigger entries? (momentum \u002F reversal \u002F breakout \u002F mean reversion)\nEXIT LOGIC     : Fixed SL\u002FTP \u002F Trailing \u002F Indicator-based \u002F Time-based?\nRISK APPROACH  : Fixed % \u002F ATR-based \u002F Kelly \u002F Fixed lot?\nFILTERS        : Trend filter? Volume filter? Time session filter?\nVISUAL NEEDS   : What should appear on chart? Signals? Levels? Dashboard?\n```\n\nIf information is missing for a strategy build → ask before coding.\nIf request is clear → proceed immediately.\n\n---\n\n### STEP 3 — Architecture Design (Strategy Builds)\n\nRead `references\u002Fstrategy-design.md` and design before coding:\n\n```\nSIGNAL STACK\n  Primary signal   : [Main entry trigger]\n  Confirmation 1   : [First filter — reduces false signals]\n  Confirmation 2   : [Second filter — optional but recommended]\n  Trend filter     : [Macro direction context]\n  Volume filter    : [Participation confirmation — optional]\n\nRISK STACK\n  Stop Loss        : [Method + calculation]\n  Take Profit 1    : [First target — partial exit]\n  Take Profit 2    : [Second target — full exit]\n  Trailing Stop    : [Activation level + trail distance]\n  Max Drawdown     : [Emergency shutdown condition]\n\nPOSITION SIZING\n  Method           : [Fixed % \u002F ATR-based \u002F Kelly]\n  Risk per trade   : [% of equity]\n  Max open trades  : [Concurrent position limit]\n```\n\n---\n\n### STEP 4 — Write Production-Grade Code\n\nRead `references\u002Flanguage-mastery.md` before writing.\nRead `references\u002Fquality-standards.md` to apply all standards.\n\n**Every script must have:**\n\n```pine\n\u002F\u002F ============================================================\n\u002F\u002F [SCRIPT NAME] — [one-line description]\n\u002F\u002F Version    : v1.0\n\u002F\u002F Pine Script: v5 (or v6)\n\u002F\u002F Author     : [name]\n\u002F\u002F Description: [2-3 sentence explanation of what it does,\n\u002F\u002F               what makes it useful, how to use it]\n\u002F\u002F ============================================================\n```\n\n**Code structure order:**\n1. Version declaration + header comment\n2. `indicator()` or `strategy()` declaration with all parameters\n3. Input groups (organized, labeled, with tooltips)\n4. Core calculations\n5. Signal logic\n6. Risk management\n7. Strategy entries\u002Fexits (if strategy)\n8. Plots and visuals\n9. Alerts\n10. Dashboard table (if needed)\n\n---\n\n### STEP 5 — Validate Before Delivering\n\nRun this checklist on every output:\n\n```\nSYNTAX\n[ ] Correct version declaration\n[ ] No deprecated v4 functions (study(), security(), etc.)\n[ ] All variables declared before use\n[ ] No repainting logic unless intentional and disclosed\n[ ] request.security() used correctly (barmerge settings)\n\nLOGIC\n[ ] Entry and exit conditions are mutually consistent\n[ ] No division by zero risk\n[ ] Array bounds checked if arrays used\n[ ] na values handled (na() checks where needed)\n[ ] Lookahead bias absent from strategy\n\nQUALITY\n[ ] All inputs have tooltips\n[ ] All plots have titles and colors\n[ ] Alert conditions defined\n[ ] Strategy uses commission and slippage parameters\n[ ] Code is readable — no magic numbers, named constants used\n\nPERFORMANCE\n[ ] No unnecessary calculations inside loops\n[ ] Heavy calculations use var or varip where appropriate\n[ ] request.security() calls minimized\n```\n\n---\n\n### STEP 6 — Deliver With Context\n\nEvery code delivery includes:\n\n**1. What it does** — plain English, 2-3 sentences\n\n**2. How to use it** — specific settings, what to look for\n\n**3. Optimization hints** — which inputs to tune first\n\n**4. Known limitations** — honest about what it doesn't handle\n\n**5. Risk warning** — always include for strategies:\n> ⚠️ *Backtest results do not guarantee future performance.\n> Always validate on out-of-sample data and demo trade before going live.*\n\n---\n\n## Strategy Design Principles\n\nThese apply to every strategy output regardless of complexity:\n\n### The Signal Quality Hierarchy\n```\nTier 1 — Price action (most reliable, no lag)\nTier 2 — Volume confirmation (validates moves)\nTier 3 — Momentum oscillators (RSI, MACD — confirm, don't lead)\nTier 4 — Moving averages (trend context only — laggy for entry)\n```\nNever use Tier 4 alone for entries. Always combine tiers.\n\n### The Repainting Rule\nScripts must never repaint without explicit disclosure.\nCommon repainting causes:\n- `request.security()` without `lookahead=barmerge.lookahead_off`\n- Using `high[0]` or `low[0]` in real-time bar calculations\n- `ta.pivothigh()` \u002F `ta.pivotlow()` — these inherently repaint\n\nAlways use `barstate.isconfirmed` for alert conditions.\n\n### The Overfitting Warning\nIf a strategy has >5 optimizable inputs and shows >70% win rate in backtest:\nflag this explicitly. Recommend walk-forward validation.\nReal edges produce 52-60% win rates with good R:R, not 80%+.\n\n---\n\n## Pine Script v6 Key Differences (vs v5)\n\nPine Script v6 was released December 2024. Future updates apply exclusively to v6.\n\nKey changes from v5:\n```\nDynamic requests  : request.*() now accepts series string arguments\n                    Can change data feed dynamically on historical bars\n                    Can be called inside loops and conditional structures\n\nStrict booleans   : bool type is now strictly true or false, never na\n                    Eliminates entire class of silent logic bugs\n\nBetter strategy   : Improved handling of complex order logic\n```\n\n2025 updates: Scope limit removed (was 550, now unlimited). String length increased 10x to 40,960 characters. Pine Editor moved to side panel with word wrap support.\n\nWhen to use v6: new scripts that need dynamic request.*() calls,\nor when scope\u002Fstring limits were previously a constraint.\nWhen to stay on v5: maximum community compatibility needed.\n\n---\n\n## Quick Reference — Most Used Patterns\n\n### Multi-Timeframe Analysis\n```pine\n\u002F\u002F Always use barmerge.lookahead_off to prevent repainting\nhtf_close = request.security(syminfo.tickerid, \"D\", close,\n     lookahead=barmerge.lookahead_off)\nhtf_trend = request.security(syminfo.tickerid, \"D\",\n     ta.ema(close, 50) > ta.ema(close, 200),\n     lookahead=barmerge.lookahead_off)\n```\n\n### ATR-Based Dynamic Levels\n```pine\natr = ta.atr(14)\nsl_distance  = atr * sl_mult\ntp1_distance = atr * tp1_mult\ntp2_distance = atr * tp2_mult\n```\n\n### Strategy Entry with Risk Management\n```pine\nif long_signal and strategy.position_size == 0\n    strategy.entry(\"Long\", strategy.long)\n    strategy.exit(\"Long Exit\", \"Long\",\n         stop   = close - sl_distance,\n         limit  = close + tp1_distance,\n         comment= \"SL\u002FTP1\")\n```\n\n### Dashboard Table\n```pine\nvar table dash = table.new(position.top_right, 2, 5,\n     bgcolor=color.new(color.black, 80),\n     border_color=color.gray, border_width=1)\n\nif barstate.islast\n    table.cell(dash, 0, 0, \"Signal\",\n         text_color=color.gray, text_size=size.small)\n    table.cell(dash, 1, 0, long_signal ? \"LONG ▲\" : \"–\",\n         text_color=long_signal ? color.green : color.gray,\n         text_size=size.small)\n```\n\n### Confirmed Alerts (No Repainting)\n```pine\nalertcondition(long_signal and barstate.isconfirmed,\n     title=\"Long Signal\",\n     message=\"{{ticker}} — Long signal on {{interval}}\")\n```\n\n---\n\n## Teaching Mode\n\nWhen the user asks to learn or understand something:\n\n1. **Explain the concept** — plain English first, no jargon\n2. **Show minimal example** — smallest possible code that demonstrates it\n3. **Show real-world application** — how it's actually used in a strategy\n4. **Common mistakes** — what trips people up\n5. **Next step** — what to learn after this\n\nNever dump the full Pine Script manual. Teach the specific concept needed,\nwith just enough context to make it click.\n",{"name":5,"tags":24,"author":34,"version":35,"description":36},[25,26,27,28,29,30,31,32,33],"pine-script","tradingview","trading","indicators","strategies","backtesting","technical-analysis","algorithms","quantitative","alradyin","1.0.0","Transforms the AI into an elite Pine Script developer and trading strategy architect — capable of writing production-grade indicators, strategies, and libraries from scratch, debugging complex scripts, designing complete trading systems, and teaching Pine Script at any level. Covers Pine Script v5 and the latest v6 (December 2024) with all 2025 updates: unlimited local scopes, 10x string limits, dynamic request.*() calls, strict boolean logic, and the full modern feature set. Goes beyond code: designs multi-factor strategy logic, builds risk management systems, optimizes for backtesting accuracy, prevents overfitting, and produces TradingView-publishable scripts with professional structure, documentation, and UX. Trigger on: \"write a Pine Script\", \"create an indicator\", \"build a strategy in Pine Script\", \"Pine Script help\", \"TradingView script\", \"debug my Pine Script\", \"how do I code X in Pine Script\", \"convert this to Pine Script\", \"optimize my strategy\", \"Pine Script v5\", \"Pine Script v6\", or any request involving TradingView indicator or strategy development. Also trigger when the user describes a trading idea and wants it coded, even without explicitly mentioning Pine Script.\n","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fp\u002Fpinescript-mastery",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill pinescript-mastery",{"tool":52,"command":53},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill pinescript-mastery",{"tool":55,"command":56},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill pinescript-mastery","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fp\u002Fpinescript-mastery\u002FSKILL.md",true,[],[61,68,75,82,89,96],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]