Learn
Lesson · Technical Indicators

Indicator-Based Trading Rules

Convert indicator observations into deterministic conditions, apply trend, strength, and volatility filters, visualize entry and exit events, detect contradictory rules, and export a machine-readable specification.

Review the process
Synthetic educational data

Core concepts

Understand what the indicator calculates, how its parameters affect it, and what it cannot establish by itself.

1

Boolean conditions

A rule must resolve to true or false from known bar data and explicit parameters.

2

Separate filter, trigger, and exit

A filter defines when a setup is allowed, a trigger defines the event, and an exit defines when the position state ends.

3

No performance claim

A logically complete rule can still lose money. Performance, robustness, costs, and overfitting belong to later testing courses.

Interactive lesson

Change the inputs, inspect the calculation, and compare the indicator with the underlying price data.

Rule event simulatorSignals only — no profit or performance model
EntryExitEMA filter
Events are calculated on completed synthetic bars. This lesson scores rule clarity and internal consistency, not profitability.

Rule specification

Interpretation

Change the conditions and inspect the resulting events.
Scope: This simulator does not calculate returns, slippage, fees, position sizing, or statistical significance. Those belong to Trading Risk Management and Backtesting and Trading Systems.

Write an indicator rule specification

Every condition must be computable without subjective chart interpretation.

1

Define the data and timing

Specify instrument, timeframe, adjusted data policy, and completed-bar timing.

2

Define filters

State trend, strength, volatility, and any market-regime requirements.

3

Define the trigger

Use an exact crossover, threshold transition, or rolling-boundary event.

4

Define state and exit

Prevent duplicate entries while active and specify exact exit, reset, and invalidation behavior.

Deterministic indicator rules

Score 0 / 0

Lesson rule

A machine-readable indicator rule must specify inputs, parameters, bar timing, Boolean conditions, state handling, and exit logic before it can be tested.

Common mistakes

1
Writing subjective conditionsPhrases such as strong momentum or near support cannot be executed consistently without numerical definitions.
2
Combining contradictory direction and triggerA long system using only bearish filters or triggers may be internally inconsistent even though the code runs.
3
Evaluating profitability before data integrityA backtest is meaningless if adjustment, warm-up, timing, and signal-state rules are undefined.

Completion standard

✓
Finish when another person or program can reproduce every event.

Export the rule, verify that all conditions and parameters are explicit, inspect contradictory combinations, and confirm that the same bar sequence produces the same entries and exits.

Calculation note: The simulator uses synthetic completed bars and standard course formulas. It intentionally omits performance calculations so a logically complete rule is not confused with a validated trading system.

Kept in this browser only, for you. Nothing is sent anywhere and nothing checks it. Carry it to another device.

Feedback and recommendations

Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.

No recommendations yet for this lesson.