Automating TradingView Indicator Alerts in TradeLocker

4 min read

1. Introduction #

This guide walks you through the setup process for automating your TradingView alerts to execute trades on TradeLocker via PickMyTrade. Whether you’re trading crypto, forex, or equity CFDs, this setup ensures your TradingView signals directly trigger live trades with precision.


2. Generate Alert #

From your PickMyTrade dashboard, go to Generate Alert to start configuring your automated trade.


3. Broker Selection #

Choose TradeLocker as your broker from the dropdown list.


4. Alert Configuration #

Alert Type Options #

Alert TypeDescription
INDICATORBased on any technical indicator (e.g., RSI, SuperTrend)
STRATEGYBased on TradingView’s built-in or custom backtested strategies

Select INDICATOR as the preferred alert type for this setup.


5. Instrument Type #

Choose the type of instrument you are trading:

  • Crypto
  • Forex
  • Equity CFD

Then enter the TradingView Symbol (e.g., BTCUSD). This field is optional unless you’re using stop loss types based on ticks or total loss.


6. Configuring Alert Action #

Select the type of trading action you want the alert to trigger:

  • Buy – Opens a long position.
  • Sell – Opens a short position.
  • Close – Exits the current position without opening a new one.

7. Set Quantity Type #

You have two ways to define trade size:

  • Fixed Quantity – Manually enter the number of contracts or units.
  • Risk Percentage – Automatically calculates trade size based on stop loss distance and risk percentage.

Note: If you choose Risk Percentage, a stop loss is mandatory as it defines the trade size.


8. Stop Loss & Take Profit Setup #

Answer: Do You Want Stop Loss / Take Profit?
Choose YES to enable SL/TP configuration.


9. Stop Loss / Take Profit Types #

PickMyTrade supports five SL/TP configuration types. Select one based on your preferred method:

9.1 Point / Dollar (From Entry Price) #

Order Configuration
You define SL and TP as fixed USD amounts added to or subtracted from the entry price.

  • Stop Loss: $500
  • Take Profit: $1,000

How It Works

  • Stop Loss Price = 102,600 − 500 = 102,100
  • Take Profit Price = 102,600 + 1,000 = 103,600

Result Calculation Example — BTC Futures #

Assumption:
1 contract = 1 BTC
Stop Loss = $500
Take Profit = $1,000

Formula: #

Result = Stop Loss × Lot Size × Quantity

Values Used: #

  • Stop Loss = 500
  • Lot Size = 1 (BTC per contract)
  • Quantity = 1 (Number of contracts)

Loss Calculation: #

500 × 1 × 1 = $500

Profit Calculation: #

1,000 × 1 × 1 = $1,000


9.2 Percentage #

Order Configuration
You define SL and TP as a percentage of the entry price.

  • Stop Loss: 2%
  • Take Profit: 5%

How It Works

  • Stop Loss Amount = 102,600 × 0.02 = 2,052
  • Stop Loss Price = 102,600 − 2,052 = 100,548
  • Take Profit Amount = 102,600 × 0.05 = 5,130
  • Take Profit Price = 102,600 + 5,130 = 107,730

Result Calculation
For 1 contract:

  • Total Loss = $2,052
  • Total Profit = $5,130

9.3 Price (From TradingView) #

Order Configuration
Instead of static prices, use TradingView’s dynamic variables like:

  • Stop Loss: {{plot_1}}
  • Take Profit: {{plot_2}}

How It Works
When the alert is triggered, PickMyTrade pulls real-time values from the indicator’s plots.

Example
At the time of alert:

  • {{plot_1}} = 101,000 → SL = 101,000
  • {{plot_2}} = 105,000 → TP = 105,000

Alert Message

Stop Loss: {{plot_1}}, Take Profit: {{plot_2}}

9.4 Ticks #

Order Configuration #

In this method, you define both Stop Loss (SL) and Take Profit (TP) in ticks.


Assumptions: #

  • Min Tick = 0.01
  • Lot Size = 1
  • Entry Price = 102,600
  • Stop Loss = 5,000 ticks
  • Take Profit = 10,000 ticks

How It Works: #

  • Stop Loss Movement = 5,000 ticks × 0.01 = 50 points
  • Take Profit Movement = 10,000 ticks × 0.01 = 100 points
  • Stop Loss Price = 102,600 − 50 = 102,550
  • Take Profit Price = 102,600 + 100 = 102,700

Result Calculation (1 Contract) #

Formula:
Result = Tick Count × Lot Size × Min Tick × Quantity

Stop Loss Example: #
  • Tick Count = 5,000
  • Lot Size = 1
  • Min Tick = 0.01
  • Quantity = 1

Result:
5,000 × 1 × 0.01 × 1 = $50.00

Take Profit Example: #
  • Tick Count = 10,000
  • Lot Size = 1
  • Min Tick = 0.01
  • Quantity = 1

Result:
10,000 × 1 × 0.01 × 1 = $100.00

Multiply by Quantity for total result.
For 2 contracts, the result would be doubled:

  • Stop Loss = $100
  • Take Profit = $200


9.5 Total Profit / Loss #

Order Configuration #

You define your Stop Loss and Take Profit in absolute USD values per contract.


Example Configuration: #

  • Stop Loss per Contract = $500
  • Take Profit per Contract = $1,000
  • Quantity = 1 contract

How It Works: #

  • Total Loss = $500 × 1 = $500
  • Total Profit = $1,000 × 1 = $1,000

Point Movement for Reference (Optional) #

Assuming the underlying asset (e.g., BTCUSD) moves $1 per point, and the Entry Price is 102,600:

  • SL in Points = $500 ÷ $1 = 500 points
  • TP in Points = $1,000 ÷ $1 = 1,000 points
  • Stop Loss Price = 102,600 − 500 = 102,100
  • Take Profit Price = 102,600 + 1,000 = 103,600

10. Account Selection and Configuration for TradeLocker #

Once you’ve configured your alert and SL/TP settings, the next step is to select the trading account for execution. PickMyTrade allows both single-account and multi-account execution. You also have the option to manage position sizing via Quantity Multiplier or Risk Percentage.


Would you like to add multiple accounts or select a specific account for trade execution? #

Answer: YES

Upon selecting YES, additional configuration fields become visible, allowing you to connect your TradeLocker accounts and define execution parameters.


Update User Settings #

Use this section to assign or update an account within your current PickMyTrade login.

Click “Save” after making changes.


Add Account Settings #

When adding a TradeLocker account to your current PickMyTrade account, configure the following fields:

Field NameExample InputExplanation
PickMyTrade Conn. NameTRADELOCKER1Choose the correct connection name from the dropdown. Ensure it matches the TradeLocker connection you created earlier.
TRADELOCKER Acc. NameTL001928Choose your TradeLocker account from the dropdown. This must be an account linked to your current TradeLocker login.
OptionQUANTITY MULTIPLIER / RISK PERCENTAGESelect your preferred position sizing method.
QUANTITY MULTIPLIER1 (if selected)If a multiplier of 2 is selected, trade size will be doubled. Example: 5 contracts × 2 = 10 contracts.
RISK PERCENTAGE2% (if selected)If selected, each trade will risk 2% of total account capital. For a $50,000 account, the max risk per trade is $1,000.

Make sure the TradeLocker connection and account names are properly selected from the dropdown menus to ensure execution works correctly.

10.2 Add TradeLocker Account in Another PickMyTrade Account #

If you want to link a TradeLocker account to a different PickMyTrade account (not your currently logged-in one), use the following configuration.

This is useful when managing multiple PickMyTrade logins or setting up execution for accounts not tied directly to your active session.


Add Account Settings (Cross-Account Configuration) #

Field NameExample InputExplanation
PickMyTrade Tokenabcd1234xyzEnter the unique PickMyTrade Token from the account you want to integrate. This allows you to push trades into a different PickMyTrade account.
PickMyTrade Conn. NameTRADELOCKER1Define the connection name. This should correspond to the TradeLocker connection within the target PickMyTrade account.
TRADELOCKER Acc. NameTL002091Enter the exact TradeLocker account name as it appears in the TradeLocker terminal.
OptionQUANTITY MULTIPLIER / RISK PERCENTAGEChoose your preferred position sizing method.
QUANTITY MULTIPLIER1 (if selected)Multiplies all trade quantities. For example, if a trade normally uses 3 contracts, setting this to 2 will result in 6 contracts.
RISK PERCENTAGE2% (if selected)Automatically calculates position size based on a percentage of account capital. For example, 2% of a $50,000 account = $1,000 max risk per trade.

Ensure the PickMyTrade Token is copied correctly and the TradeLocker connection exists in the target account, or execution will fail.

What are your feelings

  • Happy
  • Normal
  • Sad