SuperGuide



Please ensure that you are using MacOS, Windows 10/11, or Windows Server 2016/2019.
If you are looking for a VPS, you may consider the PineConnector 
VPS.




Important Note
1. If you are starting a trial, you will receive a confirmation email with your trial license details – trying to access another Trading Account with your license will result in the "out of date" issue.

2. To move your license from the initial trading account, please use the License Transfer Form found in the members' portal under Self Service Applications using the details in the confirmation email.

3. You only have to attach the PineConnector EA to any ONE chart to trade ALL symbols.

Learn how to send alerts




Download link:
https://www.metatrader4.com/en/trading-platform/help/userguide/install_mac

Important Note
1. If you are starting a trial, you will receive a confirmation email with your trial license details – trying to access another Trading Account with your license will result in the "out of date" issue.

2. To move your license from the initial trading account, please use the License Transfer Form found in the members' portal under Self Service Applications using the details in the confirmation email.

3. You only have to attach the PineConnector EA to any ONE chart to trade ALL symbols.

Learn how to send alerts


Instructions Remarks
1 Download the MT4 EA from the member's portal. PineConnector Member's Portal
2 Open your MetaTrader 4. Click “File” on the top left and then click “Open Data Folder”. Italian Trulli
3 In your Data Folder, click on “MQL4”. Italian Trulli
4 In your MQL4 folder, click on “Experts”. Italian Trulli
5 In your Experts folder, paste the PineConnector EA that you downloaded. Italian Trulli
6 Close your MetaTrader 4 and re-open the application. N/A
7 On the top bar, click “Tools” and then “Options”. Tick the box for “Allow DLL imports” and close the options tab. Italian Trulli
8 Open Navigator by pressing “Ctrl+N”. Italian Trulli
9 Right click on “PineConnector MT5” and click “Attach to Chart”.

Note: It does not matter which chart, but you will have to leave the chart open.
Italian Trulli
10 Under the Common tab, tick “Allow Live Trading” and "Allow DLL imports". Italian Trulli
11 Under Inputs, double click “INPUT LICENSE ID” and paste your LICENSE ID, and click "OK"

Note: The License ID is a long string of blue numbers. It can be found in the member's portal.
PineConnector Member's Portal
12

You will see the expiry date of the license on the top left of your chart (yyyy.mm.dd). This means you have successfully connected to the PineConnector server.

Don't see the expiry date at the top left corner?
Please ensure that you are using Windows 10/11, or Windows Server 2016 or 2019 for your VPS. Windows 8 or older, and Windows Server 2012 or older are NOT compatible with PineConnector.

13 Click on “Auto Trading” at the top of your screen if it is in red. This is to allow Auto Trading. Italian Trulli
14

Your trading bot is now ready to send orders through TradingView alerts to MetaTrader 4.

*Please note that you only have to attach the PineConnector EA to any ONE chart to trade ALL symbols.

Done with EA Setup!

Next: Learn how to send alerts

Important note:

  1. If you are starting a trial, you will receive a confirmation email with your trial license details – trying to access another Trading Account with your license will result in the "out of date" issue.
  2. To move your license from the initial trading account, please use the License Transfer Form found in the members' portal under Self Service Applications using the details in the confirmation email.

Please ensure that you are using MacOS, Windows 10/11, or Windows Server 2016/2019.
If you are looking for a VPS, you may consider the PineConnector 
VPS.



Important Note
1. If you are starting a trial, you will receive a confirmation email with your trial license details – trying to access another Trading Account with your license will result in the "out of date" issue.

2. To move your license from the initial trading account, please use the License Transfer Form found in the members' portal under Self Service Applications using the details in the confirmation email.

3. You only have to attach the PineConnector EA to any ONE chart to trade ALL symbols.

Learn how to send alerts



Download:
https://www.metatrader5.com/en/terminal/help/start_advanced/install_mac

Important Note
1. If you are starting a trial, you will receive a confirmation email with your trial license details – trying to access another Trading Account with your license will result in the "out of date" issue.

2. To move your license from the initial trading account, please use the License Transfer Form found in the members' portal under Self Service Applications using the details in the confirmation email.

3. You only have to attach the PineConnector EA to any ONE chart to trade ALL symbols.

Learn how to send alerts


Instructions Remarks
1 Download the MT5 EA from the member's portal. PineConnector Member's Portal
2 Open your MetaTrader 5. Click “File” on the top left and then click “Open Data Folder”. Italian Trulli
3 In your Data Folder, click on “MQL5”. Italian Trulli
4 In your MQL5 folder, click on “Experts”. Italian Trulli
5 In your Experts folder, paste the PineConnector EA that you downloaded. Italian Trulli
6 Close your MetaTrader 5 and re-open the application. N/A
7 On the top bar, click “Tools” and then “Options”. Tick the box for “Allow DLL imports” and close the options tab. Italian Trulli
8 Open Navigator by pressing “Ctrl+N”. Italian Trulli
9 Right click on “PineConnector MT5” and click “Attach to Chart”.

Note: It does not matter which chart, but you will have to leave the chart open.
Italian Trulli
10 Under the Common tab, tick “Allow Algo Trading”. Italian Trulli
11 Under Dependencies, tick “Allow DLL imports”. Italian Trulli
12 Under Inputs, double click “INPUT LICENSE ID” and paste your LICENSE ID, and click "OK"

Note: The License ID is a long string of blue numbers. It can be found in the member's portal.
PineConnector Member's Portal
13

You will see the expiry date of the license on the top left of your chart (yyyy.mm.dd). This means you have successfully connected to the PineConnector server.

 

Don't see the expiry date at the top left corner?
Please ensure that you are using Windows 10/11, or Windows Server 2016 or 2019 for your VPS. Windows 8 or older, and Windows Server 2012 or older are NOT compatible with PineConnector.

Italian Trulli
14 Click on “Algo Trading” at the top of your screen if it is in red. This is to allow Algo Trading. Italian Trulli
15 Your trading bot is now ready to send orders through TradingView alerts to MetaTrader 5.

*Please note that you only have to attach the PineConnector EA to any ONE chart to trade ALL symbols.

Done with EA Setup!

Next: Learn how to send alerts

Important note:

  1. If you are starting a trial, you will receive a confirmation email with your trial license details – trying to access another Trading Account with your license will result in the "out of date" issue.
  2. To move your license from the initial trading account, please use the License Transfer Form found in the members' portal under Self Service Applications using the details in the confirmation email. 

pineconnector ea

This guide is to explain the different components of the PineConnector Expert Advisor.


Parameter
Remarks
License ID
○ Your License ID is the long number string found in the intranet.

Parameter
Remarks
Account Filter Basis (Syntax)
Only execute signals your signals if they meet certain account requirements


Account Filter Options:
○ Account Balance
○ Account Equity
○ Margin Percentage
○ Free Margin


“Account Filter Basis” of “Account Balance” option chosen in your EA
○ Buy EURUSD signal will only process if your Account Balance has $500 or more
○ Buy EURUSD signal will not process if your Account is lower than $500


Sample Experts output when account filter requirement is met
Target Type
○ Pips from current market price

○ Price indicated on your TradingView alerts message

○ Percentage from current market price
To have targets 1% from current market price, please use "sl=1" or "tp=1" 
Volume Type
Specified volume indicated on your TradingView alert message
○ Indicating "risk=1" will mean 1 volume/lot will be opened

Percentage of account balance (ensure SL is specified)
○ Position size will be computed automatically based on the SL specified

○ The amount that you will lose if your trade hits the specified SL
Example: If you have an EURUSD trade with 15 pip SL with $1000, risk=1 with this Volume Type will mean that hitting the SL you will lose $10.
Pending Order Price
○ Pips from current market price

○ Price Specified from TradingView alert

○ Percentage from current market price
To have pending orders 1% from current market price, please use "price=1"
Pyramiding
Off - Either 1 Buy OR 1 Sell
If you have either a buy or sell position open, all orders with the same symbol will not open

Off - Only 1 Buy AND 1 Sell
If a trade of the same symbol and direction is already opened, all incoming alerts will not be opened

On
No restrictions imposed to new trades.
All new alerts will be opened

On - If symbol and direction in profit 
Conditional restriction imposed to new trades
New market and pending orders will only be opened if profit from all positions with the same symbol and direction is positive


Pyramiding = Off - Either 1 Buy OR 1 Sell
Long EURUSD open Incoming long EURUSD will not open
Short EURUSD open Incoming short EURUSD will not open

Pyramiding = Off - Only 1 Buy AND 1 Sell
Long EURUSD open Incoming long EURUSD alert will not open
Only Long EURUSD open Incoming short EURUSD alert will open
Short EURUSD open Incoming short GPBUSD will open
normally since they are different symbols

If one of your Pending Orders gets filled, all other Pending Orders in the same direction and symbol will be cancelled
○ A buystop and a buylimit EURUSD pending orders in play. The buystop gets filled, the buylimit gets cancelled automatically.
    If you have an ongoing position, all pending orders in the same direction and with the same symbol will not be executed.
    ○ A buy EURUSD position is open. All buystop and buylimit orders received will not be executed. 

    Pyramiding = On
    EURUSD open Incoming EURUSD alert will be opened
    Only EURUSD short open Incoming GPBUSD short
    GBPUSD will open normally

    Pyramiding = On - If symbol and direction in profit
    EURUSD open Incoming EURUSD alert will be opened
    Sum of all long EURUSD floating profit is negative Incoming buy, buystop and
    buylimit EURUSDs will not be open




    ○ Sum of all long EURUSD floating profit is negative. Incoming long GBPUSD will open since symbol is different.
    ○ Sum of all long EURUSD floating profit is negative. Incoming short EURUSD will open since direction is different.
    Close on Reverse Signal
    On
    ○ Opening a trade with the same symbol in the opposite direction will close the first trade and then open the second order.

    Off
    ○ Opening a trade with the same symbol in the opposite direction will NOT close the first trade.


    Close on Reverse = TRUE
    ○ Long EURUSD open. Incoming short EURUSD. Long EURUSD gets closed first. Short EURUSD opens.
    ○ Long EURUSD open. Incoming short GBPUSD. Long EURUSD untouched. Short GBPUSD opens.

        Close on Reverse = FALSE
        ○ Long EURUSD open. Incoming short EURUSD. Nothing happens to the long EURUSD. Short EURUSD opens.

            *If you are looking to close the Long EURUSD and not open another position, the appropriate command will be "closelong" or "closeshort".

            Shadow Targets
            (pip-based Target Type only)
            On
            ○ Shadow Targets will be used whereby SL and TP will be arbitrarily placed 100 pips further than intended SL and TP prices
            ○ Ensure that you have both SL and TP indicated at the point of entry – trade will close instantly without both targets

            Off
            ○ Shadow Targets will not be used


            shadow targets pineconnector


            pineconnector shadow targets
            Start & End Active Hour
            Basis: Broker time
            ○ Your local time may differ from the broker time
            ○ To check the broker time, you may refer to the broker time printed on your chart


            ○ From 00:00 to 24:00 - EA will always be active
            ○ From 08:00 to 12:00 - EA will only trigger entries from 8am to 12pm broker time
            ○ From 21:00 to 09:00 - EA will only trigger entries from 9pm to 9am (the next day), broker time


            pineconnector time filterpineconnector time filter
            Partial Close Percentage
            Close a percentage of your position instead by using the 2 new syntax commands, closelongpct and closeshortpct. The percentage closed will be based on your “Partial Close Percentage” option in your EA.


            Partial-Close Percentage Options:
            ○ 25% – closes in 4 equal parts
            ○ 34% – closes in 3 parts
            ○ 50% – closes in 2 equal parts


            ○ ID,closelongpct,EURUSD
            ○ ID,closeshortpct,EURUSD
            Maximum Open Positions
            ○ Define the maximum number of open positions
            ○ Use value "0" to not limit the open position count
            Maximum Open Positions Per Symbol
            ○ Define the maximum number of open positions in the symbol-level
            ○ Use value "0" to not limit the open position count

            Parameter
            Remarks
            Account SL Value
            (0 = disable)
            Define the trigger value in terms of Balance or Equity (based on your "Safety Stop Basis" option) for the Safety Stop

            ○ Assume Safety Stop "50" set. When your account Balance or Equity hits or goes below $50, the safety stop will trigger. The action taken will be either of the 3 Safety Stop Levels indicated above

            Value used should be lower than the current Balance/Equity
            Action
            ○ Account Balance

            ○ Account Equity
            Account equity is your Account Balance + Total Floating Profit from all open positions
            Basis
            Level 1 – Mobile Notification Only
            ○ Ensure that you have set up mobile notifications

            MT4 Mobile Notification Setup
            MT5 Mobile Notification Setup

            Level 2 – Notify, and Close All Open Trades
            ○ You will be notified via mobile notification (if set up) and via a popup on your MetaTrader
            ○ All open positions (buy and sell) will be closed, and orders (buy limit, sell limit, buy stop and sell stop) will be cancelled

            Level 3 – Notify, Close All Open Trades, and Halt EA
            ○ As per Level 2, and
            ○ PineConnector EA will be halted – you may check the status on the attached chart
            ○ Label should read: "EA Status: EA HALTED"

            Parameter
            Remarks
            EA and
            License Details
            ○ Display Full EA and License Details
            ○ Display only the License Expiry Date
            EA Magic Number
            ○ Default Magic Number of 76
            ○ Alternate Magic Number of 77
            ○ Alternate Magic Number of 78


            You may use different Magic Numbers to run different strategies on the same trading account. Please note that you will require multiple licenses to run, whereby you will have multiple License IDs as well.

            This means:
            ○ Strategy 1 -> runs on License ID 1 with magic number 76-> opens and closes based on alerts of strategy 1
            ○ Strategy 2 -> runs on License ID 2 with magic number 77-> opens and closes based on alerts of strategy 2

            For instance, on the same Trading Account. You would like to run a Moving Average Crossover Strategy on EURUSD 15 mins and 60 mins.
            The trade opens and closes will not be the same time despite being on the same symbol.

            You will be required to use the Magic Number feature to run both strategies concurrently on the same Trading Account.
            Show Halt Button
            ○ On
            ○ Off
            Broker Set
            (MT5 EA only)
            ○ Broker Set A (Default)

            ○ Broker Set B (Unsupported Filling)

            For those who face the Error 4756 Unsupported Filling Mode for Brokers such as ICMarkets
            Compatible for clients who were using the "FM Mode" MT5 EAs


            This guide is to assist you in setting up your TradingView Alerts.


            Description Remarks

            You may use test alerts to learn more about various syntax combinations,
            and learn how the EA features work!


            PineConnector – Sending Test Alerts Video Guide
            1

            Please ensure that you see your License and Account details are the top left corner of your chart.

            If you do not see your License and Account details, please ensure that you are using Windows 10/11, or Windows Server 2016/2019.

            If you are using a VPS which is not compatible with PineConnector, please consider the PineConnector VPS here.

            PineConnector
            2 On the chart with the PineConnector EA, press F7 to access the EA Settings.

            For the purpose of this test, ensure your EA settings are as follows:

            1) Target Type: TP & SL based on pips
            2) Volume Type: Specified Volume
            PineConnector
            3 Hold “Ctrl+U” to open the symbol list and locate "EURUSD".

            Double click all symbols to ensure that they are all lit in yellow.

            Input the symbol with reference to the left column.
            PineConnector
            Symbol to input is EURUSD

            PineConnector
            Symbol to input is EURUSDm#
            4

            On any chart and timeframe on TradingView, create an alert with the following parameters:

            1) Condition: Value greater than 0

            2) Webhook URL:
            https://pineconnector.net/webhook/

            3) Message: yourlicenseid,buy,EURUSD,sl=100,risk=1
            (please change license ID and symbol accordingly)

            Click on "Create" and wait for alert to trigger.

             

            Want to test with with other syntax/messages?
            Browse through some sample combined syntax here:
            PineConnector Syntax Guide (Section 9: Sample Combined Syntax)

            5 You should be able to see your alert in the Alerts Log and see the trade open in your MetaTrader.
            PineConnector
            6

            On the bottom right corner of your MetaTrader terminal, Click on "Experts".

            Here, you can see more details on how the trade was processsed.

            We recommend that you track the Experts Tab to better understand the EA.

            Done with Alert Test!

             

            Faced an error or trade not triggering?
            Browse through potential causes and remedies here:
            PineConnector Self-Debugger

            PineConnector

            If you have code access to the strategy/indicator, please refer to Dynamic Messages below.

            Description Remarks
            1

            On the symbol and timeframe you would like to trade, create an alert with the following:

            Condition: Choose the script you would like to use

            Options: Choose the appropriate option – we recommend Once Per Bar Close to avoid repainting 

            Message:

            PineConnector
            2

            Your alerts will now trigger each time conditions are met, with the message you have configured.

             

            Faced an error or trade not triggering?
            Browse through potential causes and remedies here:
            PineConnector Self-Debugger

            PineConnector

            Description Remarks
            1

            With your Pine Script Strategy/Study/Indicator, add the alert() codes with reference to the Sample Alert Script.


            Useful: 

            • Add plotshape() codes to have a visual when alerts fire
            • Craft the appropriate syntax with reference to the Syntax Guide HERE
            • For more information on the alert() function, you may refer to TradingView's alert() Reference Manual
            PineConnector

            Sample Alert Script

            2

            When done coding, apply 1 alert to each symbol you would like to trade.

            Under "Condition", select the Script you just coded and select "Any alert() function call".


            Ensure Webhook URL is: https://pineconnector.net/webhook/

            Alert name need not change. Alert message will produce based on what you coded.

            PineConnector
            3

            Your alerts will now trigger each time conditions are met, with your configured messages.

             

            Faced an error or trade not triggering?
            Browse through potential causes and remedies here:
            PineConnector Self-Debugger


            This guide is to assist you in crafting your alert messages to be compliant to our syntax.


            Command Description Examples
            LicenseID
            (required parameter)

            License ID is long string found in the intranet 

            (Position #1) To be placed at the start of the syntax message

            5123456789012
            Order
            (required parameter)

            Main Order command – more information below under "Market Order" and "Pending Order" Commands

            (Position #2) To be placed at the after the License ID 

            buy, sell, buystop, buylimit, sellstop, selllimit, closelong, cancellong, closeshort, cancelshort, newsltplong, newsltpshort
            Symbol
            (required parameter)

            Symbol or asset you would like to enter/exit/modify etc

            (Position #3) To be placed after Market/Pending Order Command 

            EURUSD, GER30
            risk=
            (required parameter)
            Place a trade with Lot size/Volume based on alert message or percentage of balance (toggle on EA) risk=0.05 or risk=2
            price=
            (required parameter for pending orders)

            Place pending order at the stated price or Pips from current market price 

            Please note that we recommend Pips from current market price due to differences in quotes on TradingView and your Broker. (toggle on EA)

            price=1.158 or price=10
            sl= Place stoploss based on price or pips from open price (toggle on EA) sl=1.2012 or sl=25
            tp=
            Place takeproft based on price or pips from open price (toggle on EA)
            tp=1.2022 or tp=50
            comment=

            Add a comment to the trade

            Please note:
            • using the comment feature will disable the Breakeven and Trailing (Pips and ATR) features
            • text is to be contained in the " "
            comment="hello" or comment="strategy 1"
            eaon
            eaoff

            Resume or halt the PineConnector EA

            licenseid,eaon,eaon

            licenseid,eaoff,eaoff

            Examples with basic commands*:
            5123456789012,buy,EURUSD,risk=1
            5123456789012,buylimit,EURUSD,risk=1,price=10
            5123456789012,sell,EURUSD,risk=1,sl=10,tp=30,comment="strategy 1"
            5123456789012,sellstop,EURUSD,risk=1,sl=10,tp=30,price=15,comment="strategy 2"

            *Refer to "Sample Combined Syntax" for more comprehensive sample syntax with explanations


            Command Description Examples
            buy 
            Place buy position
            buy
            sell
            Place sell position
            sell
            closelong 

            Close the full long position of that symbol 

            ID,closelong,EURUSD
            closeshort
            Close the full short position of that symbol
            ID,closeshort,GBPJPY
            closelongbuy
            Instead of sending in a closelong and a buy seprately, you may use this dual command to close all open buys and open a new buy position.

            If you do not have a buy position open, nothing will be closed and your buy will still open.
            ID,closelongbuy,EURUSD,risk=0.01
            closeshortsell
            Instead of sending in a closeshort and a sell separately, you may use this dual comand to close all open sells and open a new sell position.

            If you do not have a sell position open, nothing will be closed and your sell will still open.
            ID,closeshortsell,EURUSD,risk=0.01

            *Important for closelongbuy and closeshortsell:

            Sending in both closelong and buy separately at the same time is risky.
            The buy alert might be processed first followed by the closelong resulting in no open trades.

            Similarly, sending in both closeshort and sell at the same time is not recommended.
            Please use the dual commands above.

            newsltplong*

            Move the stoploss, takeprofit or both SL and TP of ALL buy trades with that symbol 
            ID,newsltplong,EURUSD,sl=1.22
            ID,newsltplong,EURUSD,tp=15
            ID,newsltplong,EURUSD,sl=20,tp=10

            newsltpshort*

            Move the stoploss, takeprofit or both SL and TP of ALL sell trades with that symbol
            ID,newsltpshort,GBPJPY,sl=152.11
            ID,newsltpshort,GBPJPY,tp=150.51
            ID,newsltpshort,GBPJPY,sl=30,tp=50

            *the new SL and TP will be computed based on your target type in your EA Settings - pips, price or percentage

            Sample output in the Experts tab, with percentage-based target:

            closelongpct
            Partially close long positions based on your selected percentage in the EA
            Options of 25%, 34%, and 50%
            ID,closelongpct,EURUSD
            closeshortpct
            Partially close short positions based on your selected percentage in the EA
            Options of 25%, 34%, and 50%
            ID,closeshortpct,EURUSD
            closelongvol
            Close long positions up to value indicated
            ID,closelongvol,EURUSD,risk=2
            closeshortvol
            Close short positions up to value indicated
            ID,closeshortvol,EURUSD,risk=1

            Command Description Examples
            buystop
            Place Buy Stop order above current market price
            (please ensure you have "price=")
            ID,buystop,USOIL,
            price=75,sl=70
            buylimit
            Place Buy Limit order below current market price
            (please ensure you have "price=")
            ID,buylimit,USOIL,
            price=65,sl=60
            sellstop
            Place Sell Stop order below current market price
            (please ensure you have "price=")
            ID,sellstop,USOIL,
            price=75,sl=80
            selllimit
            Place Sell Limit order above current market price
            (please ensure you have "price=")
            ID,selllimit,USOIL,
            price=65,sl=70
            cancellong
            Cancels all long orders 
            that was placed by the PineConnector EA (buystop and buylimit) for the accompanying symbol 
            ID,cancellong,NAS100
            cancelshort
            Cancels all short orders 
            that was placed by the PineConnector EA (sellstop and selllimit) for the accompanying symbol
            ID,cancelshort,GBPJPY
            cancellongbuystop
            Instead of sending in a cancellong and a buystop separately, you may use this dual comand to close all long orders (buystop and buylimit) and open a new buystop order.
            ID,cancellongbuystop,EURUSD,risk=0.01,price=10,sl=15,tp=20
            cancellongbuylimit
            Instead of sending in a cancellong and a buylimit separately, you may use this dual comand to close all long orders (buystop and buylimit) and open a new buylimit order.
            ID,cancellongbuylimit,EURUSD,risk=0.01,price=10,sl=15,tp=20
            cancelshortsellstop
            Instead of sending in a cancelshort and a sellstop separately, you may use this dual comand to close all long orders (sellstop and selllimit) and open a new sellstop order.
            ID,cancelshortsellstop,EURUSD,risk=0.01,price=10,sl=15,tp=20
            cancelshortselllimit
            Instead of sending in a cancelshort and a selllimit separately, you may use this dual comand to close all long orders (sellstop and selllimit) and open a new selllimit order.
            ID,cancelshortselllimit,EURUSD,risk=0.01,price=10,sl=15,tp=20

            *Important for cancellongbuystop, cancellongbuylimit, cancelshortsellstop and cancelshortselllimit:

            Sending in both cancellong and buystop/buylimit separately at the same time is risky.
            The buystop/buylimit alert might be processed first followed by the cancellong resulting in no open trades.

            Similarly, sending in both cancelshort and sellstop/selllimit at the same time is not recommended.
            Please use the dual commands above.
            newsltpbuystop*
            Change the SL, TP or both SLTP of buy stop orders with the indicated symbol
            ID,newsltpbuystop,EURUSD,sl=25
            newsltpbuylimit*
            Change the SL, TP or both SLTP of buy limit orders with the indicated symbol
            ID,newsltpbuylimit,EURUSD,tp=25
            newsltpsellstop*
            Change the SL, TP or both SLTP of sell stop orders with the indicated symbol
            ID,newsltpsellstop,EURUSD,sl=25,tp=50
            newsltpselllimit*
            Change the SL, TP or both SLTP of sell limit orders with the indicated symbol
            ID,newsltpselllimit,EURUSD,tp=25,sl=25

            *the new SL and TP will be computed based on your target type in your EA Settings - pips, price or percentage


            Command Description Examples

            betrigger=
            (Ensure >0)

            Breakeven will be activated after a trade gains this number of pips beyond opening price.

            *Ensure that value is minimally the broker's stops level in pips.

            betrigger=30
            beoffset=

            Offset from the entry price. 0 means the SL will be placed exactly at entry price while 1 means 1 pip above the entry price for buy trades and 1 pip below for sell trades. This is the amount of pips you'd like to protect. 

            *Ensure that beoffset<bettrigger

            beoffset=5

            Your Breakeven parameters will be stored in the position's Comment area.

            Please visually confirm that your parameters are added to the comment's section.

            To use Pips Trailing SL feature, all 3 commands are required.

            Command Description Examples
            trailtrig=

            Trailing stop-loss will be activated after a trade gains this number of pips. 

            If your trailtrig=0, price will have to minimally move the bid-ask spread to begin.
            To begin instantaneously, without the need to move the bid-ask spread, you may use trailtrig<0. (i.e. trialtrig=-10)

            Value Restriction: Integers only

            trailtrig=12

            traildist=
            (Ensure >0)

            Distance of the trailing stop-loss from current price. SL will be opened at traildist, after trailtrig is met, even if you do not have a SL placed. 

            Value Restriction: Integers only

            *Important: "Stops Level" is the minimum required distance between current market price and your SL, set by your broker.
            • If the "Stops Level" of the symbol is 20, minimum value will be 2 for trailing to work.
            • If "Stops Level" is 35, minimum value will be 4.
            • You may check the symbol's "Stops Level" via the Symbol List (CTRL+U).
            traildist=8
            trailstep=

            Moves trailing stop-loss once price moves favourable by a specified number of pips.


            Value Restriction: Integers only

            trailstep=3 
            Example configuration: Buy position with trailtrig=12, traildist=8 and trailstep=3

            • With trailtrig=12, the first instance of trailing SL will be when price moves favorably for 12 pips (entry+12). 
              The SL will be placed 8 pips lower at (entry+12-8).
              • If you have a SL, the SL will be updated 
              • If you do not have a SL, a SL will be created automatically
              • With trailstep=3, the second instance of trailing SL is when price moves favorably for another 3 pips (entry+12+3).
                The SL will be placed at 8 pips lower at (entry+12+3-8).
                • The third instance will be when price moves another 3 favorable pips (entry+12+3+3). 
                  The SL will be placed 8 pips lower at (entry+12+3+3-8), and so on.

                 

                pineconnector trailing pips
                At the point of entry, the trigger price will be indicated in the Experts Tab.

                 

                Your Pips Trailing parameters will be stored in the position's Comment area.

                Please visually confirm that your parameters are added to the comment's section.


                To use ATR Trailing SL feature, both atrtimeframe= and atrperiod= commands are required.

                Command Description Examples

                atrtimeframe=
                (Ensure one of the 7 allowable values)

                 

                ATR Trailing Stop will be based on the specified timeframe in minutes and will only update once per bar close

                If stop loss not specified at point of entry, a SL will be automatically added with the ATR values used

                Allowable timeframe values:

                1. 1        (1 minute),
                2. 5        (5 minutes),
                3. 15      (15 minutes),
                4. 30      (30 minutes),
                5. 60      (1 hour),
                6. 240    (4 hours),
                7. 1440  (1 day)
                atrtimeframe=15

                atrperiod=
                (Ensure >0)

                ATR averaging period


                Value Restriction: Integers only

                atrperiod=14

                atrmultiplier=
                (optional)

                ATR Multiplier


                Default Multipler: 1
                Value Restriction: Maximum of 1 decimal place

                atrmultiplier=1.5

                atrshift=
                (optional)

                ATR Shift


                Default shift: 0
                Value Restriction: Integers only

                • Using ATR shift of 1 means ATR computation uses the previous candle close instead of current open candle
                • Accordingly, ATR shift of 2 uses the close 2 candles ago
                atrshift=1

                atrtrigger=
                (optional)

                Activate the trigger of ATR Trailing after market moves favorably by X number of pips

                 

                Default trigger: 0 (instantaneous)
                Value Restriction: Maximum of 1 decimal place 

                atrtrigger=10


                Your ATR Trailing parameters will be stored in the position's Comment area.



                Sample Expert output when ATR Trailing moves SL.

                Please visually confirm that your parameters are added to the comment's section.


                Command Description Examples

                spread=

                Only orders with spread equal or less than specified spread in pips will be executed

                spread=2
                spread=1.22


                Sample alert if spread in pips is more than specified spread tolerance


                Sample Expert output when spread is within acceptable levels


                Command Description Example

                accfilter=

                Only execute signals your signals if they meet certain account requirements

                 

                Account Filter Options:

                1. Account Balance
                2. Account Equity
                3. Margin Percentage
                4. Free Margin

                accfilter=500

                Example:

                • “Account Filter Basis” of “Account Balance” option chosen in your EA
                • pineconnector account filter syntax

                 

                • Syntax sent: “LicenseID,buy,EURUSD,risk=1,accfilter=500”
                  • Buy EURUSD signal will only process if your Account Balance has $500 or more
                  • Buy EURUSD signal will not process if your Account is lower than $500

                 

                account filter experts output pineconnector

                Sample Experts output when account filter requirement is met


                Scenario Recommended Trail Settings 
                • Trailing to start immediately
                • SL to be placed 10 pips from current price
                • SL to be moved every 1 pip of favorable movement
                • trailtrig=-10 (negative 10)
                • traildist=10
                • trailstep=1
                • Trailing to begin when price moves favorably by 8 pips
                • SL to be placed 9 pips from current price
                • SL to be moved every 5 pips of favorable movement
                • trailtrig=8
                • traildist=9
                • triailstep=5
                Important Note: Values are in pips.
                When trading non-FX, such as the US100, using a value of 10 may mean 1 point in the index. Do test it first.

                Sample Syntax Interpretation
                5123456789012,buy,AUDUSD,risk=0.01

                Enter a long AUDUSD trade with 0.01 position size

                EA Settings
                • Volume type = Specified Volume
                  5123456789012,sell,GBPJPY,sl=50,tp=150,risk=1

                  Enter a short 1 volume GBPJPY trade with SL and TP being 50 and 150 pips from current price. 

                  EA Settings
                  • Target type = TP & SL based on pips
                  • Volume type = Specified Volume
                    5123456789012,closelong,GBPUSD

                    Closes the all GBPUSD long trades 

                    EA Settings
                    • N/A
                      5123456789012,buy,EURUSD,sl=1.20,risk=1, trailtrig=15,traildist=10,trailstep=12

                      Going long EURUSD with initial SL at 1.20 risking 1% of account balance. Trailing stop to activate when price moves favorably by 15 pips. Every 12 pips move in favor of direction, the stop-loss will move to 10 pips from current price.

                      EA Settings
                      • Target type = TP & SL based on price
                      • Volume type = Percentage of balance
                        5123456789012,buy,EURCAD,sl=100,risk=5, betrigger=30,beoffset=5

                        Going long EURCAD with initial SL at 100 pips away, risking 5 volumes. SL will be moved to (entry price + 5 pips) when price has moved favorably by 30 pips. 

                        EA Settings
                        • Target type = TP & SL based on pips
                        • Volume type = Specified volume
                        5123456789012,selllimit,EURUSD,price=1.2340,sl=10,risk=1

                        Place a sell limit on EURUSD at price of 1.2340 with a 10 pips stop-loss. Lot size/Volume of 1.

                        EA Settings
                        • Target type = TP & SL based on pips
                        • Volume type = Specified volume
                        5123456789012,cancellong,EURUSD

                        Cancel all long pending orders (buystop and buylimit) for EURUSD.

                        EA Settings
                        • NA
                        5123456789012,buy,EURUSD,risk=1,spread=3

                        Buy EURUSD at the market if current spread is 3 or lower.

                        EA Settings
                        • NA
                        5123456789012,newsltplong,EURUSD,sl=10,tp=30

                        Update SL to 10 pips and TP to 30 pips from current market price.

                        EA Settings
                        • Target Type = TP & SL based on pips
                        Note: Syntax commands are case-sensitive

                         Components Remarks Example
                        Spacing in Syntax There should be no spacing in your syntax.
                        Incorrect: ID , buy , EURUSD , risk=1
                        Correct: ID,buy,EURUSD,risk=1
                        SL, TP, BE, Trailing Settings cannot be too tight. Refer to your symbol information in the symbol list under "Stops Level"
                        1 pip from current price
                        Tick Size Targets have to comply with symbol's tick size. Refer to "Tick Size"
                        UK100 CFDs with a tick size of 0.5. Your target ending with 0.3 will be rejected.
                        Volume Minimum volume should be met. Refer to "Minimal Volume" 0.1 minimum volume. Trade with volume or increments of 0.01 will be rejected.

                        Here are some common issues faced by your other retail trader buddies. 
                        For MetaTrader Error Codes (130, 4756 etc), please click below to see more information.


                        If you see the expiration date on your MetaTrader terminal, but are not receiving signals,
                        the issue is likely on your TradingView's setup

                        Please go through the list of potential causes and ensure that your alerts are configured correctly.

                        Potential Causes
                        Remarks & Remedies
                        Incorrect License ID
                        In your Syntax, ensure your License ID indicated in your alert message matches your License ID that you input in your MetaTrader terminal
                        Incorrect Syntax Formatting
                        Spacing between your texts and commas

                        Invalid: 5123456789012 , buy , EURUSD , risk=1
                        Valid: 5123456789012,buy,EURUSD,risk=1
                        Incorrect Syntax Formatting
                        Multiple License IDs

                        Invalid: 512345,6789012,buy,EURUSD,risk=1
                        Valid: 512345,buy,EURUSD,risk=1
                        Invalid Syntax Command
                        Ensure commands used are as per the Syntax Guide

                        Invalid: 5123456789012,long,EURUSD
                        Valid: 5123456789012,buy,EURUSD,risk=1
                        Misspelling in Syntax
                        Ensure that parameters are all typed out correctly

                        Invalid: 5123456789012,buy,EURUSD,rsik=1,trialdist=20
                        Valid: 5123456789012,buy,EURUSD,risk=1,traildist=20
                        Accidental Inclusions in Syntax
                        Ensure that there are no accidental letters or symbols in your syntax

                        Invalid: 5123456789012,buy,EURUSD,risk=1,sl=5}
                        Valid: 5123456789012,buy,EURUSD,risk=1,sl=5
                        Incorrect Webhook Address
                        Ensure that you are linking the alerts to the appropriate webhook address

                        Invalid: http://pineconnector.net/webhook/
                        Valid: https://pineconnector.net/webhook/
                        Incorrect Alerts Setup
                        If you see an arrow on your TV chart without an accompanying alert in the alerts log, it means your alert trigger might be incorrectly configured.

                        Please check your Alerts Log on your TradingView terminal.
                        The alerts log is a list of all fired alerts.

                        Important: The comparison should be between your TradingView's alerts log and your MetaTrader's Experts Tab (and not your chart).

                        Remarks
                        Remedies
                        Inconsistent EA possiblities
                        (non-exhaustive):

                        ● Occasional Close On Reverse
                        ● Occasional Differing Target Types
                        ● Occasional Differing Volume Types
                        If you face this issue, it is likely due to multiple PineConnector EAs running at the same time.

                        Please ensure that you only have ONE Pineconnector EA attached to any symbol on any timeframe – it is to facilitate connection between your terminal and our server. One PineConnector EA is sufficient to execute commands on ALL symbols.

                        To check, you may press ALT+R to view all open charts on your MetaTrader. Look for the top corners of each chart to indentify whether a PineConnector EA is attached. You should only have one chart with our EA running.

                        Having multiple PineConnector EA does not improve performance, and may result in inconsistency especially when the EAs have different settings.

                        Value
                        Description
                        Errors & Remarks
                        130
                        Invalid Stops
                        ERR_INVALID_STOPS

                        You might have sent a an alert in pips while your EA setting is set to price. Alternatively, your SL is higher or TP is lower than your current price for long trades and vice versa.

                        Please check your EA settings – it might be in pips target when you intend for price targets and vice versa.

                        Ensure that your SL and TP are not too close. You may check the minimum stops of the symbol in the symbol list under "Stops level".

                        If you are sending pending orders, please ensure that your entry price is not too close. Since there is a small mismatch in prices when comparing TV and MT4 quotes, we recommend that you use "price=" based on pips.
                        131
                        Invalid Trade Volume
                        ERR_INVALID_TRADE_VOLUME

                        Ensure minimum and incremental volume supported by broker.
                        See symbol information (CTRL+U)
                        132
                        Market is Closed
                        ERR_MARKET_CLOSED

                        TGIF, no more trading!
                        133
                        Trade is Disabled
                        ERR_TRADE_DISABLED

                        Symbol restricted by broker.

                        Ensure that Live Trading is Allowed, and that the Symbol used is exactly as per your Symbol List (CTRL+U)
                        134
                        Trade is Disabled
                        ERR_NOT_ENOUGH_MONEY

                        You are probably trying to open a position too large whereby you have insufficient free margin.

                        Please use a smaller “risk=“ value or use the appropriate Volume Type.
                        149
                        Hedge is Prohibited
                        ERR_ORDER_LOCKED

                        It might be a case whereby you try to enter a long when you have sell positions open — the sell positions have to close first before opening the long.

                        You may have to always have “close on reverse” turned ON continuously.
                        4016
                        Unknown Symbol
                        ERR_UNKNOWN_SYMBOL

                        Please ensure that you are using the exact symbol as per your Symbol List (CTRL+U on your MT4).

                        Please note that the symbol is case sensitive.
                        I.e. if your symbol list indicates EURUSD, you have to indicate "EURUSD" and not "eurusd".
                        4017
                        DLL calls are not allowed
                        ERR_DLL_CALLS_NOT_ALLOWED

                        Allow DLL calls in your EA and options.
                        4051
                        Invalid Function Parameter Value
                        ERR_INVALID_FUNCTION_PARAMETER_VALUE

                        Please ensure that you have a "risk=" in your syntax.

                        Kindly note the the "risk=" parameter is required for entry commands (buy, sell, buystop, sellstop, buylimit, selllimit)
                        4109
                        Trade is not allowed
                        ERR_TRADE_NOT_ALLOWED

                        Allow automated trading.

                        Please check the following:
                        ○ Open Options (CTRL+O), click on "Expert Advisors" then ensure Allow automated trading
                        ○ Open PineConnector EA (F7), click "common", and Allow Live Trading

                        After checking (1) and (2), the face at the top right corner of your chart should be smiling. :-)
                        Varied
                        Array not in range
                        Please contact support through our email or LiveChat including the PineConnector EA version and the 2 numbers in the brackets (xx,xx) that came with the Error.

                        For a full list of MetaTrader 4 (MQL4) errors, please refer HERE.


                        Value
                        Description
                        Errors & Remarks
                        4752
                        Trading by Expert Advisors prohibited
                        Allow trading in the EA properties.
                        4756
                        Trade request
                        sending failed
                        ERR_TRADE_SEND_FAILED

                        On your MT5 Terminal, please go to the "Journal" tab at the bottom and look for the Error.

                        It should indicate "Unsupported Filling Mode", "No Prices" or "Invalid Request".

                        1. Unsupported filling mode



                        Please ensure you are using the latest MT5 EA available. In the EA Settings (F7 on your MetaTrader terminal), under "Broker Set", select "Broker Set B".



                        2. No prices
                        Symbol not highlighed in yellow in symbol list. Next alert onwards for the symbol should go through.

                        3. Invalid request
                        Please ensure that the symbol you used in your TradingView message matches exactly your Symbol List (CTRL+U on your MetaTrader 5).

                        There might be a character before or after the symbol such as "$", "#", "S", etc

                        4. Trade Disabled
                        Please ensure that the symbol you used in your TradingView message matches exactly your Symbol List (CTRL+U on your MetaTrader 5).

                        There might be a character before or after the symbol such as "$", "#", "S", etc

                        5. Invalid Expiration
                        If you face Error 4756 "invalid expiration", please use Broker Set C in the EA Settings.

                         

                        Varied
                        Array not in range
                        Please contact support through our email or LiveChat including the PineConnector EA version and the 2 numbers in the brackets (xx,xx) that came with the Error.

                        For a full list of MetaTrader 5 (MQL5) errors, please refer HERE.