TradingView to MT4/MT5 Integration | AlgoTim

Automate Your TradingView Strategies to MT4/MT5

Seamlessly execute your TradingView alerts directly in MetaTrader 4 and MetaTrader 5 with our powerful integration solution.

How to Get Started

1

Join Algo Aakash Club

Get access to our TradingView to MT4/MT5 integration by joining our premium club either for free or with a paid membership.

2

Download the EA

Download our expert advisor file and install it in your MetaTrader platform's Experts folder.

3

Configure Your Account

Submit your MT4/MT5 account details through our form to activate the integration.

4

Set Up TradingView Alerts

Create alerts in TradingView using our specific format to trigger trades in MetaTrader.

Installation Guide

Step 1: Download the Expert Advisor

Download our EA file from the link below:

Download EA File

Step 2: Install in MetaTrader

  1. Open your MetaTrader 4 or MetaTrader 5 platform
  2. Click on "File" in the top menu and select "Open Data Folder"
  3. Navigate to MQL4/Experts (for MT4) or MQL5/Experts (for MT5) folder
  4. Copy the downloaded EA file into this folder
  5. Restart your MetaTrader platform
  6. Drag the EA from the Navigator panel onto any chart
  7. Set "Allow automated trading" and "Allow WebRequest for listed URL" in the Expert Advisors settings
  8. Add our webhook URL to the allowed list: https://webhook.algotim.com

Important Note

The EA will only work after your MT4/MT5 account has been activated through Algo Aakash Club. If you're using a free membership, your account must be under our broker link.

Account Activation

Option 1: Join Algo Aakash Club for Free

With our free membership, you can use the EA but your MT4/MT5 account must be under our broker link. This helps us cover the costs of maintaining the service.

Join Free Membership

Option 2: Premium Membership

With our premium membership, you can use the EA with any broker account and get additional benefits:

  • Use with any broker (no restriction)
  • Priority support
  • Access to all our premium indicators
  • Exclusive trading signals
Get Premium Membership

Step 3: Submit Your Account Details

After joining Algo Aakash Club, submit your account details using the form below to activate your integration:


Processing Time

Activation typically takes 1-2 business days. You'll receive an email confirmation once your account is activated and ready to receive trades from TradingView.

TradingView Alert Configuration

To send trades from TradingView to your MT4/MT5 platform, create alerts using our command format. All commands require these components:

[MT4/MT5_Account_Number],[Action],[Symbol],[Parameters],[magic_no=Your_ID]

Parameter Reference Guide

Parameter Required Description Example
MT4/MT5_Account_Number YES Your broker account number 123456
Action YES Buy, Sell, CloseLong, etc. Buy
Symbol YES Must match your broker's symbol name EURUSD
risk Conditional Risk % of account balance risk=2 (for 2%)
qty Conditional Fixed lot size qty=1.5
slprice NO Stop loss price (set to 0 for EA default) slprice=1.0800
targetprice NO Take profit price targetprice=1.0900
buffer For ModifyBE Pips from breakeven buffer=2
magic_no YES Unique ID for tracking trades magic_no=1001

Complete Command Examples

Pro Tip

Replace 123456 with your actual MT4/MT5 account number in all commands.

1. Trade Entry Commands

Buy with Risk %
123456,Buy,EURUSD,risk=2,slprice=1.0800,targetprice=1.0900,magic_no=1001

What it does: Opens long position with lot size calculated for 2% account risk.

When to use: When you want position size automatically adjusted based on account balance.

Buy with Fixed Lots
123456,Buy,GOLD,qty=0.3,slprice=1950,targetprice=1980,magic_no=1002

What it does: Opens 0.3 lot buy position regardless of account size.

When to use: When you want consistent position sizes across trades.

Sell with Risk %
123456,Sell,USDJPY,risk=1.5,slprice=151.50,targetprice=150.80,magic_no=1003

What it does: Opens short position with 1.5% account risk.

When to use: For risk-managed short entries.

2. Position Exit Commands

Close Long Position
123456,CloseLong,EURUSD,qty=100,magic_no=1001

What it does: Closes 100% of long positions for EURUSD with magic# 1001.

When to use: To exit all buy positions for a specific symbol/strategy.

Close Partial Short
123456,CloseShort,XAUUSD,qty=50,magic_no=1002

What it does: Closes 50% of short positions for Gold.

When to use: To take partial profits while letting remainder run.

Close All Positions
123456,CloseAll,magic_no=1003

What it does: Closes ALL trades with magic# 1003 across all symbols.

When to use: Emergency exit for a specific strategy.

3. Order Modification Commands

Modify Stop Loss
123456,ModifySL,EURUSD,slprice=1.0850,magic_no=1001

What it does: Moves SL to 1.0850 for all EURUSD trades with magic# 1001.

When to use: To trail stops or adjust risk after entry.

Modify Take Profit
123456,ModifyTP,GBPUSD,targetprice=1.2650,magic_no=1002

What it does: Updates TP to 1.2650 for all GBPUSD trades with magic# 1002.

Move to Break-Even
123456,ModifyBE,BTCUSD,buffer=10,magic_no=1003

What it does: Moves SL to entry price + 10 pips when position turns profitable.

When to use: To lock in profits after certain move.

Critical Reminder

Your MT4/MT5 account must be activated through Algo Aakash Club before these commands will work. Activate your account now.

Webhook Setup

In TradingView alert settings:

Webhook URL: https://webhook.algotim.com

Message: Paste one of the commands above exactly as shown

Frequently Asked Questions

How long does activation take?

Activation typically takes 1-2 business days after submitting your account details. You'll receive an email confirmation once your account is ready.

Can I use this with any broker?

With our free membership, your account must be under our broker link. Premium members can use the EA with any broker.

What if I change my MT4/MT5 account?

You'll need to submit a new activation request for the new account.

Is there a limit on the number of trades?

No, there's no limit on the number of trades you can send from TradingView to MT4/MT5.

What's the difference between risk and qty parameters?

The "risk" parameter calculates position size based on your account balance and stop loss distance, while "qty" uses a fixed lot size regardless of account size or stop loss.

Ready to Automate Your Trading?

Join Algo Aakash Club today and start executing your TradingView strategies automatically in MetaTrader.

🔓 Get This Tool for FREE!

This will close in 0 seconds

Select your currency
USD United States (US) dollar