AI Pine importer
Import a Pine Script strategy
Paste a TradingView Pine strategy or indicator. Our AI reads the supported indicators and entry/exit conditions and turns them into a rule set you can backtest — and tells you, honestly, what it couldn't map.
Try one of these
Supported Pine calls
We map these TradingView functions to our engine's indicators. A call lights up green when we find it in your script.
What we imported
Enters when
- EMA(9) crosses above EMA(21) (long)
- EMA(9) crosses below EMA(21) (short)
Opens the imported rules in the strategy editor. A free account lets you backtest them.
Don't just import it — prove it
Most tools let you run a backtest. We score it for robustness — probabilistic Sharpe, deflated Sharpe and overfitting checks — so you learn whether the edge is real or just curve-fit.
Advanced: generated rule YAML
name: EMA 9/21 Cross
weight: 1
long_only: false
indicators:
ema9:
kind: ema
period: 9
ema21:
kind: ema
period: 21
entry:
combine: AND
rules:
- lhs: {indicator: ema9}
op: crosses_up
rhs: {indicator: ema21}
direction: long
- lhs: {indicator: ema9}
op: crosses_down
rhs: {indicator: ema21}
direction: short
exit:
combine: OR
rules: []
risk: {}
Import log
Unsupported functions skipped: ta.crossover, ta.crossunder.
Imported 2 entry rules and 0 exit rules.
Anything we couldn't map is listed above — open the result in the builder to fill in the gaps by hand.
How the AI importer works
Our AI reads your script and builds a map of your indicator and input variables, then extracts the entry/exit conditions from strategy.entry/close/exit, if-blocks, and longCondition/shortCondition variables. Conditions our engine can represent (indicator-vs-indicator and indicator-vs-value comparisons, crosses, thresholds, TP/SL) are imported; raw price-vs-indicator rules and custom logic are flagged so you can adjust them in the builder.
This importer covers the subset of Pine our engine can represent — indicator comparisons, crosses and threshold rules. It is not a full Pine interpreter, and nothing here is financial advice.