Loading your workbench

QTrader โ€” Pine Script and Python strategy workbench

Write a strategy in Python or a supported subset of Pine Script. Backtest it over historical candles and inspect individual trades, drawdown and fees.

Pine ScriptStrategy excerpt
fast = ta.sma(close, 50)
slow = ta.sma(close, 200)
 
if ta.crossover(fast, slow)
    strategy.entry("Long", strategy.long)
 
if ta.crossunder(fast, slow)
    strategy.close("Long")

Start in the browser without signing up. Trading robots require an account, a configured TradeAdapter connection and the appropriate broker access. Historical results do not predict future returns.

The interactive workbench needs JavaScript. Reload this page if interactive controls could not load.