Turning an idea into testable rules

What you will learn

  • Turn a trading idea into a hypothesis with a reason behind it.
  • Write a complete rule set from price, moving averages, RSI, ATR and volume.
  • Size a position from the risk per trade and the stop distance.
  • Spot the ambiguities that let hindsight into a backtest.

Check your understanding

Answer each question to see the explanation. Answers are not saved.

  1. A breakout rule reads “buy when the close is above the highest high of the last 20 days”, and the 20 days include today. What goes wrong?

    1. A Nothing at all; including today simply makes the breakout signal arrive one day sooner
    2. B The condition can never be met, because today’s close cannot exceed today’s high
    3. C The rule will buy too often
    Show the answer

    Answer: B. The comparison must use the prior n bars. Including the current bar either makes the rule impossible or, with other fields, leaks the future.

  2. Equity is $50,000 and you risk 1% per trade. Entry is $40.00 and the stop is $38.00. How many shares do you buy?

    1. A 125 shares
    2. B 1,250 shares
    3. C 500 shares
    4. D 250 shares
    Show the answer

    Answer: D. Risk is $50,000 × 1% = $500 and the stop is $2.00 away, so 500 ÷ 2 = 250 shares. That is $10,000, 20% of equity.

  3. With $100,000 equity, 1% risk and a stop only $1 below a $100 entry, the formula asks for 1,000 shares. Your cap is 20% of equity per stock. What do you buy?

    1. A 1,000 shares, because the formula comes first
    2. B 200 shares, the cap
    3. C 100 shares, to be safe
    4. D Nothing; tight stops are not allowed
    Show the answer

    Answer: B. The cap limits the position to $20,000, or 200 shares at $100. Without it a tight stop would put the whole account into one stock.

  4. Why is “sell when the trend turns down” a problem in a backtest?

    1. A Trends cannot be measured on daily bars, only on weekly or monthly charts
    2. B The tester knows where trends turned, so exits drift towards the tops
    3. C It sells too late in every case
    Show the answer

    Answer: B. Vague wording lets hindsight decide the exits. The rule must say exactly which measurement, on which day, triggers the sale.

  5. A signal forms on today’s close. Which fill is the conservative default for a backtest?

    1. A Today’s close, the moment the signal forms
    2. B Today’s low, the cheapest price of the day
    3. C The next session’s open
    4. D The best price reached in the next session
    Show the answer

    Answer: C. The signal is only known after the close, so the first realistic fill is the next open. Today’s low or the next day’s best price are look-ahead.

  6. A test starts on 3 January 2000 and uses a 200-day moving-average filter. What does it need?

    1. A Price data from 1999, so the average has a value from the first day
    2. B Nothing more, because the average simply builds itself up during the first January
    3. C A shorter average for the first year
    Show the answer

    Answer: A. Every indicator needs a warm-up period. Without it, the first months run on an incomplete average, which is not the rule as written.

Continue in Clear Tape

With a free account, your progress and quiz scores are saved, and you can practise with the question bank, keep a wrong-answer book and study real chart examples.