Trader OS
Phase 4 · Strategy thinking

Chapter 22 · Signal

How do you turn a feeling such as “the market is too hot” into a condition a computer can evaluate?

Reading mode
Phase 4 · Strategy thinkingTRD-STRAT-004 · v1.0
Skills to practice
Research EdgeData validation
3D simulation
None

Market scene

Your current reading mode collapses this section.

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

Your current reading mode collapses this section.

Which timing and boundary treatment allows another person to recalculate the same rule?

Observe the result

Your current reading mode collapses this section.

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

SignalSignal
A rule mapping then-available inputs to target direction or no trade.
FeatureFeature
A descriptive quantity derived from raw fields, with explicit window and availability.
ThresholdThreshold
A trigger boundary requiring explicit strict inequality or equality inclusion.
Look-ahead biasLook-ahead Bias
Decisions use information not yet known, even if the final dataset looks complete.

Real markets

Information after closingMarket data

Chapter 13 separates quotes from fills. Signal timestamps are not execution times.

Published open interestDerivatives

Use Chapter 17's open interest at actual availability, not a complete hindsight series treated as immediate observations.

Hypotheses before featuresResearch records

Chapter 20's mechanism determines what features measure. Trying many indicators before adding stories creates selection bias.

Hands-on

LabTurn a vague opinion into deterministic rules25 minutesPage experiment and local text
  1. Keep defaults; move the observation point and distinguish not-ready from ready.
  2. Change lookback and threshold separately; record direction changes.
  3. 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 PnL1,320.78
Fees / slippage / impact183.33 / 91.66 / 0
Net funding paid (negative means net received)108.23
Net PnL = gross − all costs937.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

IfMove only the observation before warm-up
Insufficient history means not ready; future data cannot fill the gap.
IfRaise only the threshold
Triggers may decrease without guaranteeing better returns or quality.
IfDelay only a field's publication
Earliest trading shifts later; the original fill price may be unavailable.

Three depths

One knowledge nodeTRD-STRAT-004: one question at each of three depths
  1. FoundationHow can a computer evaluate a feeling such as the market is too hot?Chapter 22
  2. AdvancedHow do you perform Feature Engineering and combine multiple signals?Advanced C · Systematic and quantitative trading
  3. 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.

Questions to take away

4
What are the probability and payoff odds? Is expectancy positive?
List inputs truly visible at decision time.
5
What is the worst-case loss?
Separate predictive power from attractive hindsight results on complete data.
10
After the outcome, how do I distinguish luck from decisions?
Apply predefined stops for missing, late, and drifting data.

Chapter self-test

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.

Select attachments individually (at most 10; none selected by default)

No loaded records. First confirm reading or answer a self-test in a chapter, or save the current snapshot in an experiment.

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.

Manage local records and Tutor questions

On this page