Skip to content
Docs
SupportOpen Portal
Copy the page manually

Your browser did not allow direct clipboard access. Select and copy the Markdown below.

Pine Script converter

Paste your script, convert it, then configure PineConnector in TradingView.

Configure the converted scriptThe complete TradingView steps, also available without the converter.
  1. Open your TradingView chart and select Pine in the right toolbar. Create a new script in Pine Editor, paste the converted code, then save and add it to the chart.
  2. Open Settings → Inputs → PineConnector. License ID is the first field. Copy it from Portal → Connections and check which accounts use it. Review Volume method and Volume value, then choose one Stop loss method and one Take profit method. Pips and percentages use the value fields; Price uses separate buy/sell price fields. None omits that broker-level request. Loss-based volume requires a stop.
  3. For an indicator, choose the action for each condition you want to use. Conditions start at Do not send so the script does not guess whether a signal means an entry or an exit.
  4. Review historical chart previews before enabling alerts. Keep Show chart previews on in PineConnector visuals. Blue indicator markers follow your selected actions at bar close; conflicting events show an orange cross. Strategy blue markers show simulated entries, including reversals. Grey markers show exits without an opposite entry on the same bar. Strategy previews can appear on the next calculation but are placed on the recorded fill bar. They do not prove that an alert or broker trade occurred.
  5. Start with no open positions in your receiving demo accounts. For a strategy, its simulated position must also be flat. Then turn on Enable PineConnector alerts in Inputs.
  6. Open Create alert and select your converted script. For a strategy, choose Order fills only if TradingView shows an event selector; a strategy with only order fills may omit it. Open Message, enter {{strategy.order.alert_message}} and select Apply. For an indicator, choose Any alert() function call.
  7. Open Notifications, tick Webhook URL, enter https://webhook.pineconnector.com and select Apply. Review the script, symbol, interval, message and demo destination, then select Create. TradingView requires two-factor authentication for webhook alerts.

Alerts start off; entry volume defaults to 1 lot. Review the volume method, amount, broker stop and target, symbol and receiving accounts before enabling. Browser prefills can change these defaults. Verify the alert, PineConnector’s processing result and actual demo position. After changing inputs, replace the old alert so it uses the new values; remove duplicates.

If the result differs, pause the alert and use Missing signals or Errors.

Supported scripts and conversion detailsWhat changes, what stays the same and when a manual integration is needed.

The converter accepts supported Pine Script v5 and v6 strategies and indicators. It adds PineConnector settings to a separate copy; your pasted source stays unchanged.

Script How it connects
Strategy Adds messages to supported entry and full-exit orders. The alert follows TradingView’s simulated order fills.
Indicator Adds an action setting for each detected condition. Choose entries or closes in TradingView; unused conditions remain off.

A blank symbol override uses syminfo.ticker, the chart’s ticker. This must match the receiving broker’s symbol, including suffix and letter case; otherwise set the override. Basic includes all five volume methods: lots (initially 1), cash loss at a stop, balance loss at a stop, equity loss at a stop, and balance allocated as margin. The three loss-based methods require a stop. Choose pips, an exact price or a percentage of entry price for SL and TP, or None to omit that request. Margin allocation is not a loss limit. Exact prices stay fixed when you change symbols; separate buy/sell levels must be appropriate for the broker’s quote.

Advanced contains the optional symbol override, signal secret, entry filters, trade label, breakeven and trailing settings. Only the additional groups you choose are included in TradingView Inputs. You can add another group by updating the conversion. Breakeven and trailing require Shadow Targets to be off in the receiving EA. An entry label does not isolate the converter’s closing or reversing commands.

The tool stops on unsupported or ambiguous code and explains why. Use Add alerts to your script for a manual integration. If you do not have the source, find your alert setup.

The integration does not reproduce TradingView’s position sizing or place its simulated stops and targets as protective broker orders. Broker stops, targets, breakeven and trailing added through this converter operate separately. They can close before TradingView exits, and the adapter does not resynchronise their positions. Close commands affect matching positions within the EA’s scope on every account receiving the License ID. Use a dedicated symbol and scope, and check both actions of a reversal on demo. Compilation does not verify delivery or the broker outcome.

Your code and privacy

The converter does not upload the source, save the draft to browser storage or send trading signals. Support opens chat in a separate tab; your script is not attached.

Keep your source and downloaded copy private. Any secret prefilled here appears in the generated code and file. You can instead enter your License ID and signal secret in TradingView, and never use your broker password as a signal secret.