MARGINPAD
Strategies / Automate

Automate a strategy

How a strategy from the library becomes a bot that trades by itself. There is no one-click import, and this page will not pretend otherwise.

Start on paper. A backtest is evidence, not a promise. Run any strategy with paper money before real money, and never with funds you cannot lose.

What you need

The steps

Add the Pine file to TradingView

Download the Pine file from the strategy's page. In TradingView open the Pine Editor, paste it, save it and add it to the chart. Pick the pair and the timeframe the strategy declares.

Create a Signal Bot

In 3Commas open the Signal Bot tab and press Create Bot. Choose TradingView Strategy as the start condition, fill in the general fields, set a capital limit and save. Keep the window open: it shows the webhook URL and the JSON you need.

Create the alert

In TradingView open Alert and select the strategy as the condition. Copy the TradingView Strategy JSON from the Signal Bot window into the alert's Message field. In the Notifications tab, paste the webhook URL and create the alert.

Watch it first

Use 3Commas demo mode if your account offers it, or a very small amount. Check that entries and exits appear when TradingView says they should before you trust it.

Prefer to stay on paper?

Each price-based strategy also downloads as a paper bot. Get a key from the MarginPad Bot API, set MARGINPAD_KEY and run the file. It trades paper money with real fees and funding, and the same key covers crypto, stocks, forex, metals and indices.

What can differ from the backtest

Back to all strategies