PineConnector cheatsheet
A compact command and parameter index with links to the full rules.
Use this as a quick index after setting up your connection. It does not replace checking the intended account, broker symbol or EA settings.
Message and webhook
Section titled “Message and webhook”Replace LicenseID, use the broker’s exact symbol, and send one complete message. Complete secret= if Signal Authentication is enabled. Message basics.
TradingView’s Webhook URL field; separate from the Message field.
Volume and targets
Section titled “Volume and targets”| Choose one method | Parameters | Required context |
|---|---|---|
| Volume | vol_lots= |
Fixed lots; broker volume limits |
| Cash risk | vol_dollar= |
Account currency and an explicit stop |
| Balance/equity loss | vol_pct_bal_loss=, vol_pct_eq_loss= |
Choose one base and an explicit stop |
| Margin sizing | vol_pct_bal_margin= |
Balance percentage used as margin, not maximum loss |
| Stop loss | sl_pips=, sl_price=, sl_pct= |
Choose one: pips, exact price or entry-price percentage |
| Take profit | tp_pips=, tp_price=, tp_pct= |
Choose one: pips, exact price or entry-price percentage |
One PineConnector pip is ten symbol points. 1 in a percentage parameter means 1%. Volume and target reference.
Entries
Section titled “Entries”| Command | Requested entry |
|---|---|
buy (long, bull, bullish) |
Buy at market |
sell (short, bear, bearish) |
Sell at market |
buystop |
Pending buy above market |
buylimit |
Pending buy below market |
sellstop |
Pending sell below market |
selllimit |
Pending sell above market |
Pending orders need one entry_pips=, entry_price= or entry_pct=, plus volume. Loss-based volume still needs a stop. Order reference.
Close, cancel and modify
Section titled “Close, cancel and modify”| Commands | Requested action |
|---|---|
closelong, closeshort, closelongshort |
Close one or both directions for the symbol |
closelongpct, closeshortpct |
Partial close using the EA’s configured percentage |
closelongvol, closeshortvol |
Close volume specified by risk=; include the symbol |
cancellong, cancelshort |
Cancel buy or sell pending orders |
newsltplong, newsltpshort |
Modify open-position SL/TP |
newsltpbuystop, newsltpbuylimit |
Modify buy pending-order SL/TP |
newsltpsellstop, newsltpselllimit |
Modify sell pending-order SL/TP |
Closing/modification scope depends on Magic Restriction. Check the current positions before retrying. sl=0 requests manual breakeven only in the relevant documented context; it is not a generic “no stop” instruction.
Combined actions
Section titled “Combined actions”| Long command | Alias | Close → open |
|---|---|---|
closelongopenlong |
CL+OL |
Buys → buy |
closelongopenshort |
CL+OS |
Buys → sell |
closeshortopenlong |
CS+OL |
Sells → buy |
closeshortopenshort |
CS+OS |
Sells → sell |
closelongshortopenlong |
CLS+OL |
Both → buy |
closelongshortopenshort |
CLS+OS |
Both → sell |
cancellongbuystop, cancellongbuylimit, cancelshortsellstop and cancelshortselllimit cancel the corresponding pending side and request a replacement. Supply the new entry and volume, plus required stops. Complete examples and scope.
Breakeven and trailing
Section titled “Breakeven and trailing”| Feature | Required together | Other values |
|---|---|---|
| Automatic breakeven | betrigger= and beoffset= |
Trigger above zero; offset smaller than trigger; offset zero requests entry price |
| Pip trailing | trailtrig=, traildist= and trailstep= |
Use whole pips; inspect activation and subsequent updates |
| ATR trailing | atrtimeframe= and atrperiod= |
atrmultiplier=1, atrshift=0, atrtrigger=0 are published defaults |
ATR uses MetaTrader price data. Check platform/timeframe support. Stop-management reference.
Filters, identifiers and controls
Section titled “Filters, identifiers and controls”| Parameter/command | Important context |
|---|---|
spread= |
Maximum entry spread in pips |
accfilter= |
Threshold interpreted by EA Account Filter Type |
comment= |
Short identifier; keep within 20 characters and apply strategy matching rules |
secret= |
Case-sensitive configured signal secret, required when enabled |
eaoff |
Third field must also be eaoff |
eaon |
Third field must also be eaon |
closeall |
Third field is the receiving EA’s chart symbol; affects positions/pending orders across its scope |
closealleaoff |
Same chart-symbol requirement; also requests an EA halt |
Review filters and comments, Signal Authentication and EA controls.
Maintaining an older message
Section titled “Maintaining an older message”For entries, risk=, sl=, tp= and pending= use legacy EA interpretation. Never replace them mechanically without identifying their units. The current command-specific risk= close-volume and sl=0 breakeven operations above are exceptions. Legacy reference.
EA settings at a glance
Section titled “EA settings at a glance”| If you need to change… | Reference |
|---|---|
| Legacy volume, target or pending-entry units | Target Type, Volume Type and Pending Order Entry |
| Whether the message or EA supplies values | Setting and input values |
| Repeated entries, reversals, partial-close percentage or position limits | Trading behaviour |
| Daily/cumulative limits and the action taken | Account protection |
| Which positions the EA recognises | Magic Number and Magic Restriction |
| Broker-time trading hours or symbol text | Advanced settings |
Use F7 → Inputs to open the EA settings on a self-hosted terminal. This does not open the Experts log; use View → Toolbox → Experts in MT5. For Edge’s managed settings, follow Edge controls.
Before live use
Section titled “Before live use”Use a demo account to verify the actual order, volume, entry, stops and duplicates. Receiving the signal is one stage of the check, not the final result. Send a test alert · Open the local builder and checker · Troubleshoot an error.
