<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pine Script Archives - IQ TRADE TECH</title>
	<atom:link href="https://iqtrade.ai/tag/pine-script/feed/" rel="self" type="application/rss+xml" />
	<link>https://iqtrade.ai/tag/pine-script/</link>
	<description></description>
	<lastBuildDate>Tue, 02 Jun 2026 05:08:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.1</generator>
	<item>
		<title>Trading View MetaTrader 5 Bridge Tutorial</title>
		<link>https://iqtrade.ai/portfolio-item/trading-view-metatrader-5-bridge-tutorial/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=trading-view-metatrader-5-bridge-tutorial</link>
					<comments>https://iqtrade.ai/portfolio-item/trading-view-metatrader-5-bridge-tutorial/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 30 May 2026 15:31:23 +0000</pubDate>
				<category><![CDATA[Expert Advisor]]></category>
		<category><![CDATA[meta trader5]]></category>
		<category><![CDATA[mql5]]></category>
		<category><![CDATA[Pine Script]]></category>
		<category><![CDATA[trading view]]></category>
		<guid isPermaLink="false">https://iqtrade.ai/?post_type=portfolio&#038;p=158</guid>

					<description><![CDATA[<p>The post <a href="https://iqtrade.ai/portfolio-item/trading-view-metatrader-5-bridge-tutorial/">Trading View MetaTrader 5 Bridge Tutorial</a> appeared first on <a href="https://iqtrade.ai">IQ TRADE TECH</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div id='av_section_1'  class='avia-section av-j0dgu-64ca4a109e97564d3368060f0f795d10 main_color avia-section-default avia-no-border-styling  avia-builder-el-0  avia-builder-el-no-sibling  avia-bg-style-scroll container_wrap sidebar_right'  ><div class='container av-section-cont-open' ><main  role="main" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="https://schema.org/Blog"  class='template-page content  av-content-small alpha units'><div class='post-entry post-entry-type-page post-entry-158'><div class='entry-content-wrapper clearfix'>

<style type="text/css" data-created_by="avia_inline_auto" id="style-css-av-mpshm2fk-c88f6ace4f90f7dc34dc297922bacce9">
#top .av-special-heading.av-mpshm2fk-c88f6ace4f90f7dc34dc297922bacce9{
padding-bottom:10px;
}
body .av-special-heading.av-mpshm2fk-c88f6ace4f90f7dc34dc297922bacce9 .av-special-heading-tag .heading-char{
font-size:25px;
}
.av-special-heading.av-mpshm2fk-c88f6ace4f90f7dc34dc297922bacce9 .av-subheading{
font-size:15px;
}
</style>
<div  class='av-special-heading av-mpshm2fk-c88f6ace4f90f7dc34dc297922bacce9 av-special-heading-h1 blockquote modern-quote modern-centered  avia-builder-el-1  el_before_av_hr  avia-builder-el-first '><h1 class='av-special-heading-tag '  itemprop="headline"  >Trading View MetaTrader 5 Bridge Tutorial</h1><div class="special-heading-border"><div class="special-heading-inner-border"></div></div></div>
<div  class='hr av-f37oe-ee8616c5908c5694ea21435d608d0c57 hr-default  avia-builder-el-2  el_after_av_heading  el_before_av_video '><span class='hr-inner '><span class="hr-inner-style"></span></span></div>
<div  class='avia-video av-mpshn5vk-cb3eb78bcacf02d511128a15cbd971d1 avia-video-16-9 av-no-preview-image avia-video-load-always av-lazyload-immediate av-lazyload-video-embed'  itemprop="video" itemtype="https://schema.org/VideoObject"  data-original_url='https://youtu.be/-oqrKtcCGYc'><script type='text/html' class='av-video-tmpl'><div class='avia-iframe-wrap'><iframe title="IQ TRADE BRIDGE TUTORIAL" width="1500" height="844" src="https://www.youtube.com/embed/-oqrKtcCGYc?feature=oembed&autoplay=0&loop=0&controls=1&mute=0" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div></script><div class='av-click-to-play-overlay'><div class="avia_playpause_icon"></div></div></div>
<div  class='hr av-a0666-3b3a2f0d344867d29636425b2e9c520d hr-default  avia-builder-el-4  el_after_av_video  el_before_av_textblock '><span class='hr-inner '><span class="hr-inner-style"></span></span></div>
<section  class='av_textblock_section av-mpsidftk-cf16d6d037fee6ffb26f4d92462c4d1b '   itemscope="itemscope" itemtype="https://schema.org/CreativeWork" ><div class='avia_textblock'  itemprop="text" ><p>In the video above we are demonstrating how to install our Trading View MetaTrader 5 Bridge.</p>
<p>The first step you need to take (if you wish so) is to create your own signals server.</p>
<p>When you buy our FX Kit <span style="text-decoration: underline;"><strong>you can download the full guide</strong></span> along with the files you need to install on your Plesk panel.</p>
<p>The 1st step is to buy a domain (or use one that you already have) and create a subdomain (ex webhook.mydomain.com).</p>
<p>Next step will be to install an SSL Certificate on this subdomain.</p>
<p>Then you have to set up a new database in your Plesk Panel and note down the username and password.</p>
<p>You must also create a 12 secret phrase.</p>
<p>Next step is to install the files on your subdomain files directory through your Plesk Panel.</p>
<p>You will then have to make some changes in some specific files <span style="text-decoration: underline;"><strong>(all described in detail in the DIY Guide you receive when you buy our FX Kit)</strong></span>.</p>
<p>Once you have finalized the process of setting up your own server and webhook you are good to proceed with the next steps.</p>
<p>For each one of your Bots you will have to create a <strong>magic number</strong> (ex 111111). Create a unique magic number for each one of your Bots.</p>
<p>Also have available your <strong>secret phrase</strong>.</p>
<p>Now you can use the templates below to create your signal messages. Replace the trading pair, magic number and secret phrase accordingly. Also adjust the tp_percent, the sl_percent and the volume accordingly.</p>
<h4><strong>Open Long Message</strong></h4>
<p>{<br />
&#8220;secret&#8221;: &#8220;YOURSECRETPHRASE&#8221;,<br />
&#8220;id&#8221;: &#8220;{{time}}-YOURTRADINGPAIR-long-YOURMAGICNUMBER&#8221;,<br />
&#8220;magic&#8221;: YOURMAGICNUMBER,<br />
&#8220;symbol&#8221;: &#8220;YOURTRADINGPAIR&#8221;,<br />
&#8220;action&#8221;: &#8220;enter_long&#8221;,<br />
&#8220;order_type&#8221;: &#8220;market&#8221;,<br />
&#8220;tp_percent&#8221;: 0.40,<br />
&#8220;sl_percent&#8221;: 0.10,<br />
&#8220;volume&#8221;: 1.5<br />
}</p>
<h4><strong>Close Long Message</strong></h4>
<p>{<br />
&#8220;secret&#8221;: &#8220;YOURSECRETPHRASE&#8221;,<br />
&#8220;id&#8221;: &#8220;{{time}}-YOURTRADINGPAIR-closeL-YOURMAGICNUMBER&#8221;,<br />
&#8220;magic&#8221;: YOURMAGICNUMBER,<br />
&#8220;symbol&#8221;: &#8220;EURUSD&#8221;,<br />
&#8220;action&#8221;: &#8220;close_long&#8221;,<br />
&#8220;order_type&#8221;: &#8220;market&#8221;,<br />
&#8220;volume&#8221;: 1.50<br />
}</p>
<h4>Open Short  Message</h4>
<p>{<br />
&#8220;secret&#8221;: &#8220;YOURSECRETPHRASE&#8221;,<br />
&#8220;id&#8221;: &#8220;{{time}}-YOURTRADINGPAIR-short-YOURMAGICNUMBER&#8221;,<br />
&#8220;magic&#8221;: YOURMAGICNUMBER,<br />
&#8220;symbol&#8221;: &#8220;YOURTRADINGPAIR&#8221;,<br />
&#8220;action&#8221;: &#8220;enter_short&#8221;,<br />
&#8220;order_type&#8221;: &#8220;market&#8221;,<br />
&#8220;volume&#8221;: 1.50,<br />
&#8220;tp_percent&#8221;: 0.40,<br />
&#8220;sl_percent&#8221;: 0.10<br />
}</p>
<h4><strong>Close Short Message</strong></h4>
<p>{<br />
&#8220;secret&#8221;: &#8220;YOURSECRETPHRASE&#8221;,<br />
&#8220;id&#8221;: &#8220;{{time}}-YOURTRADINGPAIR-closeS-YOURMAGICNUMBER&#8221;,<br />
&#8220;magic&#8221;: YOURMAGICNUMBER,<br />
&#8220;symbol&#8221;: &#8220;YOURTRADINGPAIR&#8221;,<br />
&#8220;action&#8221;: &#8220;close_short&#8221;,<br />
&#8220;order_type&#8221;: &#8220;market&#8221;,<br />
&#8220;volume&#8221;: 1.50<br />
}</p>
<p>Now that you have prepared the messages you will go to the Strategy Dashboard.</p>
<p><img fetchpriority="high" decoding="async" class="size-full wp-image-160 aligncenter" src="https://iqtrade.ai/wp-content/uploads/2026/05/MT5-TV5-BRIDGE-1.png" alt="" width="461" height="278" srcset="https://iqtrade.ai/wp-content/uploads/2026/05/MT5-TV5-BRIDGE-1.png 461w, https://iqtrade.ai/wp-content/uploads/2026/05/MT5-TV5-BRIDGE-1-300x181.png 300w" sizes="(max-width: 461px) 100vw, 461px" /></p>
<p>Go to properties and click only <strong>After order is filled</strong> and <strong>On bar close</strong>.</p>
<p><img decoding="async" class="size-full wp-image-161 aligncenter" src="https://iqtrade.ai/wp-content/uploads/2026/05/MT5-TV5-BRIDGE-2.png" alt="" width="554" height="375" srcset="https://iqtrade.ai/wp-content/uploads/2026/05/MT5-TV5-BRIDGE-2.png 554w, https://iqtrade.ai/wp-content/uploads/2026/05/MT5-TV5-BRIDGE-2-300x203.png 300w" sizes="(max-width: 554px) 100vw, 554px" /></p>
<p>Then go to inputs and on the Alerts Section select <strong>Code Boxes</strong>.</p>
<p>For any of your Long Only Bots do this:</p>
<p>Paste the Open Long Message at the Open Long Box.</p>
<p>Paste the Close Long Message at Close Long Reversal Box, Close Long TP Box, Close Long SL Box.</p>
<p>For any of your Short Only Bots do this:</p>
<p>Paste the Open Short Message at the Open Short Box.</p>
<p>Paste the Close Long Message at Close Short Reversal Box, Close Short TP Box, Close Short SL Box.</p>
<p>Then go back to your chart and right click anywhere on the Strategy to create an alert.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-163 aligncenter" src="https://iqtrade.ai/wp-content/uploads/2026/05/MT5-TV5-BRIDGE-3.png" alt="" width="468" height="440" srcset="https://iqtrade.ai/wp-content/uploads/2026/05/MT5-TV5-BRIDGE-3.png 468w, https://iqtrade.ai/wp-content/uploads/2026/05/MT5-TV5-BRIDGE-3-300x282.png 300w" sizes="auto, (max-width: 468px) 100vw, 468px" /></p>
<p>In the Condition Field select the <strong>Orders Fills Only</strong> option.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-164 aligncenter" src="https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-4.png" alt="" width="468" height="497" srcset="https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-4.png 468w, https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-4-282x300.png 282w" sizes="auto, (max-width: 468px) 100vw, 468px" /></p>
<p>In the message section replace the Trading View message with this</p>
<p><strong>{{strategy.order.alert_message}} </strong></p>
<p>And just select a name for your alert.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-165 aligncenter" src="https://iqtrade.ai/wp-content/uploads/2026/05/MT5-TV5-BRIDGE-5.png" alt="" width="473" height="648" srcset="https://iqtrade.ai/wp-content/uploads/2026/05/MT5-TV5-BRIDGE-5.png 473w, https://iqtrade.ai/wp-content/uploads/2026/05/MT5-TV5-BRIDGE-5-219x300.png 219w" sizes="auto, (max-width: 473px) 100vw, 473px" /></p>
<p>Last step before you create the alert is to input your webhook. Your webhook must look like this:</p>
<p><strong>https://webhook.yourdomain.com/tradingview</strong></p>
<p>Click on Apply and now you are ready to go to your MT5 Account. Before starting the installation make sure that you turn on algorithmic trading on your MT5 Terminal .</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-177 aligncenter" src="https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-13.png" alt="" width="613" height="398" srcset="https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-13.png 613w, https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-13-300x195.png 300w" sizes="auto, (max-width: 613px) 100vw, 613px" /></p>
<p>To do that go to Tools/Options/Expert Advisors. Then click on Allow Algorithmic Trading, unselect the next two boxes, also select the Allow DDL Imports and the Allow WebRequest option and in the box below add your domain name.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-166 aligncenter" src="https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-6.png" alt="" width="580" height="464" srcset="https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-6.png 580w, https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-6-300x240.png 300w" sizes="auto, (max-width: 580px) 100vw, 580px" /></p>
<p>Then click <strong>File</strong> and then the <strong>Open Data Folder</strong> option.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-167 aligncenter" src="https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-7.png" alt="" width="410" height="244" srcset="https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-7.png 410w, https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-7-300x179.png 300w" sizes="auto, (max-width: 410px) 100vw, 410px" /></p>
<p>Click and open the<strong> MQL5 Folder</strong>.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-168 aligncenter" src="https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-8.png" alt="" width="394" height="315" srcset="https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-8.png 394w, https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-8-300x240.png 300w" sizes="auto, (max-width: 394px) 100vw, 394px" /></p>
<p>Open the <strong>Experts Folder</strong>.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-169 aligncenter" src="https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-9.png" alt="" width="228" height="151" /></p>
<p>Paste the two files you have downloaded using the links we provided when you acquired the FX Kit.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-170 aligncenter" src="https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-10.png" alt="" width="360" height="756" srcset="https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-10.png 360w, https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-10-143x300.png 143w, https://iqtrade.ai/wp-content/uploads/2026/05/mt5-tv5-bridge-10-336x705.png 336w" sizes="auto, (max-width: 360px) 100vw, 360px" /></p>
<p>Go back to your MT5 Terminal scroll down to the Experts Advisor section, right click there and click on the refresh option.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-235 aligncenter" src="https://iqtrade.ai/wp-content/uploads/2026/05/tutorial-fix.png" alt="" width="743" height="703" srcset="https://iqtrade.ai/wp-content/uploads/2026/05/tutorial-fix.png 743w, https://iqtrade.ai/wp-content/uploads/2026/05/tutorial-fix-300x284.png 300w, https://iqtrade.ai/wp-content/uploads/2026/05/tutorial-fix-705x667.png 705w" sizes="auto, (max-width: 743px) 100vw, 743px" /></p>
<p>Open a new chart (right click on a symbol ex EURUSD and select Chart Window) and drag in there the TV MT5 Bridge Expert Advisor. Copy and paste your exact subdomain that you have created (https://yourdomain.com) and your specific bot/strategy magic number. Also set your TP and SL so MT5 locks them automatically. By this way you have a double safety in case a trading view alert TP/SL Alert fails.</p>
<p>This is it. You have successfully set up your Trading View to MetaTrader 5 Strategy automation.</p>
</div></section>
</div></div></main><!-- close content main element --></div></div><div id='after_section_1'  class='main_color av_default_container_wrap container_wrap sidebar_right'  ><div class='container av-section-cont-open' ><div class='template-page content  av-content-small alpha units'><div class='post-entry post-entry-type-page post-entry-158'><div class='entry-content-wrapper clearfix'>
<p>The post <a href="https://iqtrade.ai/portfolio-item/trading-view-metatrader-5-bridge-tutorial/">Trading View MetaTrader 5 Bridge Tutorial</a> appeared first on <a href="https://iqtrade.ai">IQ TRADE TECH</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://iqtrade.ai/portfolio-item/trading-view-metatrader-5-bridge-tutorial/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
