TradeSgnl Logo
Docs
TradeSgnl Logo
Docs
Syntax Generator

Syntax Generator

Build TradeSgnl signals visually instead of typing alert syntax by hand.

Introduction

The Syntax Generator is a visual form in the TradeSgnl Portal that builds signals for you. Pick your symbol, action, risk, and any optional parameters; the generator emits the exact text TradingView (or any other webhook source) needs to send. It also has a one-click Test Signal button that fires a signal straight into your terminal, so you can verify your EA is wired up correctly before touching TradingView at all.

No syntax to memorize

Every parameter has a labeled field with units, types, and inline validation. No more guessing whether to write sl= or sl_pips=.

Test before you trade

Click Test Signal to send the configured signal directly to your terminal. Trade appears in MT5 within seconds, no TradingView account required.

Reusable presets

Save a configured strategy once and load it in a click. Useful for managing multiple strategies on one license.

Open the Syntax Generator
Syntax Generator interface in the TradeSgnl Portal
The Syntax Generator: configure on the right, preview the generated signal on the left.

Verify Your Setup with Test Signal

The fastest way to confirm your EA, license, and terminal are all working is to send a Test Signal from the generator. This skips TradingView entirely, so you can isolate "is my EA receiving signals?" from "is my TradingView alert configured correctly?".

Open the Syntax Generator

In the Portal, open Tools → Syntax Generator (or visit it directly).

Open Syntax Generator

Pick your license

Select your license from the License ID dropdown. This determines which terminal the test signal will hit.

Fill the minimum fields

You only need three things to send a test trade:

  • Symbol. Any instrument your terminal can trade. BTCUSD is a safe default because it's tradable 24/7 and most brokers carry it.
  • Action. Pick Buy from the dropdown. You can close it later in MT5.
  • Risk. A tiny lot size like 0.01 keeps the test cheap.

Click Test Signal

On the Entry preview box (blue left border), click the Test Signal button. The generator sends the configured signal straight to your terminal.

Check your terminal

Open your CloudConnect terminal (or your MT5 desktop). A buy position for the symbol you picked should appear within a few seconds.

  • Trade appeared? Your EA, license, and connection are all working. Close it manually from MT5 when you're done.
  • No trade? Jump to Troubleshooting. The most common causes are: EA not attached to a chart, License ID mismatch, or the symbol isn't visible in Market Watch.

The Interface at a Glance

The page has two top-level tabs that switch what kind of order you're building. Everything below the tabs is one shared form.

TabUse it for
Market OrdersImmediate entries at current price — buy, sell, and reversal commands (close-then-buy / close-then-sell).
Pending OrdersOrders that fire when price reaches a level you set — buy stop, buy limit, sell stop, sell limit.

Below the tabs, you'll see:

  • Two preview boxes (Entry on top with a blue border, Exit on bottom with an orange border). Each shows the live generated signal text and has its own Copy and Test Signal buttons.
  • Two output-mode buttons for paste-ready strings: Custom Strategy Message (one alert handles entries, exits, and reversals) and Strategy Builder Preset (JSON for the Strategy Builder UI).
  • The configuration card with three grouped sections: shared fields, entry signal, and exit signal.

Configuring a Signal

Shared Fields

These apply to both tabs and to both entry and exit signals.

FieldWhat it doesTip
License IDWhich terminal receives the signal.Required for any copy or test action.
SymbolThe instrument to trade (EURUSD, BTCUSD, XAUUSD).Leave blank to insert the TradingView placeholder {{ticker}} automatically.
CommentA label that tags the trade.Use it to filter close commands later (e.g. closeall,comment=Strategy1). Recommended when you run more than one strategy on the same license.

Market Orders

The Market Orders tab handles immediate entries and reversal-style commands.

Action options:

  • Buy / Sell. Open a new position at market price.
  • Close Long Then Buy / Sell. Close any existing long positions, then open the chosen direction. Useful for "always be in a position" strategies.
  • Close Short Then Buy / Sell. Same idea, but closes shorts first.

Risk / Volume. Number input plus a type selector that determines how the number is interpreted:

TypeWhat the value meansNotes
DefaultUses the EA's configured volume type.Pick this if you don't want to override per-signal.
LotsExact lot size (0.5 = half a standard lot).
% Balance / % EquityLot size scaled to account size.
Dollar RiskRisk a fixed dollar amount if the trade hits SL.Requires SL.
% Bal Loss / % Eq LossLose this percent of balance/equity at SL.Requires SL.

Stop Loss & Take Profit. Each has a number and a type selector (Pips, Currency, Price, Percent). The generator emits the correct explicit parameter (sl_pips=, sl_price=, tp_percent=, etc.) so you don't need to remember the naming.

Multi-level take profit with partials. Click the plus icon next to Take Profit to add up to five TP levels. Each level can also have its own partial-close amount, so a single signal can scale out at multiple targets.

Pending Orders

The Pending Orders tab adds a Pending Level field. Everything else (risk, SL, TP, advanced features) works the same way.

Pending Orders tab with the Pending Level field above SL and TP
Pending Orders adds a single Pending Level field; the rest of the form is identical to Market Orders.

Action options: Buy Stop, Buy Limit, Sell Stop, Sell Limit.

Pending Level has its own type selector:

TypeWhat the value means
DefaultUses the EA's "Pending Order Entry" setting.
PipsDistance in pips from current price.
PriceAbsolute price level.
PercentPercentage offset from current price.

Exit Signal

The Exit section (orange border) builds the closing half of a strategy. The generator auto-suggests an exit action based on your entry action (Buy → Close Buy, Sell → Close Sell, Close Long Then Buy → Close Buy, etc.), but you can override it.

Exit ActionCloses
Close BuyAll long positions for the symbol.
Close SellAll short positions for the symbol.
Close AllEvery open position for the symbol, regardless of direction.
Cancel Long OrdersPending buy stop / buy limit orders. (Pending tab only)
Cancel Short OrdersPending sell stop / sell limit orders. (Pending tab only)

Partial close. Optional — if you want to close only part of the position. The amount can be in lots or percent of the position (0.5 = 50%).

Advanced Features

The Advanced Features section is collapsed by default. Expand it to add trailing stops, breakeven, pyramid, or recovery to any signal.

Advanced Features section expanded showing trailing, breakeven, pyramid, and recovery controls
Advanced Features rolled up into one collapsible section so the main form stays uncluttered.

Trailing Stop

FieldWhat it does
Trailing TriggerProfit distance needed before trailing kicks in.
Trailing DistanceHow far behind price the SL trails.
Trailing StepMinimum price movement before SL re-adjusts.

Breakeven

FieldWhat it does
Breakeven TriggerProfit distance needed before SL moves.
Breakeven OffsetHow many pips past entry to place the SL (use 0 for true breakeven, positive to lock in a small profit).

Pyramid

Toggle to include the py flag. The EA opens additional positions in the same direction as the trade moves in your favor, using the rules configured in EA Settings → Pyramid Management.

How pyramiding works

Recovery

Toggle to include the re flag. The EA opens additional positions in the same direction as the trade moves against you, using the rules configured in EA Settings → Recovery Management.

How recovery works

Exit Controls

Three toggles change how the EA treats opposite-direction positions when the entry fires:

ToggleBehavior
Exit on OppositeClose opposite positions, then stop (no new trade).
Exit on EntryClose opposite positions, then open the new trade (reversal).
Ignore Exit SignalsDrop this strategy's close commands server-side. Useful if you want the strategy's entries but the EA's TP/SL/trailing to handle exits.

Output Options

The generator produces three different outputs depending on how you want to use it. Pick based on what you're integrating with.

Entry & Exit Signals

The two preview boxes at the top show the individual entry and exit signal text. Use the per-box Copy button to grab one signal at a time.

When to use: you want to create separate TradingView alerts for entries and exits (or you're integrating with something other than TradingView).

LicenseID,EURUSD,buy,risk=0.01,sl_pips=30,tp_pips=60

Custom Strategy Message

Click Custom Strategy Message to copy a single message that handles entries, exits, and reversals. It uses TradingView's {{strategy.prev_market_position}}>{{strategy.market_position}} placeholder, which the TradeSgnl server translates into the right action verb (flat>longbuy, long>flatclosebuy, long>shortcloselongsell, etc.).

Custom Strategy Message button in the Syntax Generator
One click copies the unified message that handles every signal type from one alert.

When to use: you have a Pine Script strategy and want one alert to handle every signal it fires.

LicenseID,{{ticker}},{{strategy.prev_market_position}}>{{strategy.market_position}},risk=0.01,sl_pips=30,tp_pips=60
Full no-code setup walkthrough

Strategy Builder Preset

Click Strategy Builder Preset to copy a JSON preset for pasting into the TradeSgnl Strategy Builder. The Builder is a Pine Script that runs on your TradingView chart and reads the preset to generate signals; you only need to configure your alert message as {{strategy.order.alert_message}} and the Builder does the rest.

Strategy Builder Preset button in the Syntax Generator
Copy the full preset and paste it into the Strategy Builder's Signal Preset field on your chart.

When to use: you're using the TradeSgnl Strategy Builder to wire any strategy or indicator into automated trading.

Strategy Builder setup

Saved Presets

Once a configuration is dialed in, save it for later.

Save a preset

Click Save Preset in the header. The generator auto-suggests a name based on symbol + action + comment. Edit it and confirm.

Save Preset popover with auto-suggested name based on symbol, action, and comment
The preset name auto-fills from your symbol, action, and comment so you rarely need to type it.

Load a preset

Click Presets in the header to see your saved configurations grouped by Market vs Pending. Click any preset to load it into the form.

Presets dropdown menu showing saved configurations grouped by order type
Saved presets appear grouped by Market vs Pending so the list stays scannable as it grows.

Update or delete

When you edit a loaded preset, the Save button changes to Save Changes. The trash icon next to each preset removes it (with a confirm step).

Update Preset popover with Update button replacing the default Save action
Editing a loaded preset switches the action to Update, so you don't accidentally create duplicates.

Where to Use the Output

The Generator produces three different outputs because there are three different ways to automate with TradeSgnl. Pick the card that matches what you're automating — each one links to a full setup guide that covers TradingView alert configuration, webhook URLs, and any strategy-side wiring you need.

Frequently Asked Questions

Do I still need to learn the raw signal syntax?

No — the generator covers every parameter the EA accepts, including the explicit-type variants (sl_pips=, vol_dollar=, tp_percent=, etc.). The Signal Reference page exists for Pine Script authors and integrators who want the raw format, but most users never need to read it.

What does the Test Signal button actually do?

It sends the exact configured signal to your terminal via the same path TradingView would use. The trade is real (subject to your terminal's connection and balance), but it skips the TradingView alert layer entirely. Use a tiny risk value when testing.

Why is the Test Signal button disabled?

It requires License, Symbol, Action, and Risk to all be filled. Hover the disabled button to see which field is missing. (Copy buttons have lower requirements — just License is enough to copy.)

Can I use Test Signal on a live account?

Yes, but the trade is real. The button respects your terminal's balance, leverage, and broker rules. Use a demo terminal or a tiny risk size (0.01) for verification.

Do I need to fill in Symbol and Action if I'm pasting into a Pine Script strategy?

No. Leave them blank and the generator inserts the TradingView placeholders {{ticker}} and {{strategy.order.action}} automatically. They'll be filled in at runtime by TradingView when the alert fires.

What happens to my saved presets if I delete a license?

Presets are stored per user, not per license. If you delete the license the preset references, the preset stays but its signals will fail to dispatch until you switch it to a valid license.

Can I share presets with other users?

Not directly — presets are private to your account. The simplest way to share a configuration is to send someone the generated signal string and let them rebuild the preset on their side.

What's the difference between the three output buttons?

The two preview Copy buttons grab the entry or exit signal individually (one alert per signal type). The Custom Strategy Message button copies one message that handles all signal types via TradingView's transition pair. The Strategy Builder Preset button copies JSON for pasting into the TradeSgnl Strategy Builder. Pick based on whether you want one alert per signal, one alert per strategy, or you're using the Builder.