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.
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.
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.
A practical Backtest exit lab for comparing missing, momentum, stop-only, and stop-plus-target exits before reading the equity curve.
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.
A tempting equity curve sits behind an opaque cover.
Exit logic, stop loss, and take profit cards slide in one at a time.
The cover lifts only after all exit assumptions are visible.
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.