Coming from Pine Script

A real import, the ideas side by side, and the names that translate.

This is a real run of the importer on a small Pine Script script. The result compiles. 8 lines were read: 5 carried over exactly, 2 were adapted and 2 came back as decisions for you.

What you paste · Pine Script
//@version=5
strategy("RSI Dip", overlay=true)
len = input.int(14, "RSI Length")
r = ta.rsi(close, len)
if ta.crossover(r, 30)
strategy.entry("L", strategy.long)
if ta.crossunder(r, 70)
strategy.close("L")
plot(ta.ema(close, 200), color=color.orange)
What you get back
1strategy "RSI Dip"
2market: EURUSD
3bars: 1h
4
5input len = 14
6
7r = rsi(close, len)
8
9when crosses_above(r, 30):
10buy size: 1 lot, tag: "L"
11
12when crosses_below(r, 70):
13close_all tag: "L"
14
15plot ema(close, 200), color: orange

Line by line

StatusYour lineWhat happened
Exactstrategy("RSI Dip", overlay=true)strategy() became the script header
Exactlen = input.int(14, "RSI Length")input() became an input
Exactr = ta.rsi(close, len)a calculation was carried over
Your callstrategy.entry("L", strategy.long)strategy.entry() had no size of its own, so it became one lot: set the size or risk you want
Adaptedif ta.crossover(r, 30)an if that places orders became a rule
Exactstrategy.close("L")strategy.close() became close_all
Adaptedif ta.crossunder(r, 70)an if that places orders became a rule
Exactplot(ta.ema(close, 200), color=color.orange)plot() became plot
Your callstrategy(...)Pine scripts carry no market or bar size, so EURUSD on 1h was filled in: set the ones you want

How the ideas translate

In Pine ScriptIn AlgoBarsX
strategy("RSI Dip", overlay=true)strategy "RSI Dip" with market: and bars: stated. Pine takes both from the chart, so they come back as your decision.
len = input.int(14, "RSI Length")input len = 14
ta.rsi(close, len)rsi(close, len)
if cond, then strategy.entry(...) under itwhen cond: with buy under it
strategy.close("L")close_all tag: "L"
plot(x, color=color.orange)plot x, color: orange
var count = 0state count = 0
close[1]close[1], exactly the same
Tip. Pine does not say how big the position is, so the import uses one lot and hands the choice back to you. Replace it with risk: 1% and a stop.

Names the importer translates for you

Their nameAlgoBarsX
ta.smasma
ta.emaema
ta.rmarma
ta.wmawma
ta.hmahma
ta.vwmavwma
ta.demadema
ta.tematema
ta.rsirsi
ta.ccicci
ta.rocroc
ta.mommomentum
ta.stdevstdev
ta.variancevariance
ta.highesthighest
ta.lowestlowest
ta.medianmedian
ta.linreglinreg
ta.correlationcorrelation
ta.atratr
ta.trtrue_range
ta.mfimfi
ta.obvobv
ta.vwapvwap
ta.barssincebars_since
ta.crossovercrosses_above
ta.crossundercrosses_below
ta.crosscrosses
ta.cumcum
ta.trixtrix
ta.cmocmo
math.absabs
math.maxmax
math.minmin
math.roundround
math.floorfloor
math.ceilceil
math.sqrtsqrt
math.loglog
math.expexp
math.powpow
math.signsign
bar_indexbar.index
syminfo.tickeridmarket.symbol
syminfo.tickermarket.symbol
syminfo.mintickmarket.point_size
color.greengreen
color.redred
color.blueblue
color.orangeorange
color.yellowyellow
color.purplepurple
color.tealteal
color.graygray
color.greygray
color.whitewhite
color.blackblack
color.limegreen
color.maroonred
color.silvergray
color.aquateal
strategy.longlong
strategy.shortshort
Read every import before you run it. Compare the plain-English description with what your original did, settle each decision, and backtest before you deploy.

Try this in the Terminal. AlgoBars is free: $0 a month, no card needed.

Create my free account