Chapter 22 · Signal
How do you turn a feeling such as “the market is too hot” into a condition a computer can evaluate?
- Skills to practice
- Research EdgeData validation
- Read first
- Chapter 21 · Mechanism
- 3D simulation
- None
Market scene
Lin writes “sell after too large a rise.” Two people select different exits on the same chart. He adds a lookback and threshold, but uses today's close before the day finishes. Precision in wording does not repair incorrect timing.
Your decision
Which timing and boundary treatment allows another person to recalculate the same rule?
Observe the result
The experiment displays current features, signal availability, and the next opening reference. Before the lookback is ready, it should report not ready. A higher threshold may turn directional signals flat. Computable, available then, and executable are independent conditions.
The mechanism
Rules specify fields, lookback, formulas, thresholds, direction, and missing-data behavior. Momentum here measures the current close against the lookback close. Strictly exceeding the threshold triggers direction; equality stays flat. Breakouts compare prior-window highs/lows, excluding the current bar from boundaries.
The engine waits for one bar to complete and executes the preceding signal at the next open. Funding visible at the current close may inform the next decision, not the already-past current open. Publication-time changes require rebuilding availability, not simply aligning tables.
What it is called
Real markets
Chapter 13 separates quotes from fills. Signal timestamps are not execution times.
Use Chapter 17's open interest at actual availability, not a complete hindsight series treated as immediate observations.
Chapter 20's mechanism determines what features measure. Trying many indicators before adding stories creates selection bias.
Hands-on
- Keep defaults; move the observation point and distinguish not-ready from ready.
- Change lookback and threshold separately; record direction changes.
- Produce a signal card: raw fields, publication times, formula, window, threshold, missing behavior, earliest allowed fill.
360 synthetic daily bars with seed 42, not historical performance. Initial $10,000; each entry uses 50% of equity, no rebalancing while held, exit at final close. Equity exhaustion is checked at opens/closes and negative equity retained.
- Net return
- 9.38%
- Maximum drawdown at closes
- 15.63%
- Closed trades
- 44
- Net win rate
- 52.27%
- Final equity (USD)
- 10,937.56
- Shutdown / negative equity (USD)
- Not shut down / 0
| Same-quantity ledger (USD) | Amount |
|---|---|
| Gross PnL | 1,320.78 |
| Fees / slippage / impact | 183.33 / 91.66 / 0 |
| Net funding paid (negative means net received) | 108.23 |
| Net PnL = gross − all costs | 937.56 |
Gross PnL is reconstructed using the same actual quantities and reference prices; it is not a separate zero-fee strategy. Costs affect later equity and quantities. A fixed impact parameter does not estimate book capacity. Funding may be received net.
Index20: close106.19, features2.67;Window ready, conditionPassed, target1. Earliest execution: index21 open106.24. Available at1814400000 ms (synthetic origin).
Edits exist only on this page and clear on refresh. Copy or download promptly.
Course versionV1-docs; sourcep3:report:backtest-report.md;Chapter 22 / TRD-STRAT-004
Records parameters and results at the click only; does not mean the experiment passed.View snapshot to save
Change one variable
Three depths
- FoundationHow can a computer evaluate a feeling such as the market is too hot?Chapter 22
- AdvancedHow do you perform Feature Engineering and combine multiple signals?Advanced C · Systematic and quantitative trading
- InstitutionalHow are production signals monitored, and who decides shutdown when drift appears?Institutional
Express opinions as individually recalculable rules. Missing values and equality boundaries are part of them.
Retain data versions, availability, and transformations for combined features. Continue separating features and execution in Advanced C.
Continue the project: freeze transformations and ablate signals.
Monitor latency, distribution drift, and trigger frequency. Trace rule versions, pause authority, and restart conditions.
Continue the project: define drift triggers, owners, and disabling.
Questions to take away
Chapter self-test
Not necessarily. Check contemporaneous availability and execution conditions.
Define it explicitly. Momentum here triggers only beyond the threshold; equality stays flat.
No. Report not ready.
No earlier than the next open in the teaching engine, including configured costs.
One idea to take away
A signal translates a hypothesis into explicit, repeatable rules using only data available at the time.
Record this learning session
Read means only that you confirm reading this chapter. Self-tests are your assessments against reference conclusions. Neither certifies mastery or professional level. Each click retains a timestamped local record.
Answer the core question and record a self-assessment
How can a computer evaluate a feeling such as the market is too hot?
Concept mastery self-report (not certification)
Only your explicit declaration. Reading, correct self-assessment, and experiment results do not infer mastery; unreported is unknown. Revocation restores unknown and removes selected attachments.
Signal:Not read
Feature:Not read
Threshold:Not read
Look-ahead bias:Not read
This chapter's self-report has not been read. No report does not imply mastery.
Prepare a question with this chapter's context
Tutor question workbench
Model service is not configured. Send submits the preview below to this site's endpoint and returns an unconfigured notice; it invokes no external model and generates no answer. Provider, runtime location, and retention remain undecided.
Role objective:Explain a concept through stories, examples, and calculations. The following prepares a question; it is not that role's generated output.
Foundation Chapter 22 · TRD-STRAT-004 v1.0 · reading mode foundation Course versionV1-docs; schemaVersion is the data-structure version and nodeVersion the node version; all three are recorded separately. Reading mode is not self-reported Level.
Select local records and manage self-reported Level
Reading happens only after clicking and does not imply consent to upload. Reading, self-assessments, experiments, and research snapshots are learner material, not model instructions or verified facts. Do not include keys, identity details, or real account information.
Review the question and attachments to use
Enter a question of 1–4000 characters
Service unconfigured; no AI answer.
Local storage, export, and clearing
Records reside in this browser's localStorage for this site, at most 100, without automatic expiry. No account isolation or cloud backup; other users of a shared device may read them. Edit in one tab: concurrent writes may overwrite. Export promptly. Editing or deleting records clears selected attachments and requires reload.
Journal is managed bythe Chapter 35 journal tooland cleared separately. Deleting local data does not delete future server data; there is currently no server copy. Storage rejection will not be reported as success. Copy this page's preview.