PINE//OPS
STATUSSTANDBY

Pine Script strategy tester

strategy.entry / exit / close on sample or CSV data.

v6
Press Compile to plot your script.
DATASAMPLE (600 daily bars)

A quick backtest without leaving the browser

Write a strategy() script, press Backtest and PineOps simulates the orders on the loaded bars. Entries and exits are marked on the chart and the console prints a report.

How orders are filled

  • Market orders fill at the open of the next bar.
  • Limit and stop orders fill when a later bar's range reaches the price (or at the open if it gaps through).
  • strategy.exit supports stop, limit, and loss/profit in ticks.
  • default_qty_type (fixed, cash, percent of equity), pyramiding and commission are honoured.

This is a simplified emulator intended for checking logic. It does not model slippage, margin, intrabar order sequencing or trailing stops, so treat the numbers as a sanity check and not as a performance claim.

Frequently asked questions

Can I backtest on my own data?

Yes. Use Load CSV under the chart. The file needs a header row with open, high, low and close columns; time and volume are optional.

Are these results investment advice?

No. The tester is an educational tool running on sample data with a simplified fill model. Past simulated performance does not predict future results.

Is this the official TradingView compiler?

No. PineOps is an independent Pine Script engine written from scratch that runs in your browser. It checks syntax and version rules, executes your script bar by bar and plots the result. It covers a large subset of the language; anything it does not support yet is reported as a clear error rather than silently ignored.

Is my code sent to a server?

No. Compilation and execution happen entirely in your browser. Share links store the code in the URL fragment, which browsers do not send to servers.

Related tools

Recon mode — drag to orbit · click to ping · scroll for altitude