Skip to main content
RSI cross, pasted Pine on a BTC chart

BTC on 1-hour bars in the 0xArchive Terminal, 2026-10-15.

Open on a chart

Load it on BTC 1h in the terminal, then change its settings or open it in the script editor.
The same RSI cross, as Pine Script v5 pasted from TradingView. The terminal translates it to a TypeScript script when it loads; in the script editor, Show as TypeScript shows the translation.

How it translates

  • var int crosses = 0 becomes a state.bar(0) cell, kept across bars and rolled back while the bar forms.
  • ta.rsi(close, len) and ta.crossover(r, 30) each become an instance created at the top and updated on every bar, as Pine keeps one history per call.
  • hline becomes plot.level, and the fill between the two levels a plot.fill between their handles.
  • plotshape becomes plot.shape, with shape.triangleup as triangleUp.
Compare it with RSI cross, the same script written by hand.

The script

rsi-pine.pine

Next step

See the next example, Ichimoku, pasted Pine.
Last modified on October 16, 2026