ABW
ASIF BRAIN WAVES
PROMPT COMMAND LIBRARY

Pine Script Prompts for TradingView

Explore English prompts for explaining and debugging Pine Script, defining indicator rules and planning alerts, with Roman Urdu usage instructions.

200 prompts in this sectionPage 3 of 450 prompts on this page
English draft prompts with Roman Urdu guidance. Prompts have not been tested in each AI tool; adapt your inputs and check the output.

Open the full prompt, fill the bracketed inputs, and review the output. Search all 3,000 commands.

#2201

Add an alert to an existing signal

/pine-add-an-alert-to-an-existing-signal

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Expose [existing condition] as an alert without changing signal detection. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check condition identity and actual TradingView alert creation separately. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2202

Specify alert frequency from user intent

/pine-specify-alert-frequency-from-user-intent

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Use [once-per-bar or close requirement] for [condition] under [Pine version]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check repeated intrabar updates and bar-close behavior in realtime. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2203

Prevent duplicate alerts for one setup

/pine-prevent-duplicate-alerts-for-one-setup

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Gate [alert] by [setup identity and reset rule] without suppressing valid later setups. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check same-bar repeats, new setups, and reset events. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2204

Include only safe required alert fields

/pine-include-only-safe-required-alert-fields

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Build [alert message] with [required symbol, timeframe, price, and state fields]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check formatting and avoid private tokens in script source or examples. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2205

Separate early warning from confirmed alert

/pine-separate-early-warning-from-confirmed-alert

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Implement distinct [developing and confirmed conditions] with clear labels. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check realtime state changes and do not call an early warning final. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2206

Create a webhook payload contract draft

/pine-create-a-webhook-payload-contract-draft

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Format [alert payload schema] with valid JSON and user-supplied field requirements. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check escaping and actual delivered payload only through authorized test evidence. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2207

Preserve existing alert text during a visual edit

/pine-preserve-existing-alert-text-during-a-visual-edit

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Apply [visual change] while retaining [alert conditions, messages, and timing]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Compare alert expressions and emitted-message templates before and after. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2208

Explain why an alert appears later than a marker

/pine-explain-why-an-alert-appears-later-than-a-marker

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Analyze [script], [alert settings], and [example timing] for confirmation or execution differences. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Do not invent a realtime delivery event without logs. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2209

Handle an intrabar condition that disappears

/pine-handle-an-intrabar-condition-that-disappears

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Use [user persistence rule] for [condition that reverses before close]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check developing versus final state with actual realtime observations. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2210

Audit alert conditions against entry conditions

/pine-audit-alert-conditions-against-entry-conditions

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Compare [alerts] with [entry rules] and identify intentional or accidental mismatches. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Trace one qualifying and one rejected setup. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2211

Reset an alert flag at a specified boundary

/pine-reset-an-alert-flag-at-a-specified-boundary

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Reset [alert state] at [session, setup, or trade boundary] exactly as supplied. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check carryover and multiple events around the boundary. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2212

Draft a safe alert test protocol

/pine-draft-a-safe-alert-test-protocol

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Create [alert validation plan] using [test symbol/timeframe] and user-authorized delivery destination. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Separate compiler, chart condition, alert configuration, and receipt evidence. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2213

Explain alert snapshots after script edits

/pine-explain-alert-snapshots-after-script-edits

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Document [script change] and required [TradingView alert recreation checks] from available product evidence. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Do not assume an existing alert automatically uses edited settings. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2214

Use distinct messages for lifecycle events

/pine-use-distinct-messages-for-lifecycle-events

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Create alerts for [detected, entered, invalidated, expired events] only where specified. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check each event fires at the intended transition once. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2215

Avoid an alert firing during warmup

/pine-avoid-an-alert-firing-during-warmup

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Gate [alert] when [required calculations] lack enough history. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check first eligible bar and missing requested data. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2216

Review order-fill alerts separately

/pine-review-order-fill-alerts-separately

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Explain and configure [strategy order-fill alert requirement] separately from condition alerts. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check actual order events and configured message fields. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2217

Measure alert timing from supplied logs

/pine-measure-alert-timing-from-supplied-logs

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Compare [chart event time], [alert log time], and [receipt time] with stated timezone conversions. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Report measured delays without claiming unsupported causes. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2218

Keep realtime state from corrupting historical state

/pine-keep-realtime-state-from-corrupting-historical-state

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Review [intrabar variables] and [historical state rules] for inappropriate persistence. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Require both historical reload and realtime checks. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2219

Expose alert readiness in a status panel

/pine-expose-alert-readiness-in-a-status-panel

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Show [data readiness], [setup status], and [confirmation status] for [alert]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check the panel does not claim delivery success merely because a condition is true. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2220

Write an alert limitations note

/pine-write-an-alert-limitations-note

Alert condition, frequency aur reset rule saaf dein. Compiler, chart signal, alert settings aur actual receipt ko alag evidence ke taur par record karein.

Alerts & Realtime Behavior
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Summarize [actual alert checks] and untested delivery, frequency, or market-state cases. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Label static review and planned tests separately from successful alert receipt. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2221

Initialize persistent state once

/pine-initialize-persistent-state-once

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Review [state variables] and initialize only values that should persist across bars. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check per-bar calculations are not accidentally frozen. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2222

Reset setup state without losing history

/pine-reset-setup-state-without-losing-history

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Implement [setup reset rule] while keeping [required historical records]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check active and historical objects are handled separately. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2223

Invalidate a setup at the exact user level

/pine-invalidate-a-setup-at-the-exact-user-level

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Apply [invalidation price and touch rule] to [setup lifecycle]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check wick versus close criteria and equality at the level. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2224

Expire a setup after a stated number of bars

/pine-expire-a-setup-after-a-stated-number-of-bars

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Implement [bar-count expiry] using the specified starting event. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check counting on the detection bar and exact expiry boundary. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2225

Retain first-touch state for a gap

/pine-retain-first-touch-state-for-a-gap

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Store [first gap touch rule] once and preserve it through [subsequent lifecycle]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check repeated touches and reset after a new gap. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2226

Avoid overwriting an active setup with a new one

/pine-avoid-overwriting-an-active-setup-with-a-new-one

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Apply [replacement or coexistence policy] to [new detection events]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check consecutive qualifying bars and simultaneous directions. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2227

Handle separate long and short setup states

/pine-handle-separate-long-and-short-setup-states

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Keep [directional states] independent where [user rules] require it. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check one direction's reset does not erase the other's active setup. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2228

Track a unique setup identifier

/pine-track-a-unique-setup-identifier

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Assign [setup identity rule] to lifecycle objects and alerts. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check repeated detections do not reuse an identifier incorrectly. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2229

Freeze entry-candle reference after confirmation

/pine-freeze-entry-candle-reference-after-confirmation

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Store [entry candle fields] at [confirmation event] without recalculation. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check subsequent bars and a later independent trade. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2230

Clear state after a canceled pending entry

/pine-clear-state-after-a-canceled-pending-entry

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Reset [pending-entry state] under [cancel rule] while preserving [needed references]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check no stale level triggers a later unintended entry. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2231

Coordinate arrays that represent one setup

/pine-coordinate-arrays-that-represent-one-setup

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Maintain [parallel arrays or records] with consistent insertion and deletion. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check lengths, indices, and object references after removals. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2232

Use explicit transition precedence

/pine-use-explicit-transition-precedence

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Implement [ordered event priorities] when [multiple lifecycle conditions] occur on one bar. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check priorities reflect supplied rules rather than invented preferences. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2233

Retain a target after partial progress

/pine-retain-a-target-after-partial-progress

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Preserve [target lifecycle rule] when [intermediate event] occurs. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check only authorized reset or completion events change it. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2234

Handle missing data without advancing state

/pine-handle-missing-data-without-advancing-state

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Suspend [state transitions] when [required series] is unavailable according to [policy]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check recovery does not fabricate a past event. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2235

Avoid state leakage across session changes

/pine-avoid-state-leakage-across-session-changes

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Reset [session-scoped fields] using [session boundary] while retaining [cross-session fields]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check the first available bar after a gap. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2236

Compare state before and after script reload

/pine-compare-state-before-and-after-script-reload

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Create a reload-validation plan for [persistent state design]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Do not claim reload equivalence without actual chart observations. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2237

Count retries under an explicit policy

/pine-count-retries-under-an-explicit-policy

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Track [retry eligibility/count] from [user rule] without imposing extra limits. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check successful entry, invalidation, and day-reset behavior. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2238

Prevent a completed zone from becoming active again

/pine-prevent-a-completed-zone-from-becoming-active-again

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Freeze [completed-zone status] unless [explicit reactivation rule] permits otherwise. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check later price revisits cannot revive it accidentally. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2239

Add a state transition debug log view

/pine-add-a-state-transition-debug-log-view

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Display [selected state changes] compactly with event bar/time and reason. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check diagnostic output is bounded and can be disabled. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2240

Audit lifecycle cleanup after deletion

/pine-audit-lifecycle-cleanup-after-deletion

Detection, entry, invalidation aur reset ke exact rules dein. Har transition ko actual TradingView chart par check karein.

State & Setup Lifecycle
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Review [deleted drawings/records] for retained IDs or stale flags in [state]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check remaining state cannot update already removed objects. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2241

Return scalars instead of persistent collections

/pine-return-scalars-instead-of-persistent-collections

Exact error, code, symbol aur timeframe dein. Memory ya runtime ka masla sirf static patch se solved na samjhein; target chart par verify karein.

Performance & Data Limits
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Refactor [request expression] to return only [required scalar outputs] without changing rules. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check memory behavior in actual TradingView runtime; static review is insufficient proof. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2242

Bound drawing allocation by lifecycle

/pine-bound-drawing-allocation-by-lifecycle

Exact error, code, symbol aur timeframe dein. Memory ya runtime ka masla sirf static patch se solved na samjhein; target chart par verify karein.

Performance & Data Limits
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Replace unbounded [drawing creation] with reuse or deletion under [retention rule]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check object counts and active drawing correctness on the chart. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2243

Limit an array to a stated history budget

/pine-limit-an-array-to-a-stated-history-budget

Exact error, code, symbol aur timeframe dein. Memory ya runtime ka masla sirf static patch se solved na samjhein; target chart par verify karein.

Performance & Data Limits
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Keep only [required number] of [records] using [removal policy]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check newest/oldest ordering and any referenced drawing cleanup. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2244

Calculate an invariant once per bar

/pine-calculate-an-invariant-once-per-bar

Exact error, code, symbol aur timeframe dein. Memory ya runtime ka masla sirf static patch se solved na samjhein; target chart par verify karein.

Performance & Data Limits
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Move repeated [pure calculation] within [loop] only when inputs are invariant. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Compare calculation outputs and actual runtime effects where measurable. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2245

Consolidate duplicate data requests

/pine-consolidate-duplicate-data-requests

Exact error, code, symbol aur timeframe dein. Memory ya runtime ka masla sirf static patch se solved na samjhein; target chart par verify karein.

Performance & Data Limits
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Share [identical request contexts] and outputs without altering confirmation semantics. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check requested symbols, timeframes, and expressions are truly equivalent. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2246

Reduce table updates to the required bars

/pine-reduce-table-updates-to-the-required-bars

Exact error, code, symbol aur timeframe dein. Memory ya runtime ka masla sirf static patch se solved na samjhein; target chart par verify karein.

Performance & Data Limits
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Update [table] under [last-bar or event-driven requirement] while maintaining accurate display. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check realtime refresh and historical reload. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2247

Replace an unbounded loop with a bounded search

/pine-replace-an-unbounded-loop-with-a-bounded-search

Exact error, code, symbol aur timeframe dein. Memory ya runtime ka masla sirf static patch se solved na samjhein; target chart par verify karein.

Performance & Data Limits
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Implement [search rule] within [maximum lookback] with explicit not-found behavior. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check edge hits and runtime limits on long histories. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2248

Avoid copying a large collection unnecessarily

/pine-avoid-copying-a-large-collection-unnecessarily

Exact error, code, symbol aur timeframe dein. Memory ya runtime ka masla sirf static patch se solved na samjhein; target chart par verify karein.

Performance & Data Limits
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Review [array/matrix operations] for copies that can be replaced without changing ownership semantics. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check modifications do not corrupt shared state. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2249

Reduce stored fields to needed evidence

/pine-reduce-stored-fields-to-needed-evidence

Exact error, code, symbol aur timeframe dein. Memory ya runtime ka masla sirf static patch se solved na samjhein; target chart par verify karein.

Performance & Data Limits
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Trim [setup record] to fields actually used by [calculations, visuals, and alerts]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Verify every removed field has no required consumer. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool
#2250

Set a history requirement from actual references

/pine-set-a-history-requirement-from-actual-references

Exact error, code, symbol aur timeframe dein. Memory ya runtime ka masla sirf static patch se solved na samjhein; target chart par verify karein.

Performance & Data Limits
Full English prompt
Use [Pine Script version requested by the user], [complete baseline script], [exact supplied rules], [target symbol], and [chart timeframe]. Determine necessary history for [calculations] under [Pine version] and [input limits]. Preserve all supplied entry, exit, invalidation, timing, reset, and drawing rules outside the requested change. Do not invent trading filters or claim future profitability. Return the requested code, analysis, guide, or verification checklist with a focused explanation of any changes. Check warmup and runtime errors on maximum supported inputs. Report static source checks separately from actual TradingView compiler and chart/runtime verification; include realtime, drawing, strategy, or alert evidence only if those checks were actually performed. If target-product access is unavailable, explicitly mark the relevant checks pending.
Draft prompt · not tested in each AI tool