Matana Labs

Export to Pine Script: test here, run it on TradingView

Build and test a strategy in Matana Labs, then export it as a Pine Script strategy and run it on TradingView. The script holds the strategy’s rules and settings, no market data. Anything that couldn’t be translated exactly is listed at the top of the script, and results will differ, because TradingView evaluates once per bar while Matana Labs fills by the second.

How to export

The Export to Pine Script window: Results will differ, the Pine version and asset type, what was not translated or translated approximately, the script, and Download .pine and Copy
Export to Pine Script, with what didn’t translate listed first.
  1. Open the strategy in Strategies (Strategy Lab) and test it.
  2. Press Export in the header and choose Export → Pine Script (also in the Code tab).
  3. Press Copy, or download it as a .pine file.
  4. In TradingView, open the Pine editor, paste the script and add it to a chart.
  5. Read the note at the top: it lists what didn’t translate exactly.

What you get on each plan

Pine Script export is on every plan:

PlanPriceSmallest bar
ExploreFree10-minute
Builder$39/month1-minute (better than Explore)
Pro$49/month30-second (better than Builder)
Quant$89/month1-second (better than Pro)

Highlighted: better than the plan above. Compare every plan side by side on the pricing page

Limits

Screenshots show the real app on a test data set. Backtests and simulations are not real trading, and past results don’t guarantee future ones. Not investment advice.

Keep reading

See Matana Labs plans, from free

Questions

Will TradingView show the same results?

No, and the export says so. TradingView evaluates once per bar and fills by bars; Matana Labs fills by the second, so entries, exits and costs differ.

Can I import Pine Script into Matana Labs?

No. Export goes one way; build the strategy from blocks or describe it in words instead.

Does the script contain market data?

No. Only the strategy’s rules and settings.