Strategy testing and trading software · Germanycontact@stratcorealpha.com · DE
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

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.

Open the resource

Free preparation guide

Pine Script Partial Exit and Alert Requirements Checklist

Open checklist

Trading risk disclosure

Futures and forex trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing one's financial security or lifestyle. Only risk capital should be used for trading, and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results.

Hypothetical performance disclosure

Hypothetical performance results have many inherent limitations. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown. There are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular trading program. Hypothetical results are generally prepared with the benefit of hindsight, do not involve financial risk, and cannot completely account for the impact of financial risk in actual trading. Market conditions, the ability to withstand losses, and adherence to a trading program can all materially affect actual results.

NinjaTrader trademark disclosure

NinjaTrader® is a registered trademark of NinjaTrader Group, LLC. No NinjaTrader company has any affiliation with the owner, developer, or provider of the products or services described herein, or any interest, ownership or otherwise, in any such product or service, or endorses, recommends or approves any such product or service.

Testimonials, when shown, may not represent the experience of other clients and are not a guarantee of future performance or success. Virtual-currency trading carries additional risks. See the CFTC customer advisories. Read the full financial risk disclaimer.