How do I set an alert when the price moves a percent within some candles?

Open the full price alert form (More options), set Condition to Moving up % or Moving down %, type the move in Move by and the number of Confirmed bars. The bars are candles of the chart interval.

Use the Moving up % or Moving down % condition: it fires when the price moves that much over the number of candles you set.

  1. Set the chart to the interval you want the candles counted in, such as 1m.
  2. Right-click the chart and press the bell (Add alert), or press Alt+A, then press More options.
  3. Under Condition, pick Moving up % or Moving down %. Pick Moving up or Moving down for a move in price instead of percent.
  4. Type the size of the move in Move by, and the number of candles in Confirmed bars (1 to 500).
  5. Press Create Alert.

For example, on a 1m chart, Moving down % with Move by 1 and Confirmed bars 1 alerts when the price falls 1% over one closed 1m candle.

A move is measured between closed candles, so it is always checked when each candle closes: it cannot fire in the middle of a candle, and Confirmed bars starts at 1. The alert counts candles of 1m, 5m, 15m, 30m, 1h, 4h or 1D: another chart interval uses the nearest one below it, such as 1m for 3m.

There is no alert for a run of rising or falling candles in a row. For that, write an indicator with its own signal: see Can I set an alert on an indicator or my own script?