All services

Freeze the quantity contract before fixing code

Pine Script Partial Exit and Alert State Audit

Audit one Pine Script partial-exit sequence for percentage-base ambiguity, remaining-position state, confirmed-bar timing and duplicate alert risk, then receive reproducible cases and a bounded fix plan.

What is included

  • One three-tier partial-exit sequence mapped from initial to remaining quantity
  • Initial-position versus remaining-position percentage contract check
  • Confirmed-bar, intrabar and one-event-per-tier timing review
  • Expected state table with positive and negative acceptance cases
  • Ranked findings and a fixed-scope repair estimate

What I need from you

  • Editable Pine source you own or are authorized to share
  • Exact exit percentages and whether each applies to initial or remaining quantity
  • Symbol, timeframe, timezone and TradingView plan
  • Expected versus actual labels, alerts or screenshots with secrets removed

Scope boundaries

  • One script and one partial-exit sequence are included
  • Protected or invite-only source extraction is not accepted
  • The audit tests software state and timing; it does not operate a broker account or claim trading performance

Source-backed proof

Inspect the public partial-exit state diagnostic

Open the Pine v6 source

Free scope resource

See the deterministic partial-exit case study

Review the 100 → 50 → 33.5 → 25.125 state ladder, the 108% ambiguity check and the explicit test boundaries.

Get the free script

Free preparation guide

Pine Script Partial Exit and Alert Requirements Checklist

Open checklist