Tool lesson

Backtest: Define Exits Before The Chart

A practical Backtest lesson for treating exits as invalidation and risk boundaries, not afterthoughts added after the equity curve looks tempting.

13 minBeginner5 chapters

Educational only

The examples teach workflow and risk framing. They do not provide trade recommendations, personalized advice, leverage guidance, or guaranteed outcomes.

Chapter 01

Write the exit before the chart appears

Trader question

What tells the strategy to leave, and what caps the damage?

An entry rule without exits is still unfinished. Before the run button matters, the learner should see exit logic, stop loss, and take profit as part of the same rulebook.

Desk checklist

  • Define exit logic before reading the chart.
  • Keep stop loss and take profit visible.
  • Treat any later exit change as a new test.

Interactive proof

Exit logic tree, stop loss, and take profit fields

Use the Exit Discipline Lab to compare the same entry rule with missing, partial, and complete exit assumptions.

1Exit logicLeave when the entry idea stopped being true.For the default RSI example, momentum can define an exit before the result chart appears.
2Stop lossSet the risk boundary as a percent assumption.A stop is not a prediction. It is the line where the test admits the idea has failed enough.
3Take profitPredefine the release valve before the tempting equity curve.A target caps the planned exit behavior so the test is not tuned after seeing the best past move.
4Curve-fit riskChanging exits after reading the chart creates a new test.If exits move because the first result disappointed, the learner must label it as a new case.

Exit logic belongs in the rulebook before the result chart. Changing stops, targets, or exits after seeing performance creates a new backtest case.

Interactive desk lab

Backtest Exit Discipline Lab

A practical Backtest exit lab for comparing missing, momentum, stop-only, and stop-plus-target exits before reading the equity curve.

Native scroll

A practical Backtest exit lab for comparing missing, momentum, stop-only, and stop-plus-target exits before reading the equity curve.

48s Remotion sceneExitBeforeEquityVideo

Exits are written before the chart

A covered equity curve stays hidden while exit logic, stop loss, and take profit are stamped onto the rulebook first.

Storyboard beats4 cues
1

A tempting equity curve sits behind an opaque cover.

2

Exit logic, stop loss, and take profit cards slide in one at a time.

3

The cover lifts only after all exit assumptions are visible.

4

The final frame labels the result as a new case if exits change later.

Remotion code

ExitBeforeEquityVideo

The snippet is stored with the lesson so a future Remotion project can render the chapter video.

Show component snippet
import {AbsoluteFill, Easing, Sequence, interpolate, useCurrentFrame, useVideoConfig} from "remotion";

const cards = ["Exit logic", "Stop loss", "Take profit"];

export const ExitBeforeEquityVideo = () => {
  const frame = useCurrentFrame();
  const {fps} = useVideoConfig();
  const cover = interpolate(frame, [0, 3 * fps], [1, 0], {
    extrapolateLeft: "clamp",
    extrapolateRight: "clamp",
    easing: Easing.bezier(0.16, 1, 0.3, 1),
  });

  return (
    <AbsoluteFill style={{background: "#fff8e8", color: "#071126", padding: 72}}>
      <h1 style={{fontSize: 58, lineHeight: 1}}>Define exits before the chart tempts you.</h1>
      <div style={{marginTop: 60, height: 190, border: "1px solid #b69a5b", position: "relative", overflow: "hidden"}}>
        <div style={{position: "absolute", inset: 28, borderBottom: "5px solid #047857", transform: "skewY(-8deg)"}} />
        <div style={{position: "absolute", inset: 0, background: "#071126", opacity: cover}} />
      </div>
      {cards.map((card, index) => (
        <Sequence key={card} from={18 + index * 20} layout="none">
          <div style={{marginTop: 18, display: "inline-block", border: "1px solid #d9971f", padding: "12px 16px"}}>
            {card} locked
          </div>
        </Sequence>
      ))}
    </AbsoluteFill>
  );
};

Sources used for this tutorial

Next step

Open the tool with the checklist beside you.

Move from the lesson into the matching Bullion Brains tool, keep the checklist visible, and treat the output as evidence until the caveats are clear.

Open Strategy Backtester