FINGER TRADER

Hands-on tutorials

Example 2: RSI Range Reversion

Use RSI(14), cross above 30 to enter and cross below 70 to exit. Learn the difference between a cross and a state.

Updated 18 November 2026

Read the template before copying

The current template opens a long when RSI crosses above 30 while flat and closes it when RSI crosses below 70 while long. It does not buy merely because RSI is below 30, and it does not close merely because RSI rises above 70.

For input ports and fixed values, read “Left input port reference” and “Fixed value or strategy parameter?” in Build a visual strategy.

The current RSI template uses crossing events, not “RSI < 30” or “RSI > 70” states.
  1. Entry: RSI crosses upward through 30 while flat.
  2. Exit: RSI crosses downward through 70 while a long position exists, or the configured protection triggers.
  3. The preview lists 1 integer unit, 2% stop loss and 4% take profit. Review these again in your copied project.

Create the model and check its inputs

  1. Open Strategy Templates → RSI Range Reversion → Use Template. Name the copy “Lesson 2 · RSI Range”.
  2. In My Strategies set the RSI node to period 14 and connect the selected bar Close to its Input Price. Keep a single calculation source and timeframe.
  3. Connect RSI to the left value of Cross Above and Cross Below. Use ratio-compatible values for the right inputs: Entry Level 30 and Exit Level 70. The template already includes these parameter nodes.
  4. Connect Cross Above to the long-entry condition and Cross Below to the close condition. In Condition Rules read “RSI crosses above 30” and “RSI crosses below 70”.
  5. Keep entry only when flat and a full-position reduce-only exit. Review 1 integer unit, 2% stop loss and 4% take profit; check and save the project.

A crossing event needs two valid values

These are illustrative RSI values, not an actual test dataset. The downward exit through 70 requires RSI to have reached or exceeded 70 first. If it never does, protection can still close the position. Do not add a new exit rule without intending to change the strategy.

A crossing event needs two valid values
Previous RSI → current RSIConditionExpected action
28 → 32Crosses above 30If flat, request a long entry
32 → 36Still above 30No new entry
68 → 72Rises above 70No threshold exit
72 → 68Crosses below 70If long, request a close
Invalid warm-up → first valid valueNo valid previous pairNot a cross

Use the same replay workflow

  1. Open Replay Settings and select “Lesson 2 · RSI Range”. Use the same dataset, simulated capital, sizing, leverage and fee settings as Example 1 if you want a controlled comparison.
  2. Check protection and Trading Costs. A fill notional of 1,000 at a fee rate of 0.1% incurs a fee of 1 in the quote currency; a later exit has its own fee.
  3. Save Settings and Play. In chart indicator settings add RSI with period 14 and the same source/timeframe. Chart display settings do not rewrite the strategy node.
  4. Pause near the first fill. Compare the two confirmed RSI values around 30, the signal time, the fill time and the position/order logs.
Scroll down in the same settings dialog to check protection and Trading Costs.
  1. The screenshot uses 2% stop loss and 4% take profit. They are percentages of the position average fill price, not of leverage.
  2. Fee Rate is entered as a percentage: 0.1 means 0.1%, not 10%. Each fill is charged separately.
  3. Save Settings, then Play in Replay Controls. Pause and Next Bar help inspect a fill; Stop discards the current execution state for a fresh run.

What to check before moving on

Success means the configured rules match the signals and fills, not that the return must be positive. After one completed entry and exit, move to the MACD + RSI lesson to combine conditions.

  1. No entry? Check warm-up and whether RSI actually crossed upward through 30 during the selected trading interval.
  2. A close before the downward 70 cross? Inspect whether the 2% stop loss or 4% take profit fired.
  3. Many buys in a row? Check that Cross Above is used rather than Greater Than, and that the entry is guarded by a flat position.
  4. No fills despite a signal? Read rejection logs for contract quantity, available margin and fees.

For the current Desktop workflow. Labels and available capabilities can vary by application version and connected provider.