{"id":3909,"date":"2023-06-29T20:28:37","date_gmt":"2023-06-29T18:28:37","guid":{"rendered":"https:\/\/cplugin.com\/?post_type=docs&#038;p=3909"},"modified":"2023-07-24T14:19:53","modified_gmt":"2023-07-24T12:19:53","password":"","slug":"gaphelper-plugin","status":"publish","type":"docs","link":"https:\/\/cplugin.com\/docs\/plugins\/gaphelper-plugin\/","title":{"rendered":"GapHelper plugin"},"content":{"rendered":"\n<p>MT4 Plugin to make client get the different scenario outcome at Stop Loss (SL), Take Profit (TP), Pendings and StopOut orders execution.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"GapHelperplugin-Installation\">Installation<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You need to be sure that&nbsp;<a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkId=746572\">Visual C++ Redistributable for Visual Studio 2017<\/a>&nbsp;has been already installed to the server.<\/li>\n\n\n\n<li>Fully working time limited version can be downloaded from here:&nbsp;<a href=\"https:\/\/nuget.cplugin.com\/feeds\/apps\/CPlugin.MT4Plugin.GapHelper\/versions\">https:\/\/nuget.cplugin.com\/feeds\/apps\/CPlugin.MT4Plugin.GapHelper\/versions<\/a><\/li>\n<\/ol>\n\n\n\n<p>Unpack and copy&nbsp;<em>.dll<\/em>&nbsp;file to your \/plugins\/ folder and restart MT4 server.<\/p>\n\n\n\n<p>Demo version limitations<\/p>\n\n\n\n<p>Without license program will proceed first only 100 requests. Than you will need to restart server to reset counter.<\/p>\n\n\n\n<p>At any time you can purchase license for\u00a0unlimited usage. Our contacts:\u00a0<a href=\"http:\/\/cplugin.com\/contact\">http:\/\/cplugin.com\/contact<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"GapHelperplugin-Settings\">Settings<\/h3>\n\n\n\n<p>At very first time, if you don't have settings file, plugin starts normally and generates example settings file automatically.<\/p>\n\n\n\n<p>Example of settings file below:<\/p>\n\n\n\n<p><strong>CPlugin.GapHelper.ini<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">\nenable=1\nticks counting mode=satisfied\ncomment order=1\ndealer bypass SL=1\ndealer bypass Pending=0\ndealer bypass Stopout=1\nticks SL=3\nticks TP=3\nticks Pending=3\nticks Stopout=3\ngroups=!demo*,!test*,*\nsymbols=,forex,*XAU*,*XAG*,\nstop loss mode=last\ntake profit mode=order\nstop order mode=first\nlimit order mode=last\nstopout mode=worst\nnews count=2\nnews time 1=2016\/08\/01 01:30 30\nnews time 2=fri 22:00 240\nverbose=2\n \n[v2.0+]\nmanager=10\ndebug symbols=EURUSD,Forex\nticks Open=3\nticks Close=3\nopen mode=worst\nclose mode=worst<\/code><\/pre>\n\n\n\n<p><code>enable<\/code>&nbsp;- 1\/0 to enable\/disable plugin globally.<\/p>\n\n\n\n<p><code>ticks counting mode<\/code>&nbsp;- any of:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>satisfied<\/code>&nbsp;-&nbsp;previous n-ticks, all satisfy requirement to fire order;<\/li>\n\n\n\n<li><code>following<\/code>&nbsp;-&nbsp;n-ticks after first price which activates order.<\/li>\n<\/ul>\n\n\n\n<p><code>ticks SL<\/code>,&nbsp;<code>ticks TP<\/code>,&nbsp;<code>ticks Pending,&nbsp;ticks Open,&nbsp;ticks Close<\/code>&nbsp;- number of ticks needed to confirm SL \/ TP \/ Pending, Open and Close order respectively.<\/p>\n\n\n\n<p><code>groups<\/code>&nbsp;- groups filter, standard format used, like&nbsp;<code>,!demo*,*,<\/code>&nbsp;to exclude *demo* groups.<\/p>\n\n\n\n<p><code>symbols<\/code>&nbsp;- symbols filter. Even security name can be used as well. For example: ,forex,*XAU*,GAG*, to work only for symbols under&nbsp;'forex' security group and symbols containing XAU or XAG word.<\/p>\n\n\n\n<p><code>stop loss mode, take profit mode, limit order mode, stopout mode,&nbsp;open mode, close mode<\/code>&nbsp;- parameters to manage order execution mode for Stop Loss, Take Profit, limit orders and Stopout orders respectively. Value can be one of:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>first<\/code>&nbsp;-&nbsp;use first tick from ticks sequence;<\/li>\n\n\n\n<li><code>last<\/code>&nbsp;- use last tick from ticks sequence;<\/li>\n\n\n\n<li><code>best&nbsp;<\/code>-&nbsp;best quoted price based on the tick (numbers of tick count set) in the array<\/li>\n\n\n\n<li><code>fair-worst<\/code>&nbsp;-&nbsp;between the best price in the array, we will pick the worst among them<\/li>\n\n\n\n<li><code>worst<\/code>&nbsp;-&nbsp;use worst price from ticks sequence;<\/li>\n\n\n\n<li><code>trade<\/code>&nbsp;- use price set by client (useful for Stop Loss, Take Profit and Pending orders).<\/li>\n<\/ul>\n\n\n\n<p><code>verbose<\/code>&nbsp;- choose logging verbosity:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>0 - minimal logging, only errors and warning messages;<\/li>\n\n\n\n<li>1 - general messages and configuration updates;<\/li>\n\n\n\n<li>2 - most verbosity, for debugging of plugin.<\/li>\n<\/ul>\n\n\n\n<p><code>comment order<\/code>&nbsp;- enable(1)\/disable(0) a feature that will mark orders that are executed by plugin with prefix&nbsp;<em>[gap]<\/em>, both clients and broker will see this comment.<\/p>\n\n\n\n<p><code>dealer bypass SL<\/code>&nbsp;-&nbsp;enable(1)\/disable(0) a feature that makes SL orders to be executed with first tick came from manager\/dealer (instead of regular feed). Ticks counting feature will be bypasses, it means that there will have no need to confirm ticks sequence with multiple ticks in a row.<\/p>\n\n\n\n<p><code>dealer bypass Pending<\/code>&nbsp;- enable(1)\/disable(0) very same feature for Pending orders.<\/p>\n\n\n\n<p>StopOut does not support all modes<\/p>\n\n\n\n<p>'fair-worst' mode and will be switched to 'best'<br>'order' mode and will be switched to 'first'<\/p>\n\n\n\n<p>'fair-worst' mode limitations<\/p>\n\n\n\n<p>&nbsp;Whenever&nbsp;<em>fair-worst<\/em>&nbsp;mode failed looking for best price, if all following prices will be worse than set in order, it will select worst from them.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"GapHelperplugin-v2.0feature:VirtualDealermode\">v2.0 feature : Virtual Dealer mode<\/h3>\n\n\n\n<p>In this mode plugin capture market order attempts like dealer does and await required number of ticks until making a decision regarding price to be used, then it execute request in accordance to settings.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"GapHelperplugin-additionalparametersinsettingsfile:\">additional parameters in settings file:<\/h4>\n\n\n\n<p><code>manager<\/code>&nbsp;- login of dealer (any manager account) on behalf of which plugin will act;<\/p>\n\n\n\n<p><code>debug symbols<\/code>&nbsp;- MQ's mask where you can specify symbol names and security group names. It let you see price stream for selected symbols right in MT4 journal, for easier debugging of execution during preferable mode selection.<\/p>\n\n\n\n<p><code>Ticks counting algorithms<\/code>&nbsp;- not taken into account and during market orders (Open or Close)<\/p>\n\n\n\n<p><code>fair-worst<\/code>&nbsp;mode has no meaning for Open \/ Close orders as well and will get switched to the&nbsp;<code>worst<\/code>&nbsp;mode.<\/p>\n\n\n\n<p>It does not work with Automatic execution mode (groups-&gt;security), so please set up at least manual\/auto mode to let plugin get callbacks from MT4 server.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"GapHelperplugin-Newsmode\">News mode<\/h4>\n\n\n\n<p>If none of news time has been set up plugin will work all the time. Or it will work only during those periods.<\/p>\n\n\n\n<p><code>news count<\/code>&nbsp;- number of news that will be defined below<\/p>\n\n\n\n<p><code>news time &lt;news index&gt;=&lt;news value&gt;<\/code>&nbsp;- each news period should use this form.<\/p>\n\n\n\n<p><code>news index<\/code>&nbsp;- index of record, counting from 1.<\/p>\n\n\n\n<p><code>news value<\/code>&nbsp;- can be one of these format:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>&lt;day&gt;\/&lt;month&gt;\/&lt;year&gt; &lt;hour&gt;:&lt;minute&gt; &lt;duration&gt;<\/code><\/li>\n\n\n\n<li><code>&lt;day of week&gt; &lt;hour&gt;:&lt;minute&gt; &lt;duration&gt;<\/code><\/li>\n<\/ol>\n\n\n\n<p>Use first format if you want to set exact date and time.<br>If you want to repeat every week chose second variant.<\/p>\n\n\n\n<p><code>&lt;duration&gt;<\/code>&nbsp;- how long (in minutes) plugin should work.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"GapHelperplugin-NotesregardingMT4journal\">Notes regarding MT4 journal<\/h4>\n\n\n\n<p>For example, when you enable verbosity to value of 2 in MT4 journal you will see messages like this:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><code>Order #100&nbsp;<\/code><code>'buy stop'<\/code>&nbsp;<code>confirmed, open price updated from 100.02 to 103.02,&nbsp;<\/code><code>'worst'<\/code>&nbsp;<code>from: [101.02, 103.02, 102.02]<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Buy Stop order has been confirmed by plugin, price has been adjusted from&nbsp;<code>100.02<\/code>&nbsp;to value of&nbsp;<code>103.02<\/code>.<br><code>worst<\/code>&nbsp;- describes algorithm that has been chosen to calculate execution price.&nbsp;<br><code>[101.02, 103.02, 102.02]<\/code>&nbsp;- last n-ticks (configurable for each order type) sequence in order they came.<br><code>100.02<\/code>&nbsp;- Buy Stop level was set by client to that value.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"GapHelperplugin-Examples\">Examples<\/h3>\n\n\n\n<p>Assume that 3 ticks needed to confirm Stop Loss, Take Profit and Pending order execution.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">&nbsp;Buy trade, Take Profit will not fire<\/h5>\n\n\n\n<p>TP:&nbsp;<strong>100.00<\/strong><\/p>\n\n\n\n<p>Ticks:<br>1. 99.00<br>2. 98.00<br>3. 97.00<br>4. 96.00<br>5.&nbsp;101.00&nbsp;\u2190&nbsp;plugin will deny TP execution because tick 3 price is less than 100.00&nbsp;<br>6.&nbsp;102.00&nbsp;\u2190&nbsp;plugin will deny TP execution because tick 4 price is less than 100.00&nbsp;<br>7. 95.00 \u2190&nbsp;order remain open<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">&nbsp;Buy trade, Take Profit will fire<\/h5>\n\n\n\n<p>TP:&nbsp;<strong>100.00<\/strong><\/p>\n\n\n\n<p>Ticks:<br>1: 99.00&nbsp;<br>2: 98.00&nbsp;<br>3: 97.00<br>4: 96.00<br>5:&nbsp;101.00&nbsp;\u2190&nbsp;plugin will deny TP execution because tick 3 price is less than 100.00<br>6:&nbsp;103.00&nbsp;\u2190&nbsp;plugin will deny TP execution because tick 4 price is less than 100.00<br>7:&nbsp;102.00&nbsp;\u2190&nbsp;TP will fire at level&nbsp;<strong>100.00<\/strong>, as it was set up by client<\/p>\n\n\n\n<p>&nbsp;Buy trade, Stop Loss will not fire<\/p>\n\n\n\n<p>SL:&nbsp;<strong>100.00<\/strong><\/p>\n\n\n\n<p>Ticks:<br>1. 101.00<br>2. 102.00<br>3. 103.00<br>4. 104.00<br>5.&nbsp;99.00&nbsp;\u2190&nbsp;plugin will deny SL execution because tick 3 price is greater than 100.00&nbsp;<br>6.&nbsp;98.00&nbsp;\u2190&nbsp;plugin will deny SL execution because tick 4 price is greater than 100.00&nbsp;<br>7. 105.00 \u2190&nbsp;order remain open<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">&nbsp;Buy trade, Stop Loss will fire<\/h5>\n\n\n\n<p>SL:&nbsp;<strong>100.00<\/strong><\/p>\n\n\n\n<p>Ticks:<br>1. 101.00<br>2. 102.00<br>3. 103.00<br>4. 104.00<br>5.&nbsp;99.00&nbsp;\u2190&nbsp;plugin will deny SL execution because tick 3 price is greater than 100.00&nbsp;<br>6.&nbsp;97.00&nbsp;\u2190&nbsp;plugin will deny SL execution because tick 4 price is greater than 100.00&nbsp;<br>7.&nbsp;<strong>98.00&nbsp;<\/strong>\u2190&nbsp;SL will fire at level&nbsp;<strong>98.00<\/strong>, last confirmed price<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">&nbsp;Buy Stop will not fire<\/h5>\n\n\n\n<p>Price:&nbsp;<strong>100.00<\/strong><\/p>\n\n\n\n<p>Ticks:<br>1. 96.00<br>2. 97.00<br>3. 98.00<br>4. 99.00<br>5.&nbsp;101.00&nbsp;\u2190&nbsp;plugin will deny executing BuyStop order because tick 3 price is less than 100.00&nbsp;<br>6.&nbsp;102.00&nbsp;\u2190&nbsp;plugin will deny executing BuyStop order because tick 4 price is less than 100.00&nbsp;<br>7. 95.00 \u2190&nbsp;order remain pending<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">&nbsp;Buy Stop will fire<\/h5>\n\n\n\n<p>Price:&nbsp;<strong>100.00<\/strong><\/p>\n\n\n\n<p>Ticks:<br>1. 96.00<br>2. 97.00<br>3. 98.00<br>4. 99.00<br>5.&nbsp;101.00&nbsp;\u2190&nbsp;plugin will deny executing BuyStop order because tick 3 price is less than 100.00&nbsp;<br>6.&nbsp;103.00&nbsp;\u2190&nbsp;plugin will deny executing BuyStop order because tick 4 price is less than 100.00&nbsp;<br>7.&nbsp;<strong>102.00<\/strong>&nbsp;\u2190&nbsp;order opened at price&nbsp;<strong>102.00<\/strong><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">&nbsp;Buy trade, Stop Loss will fire using tick thrown by dealer<\/h5>\n\n\n\n<p>SL:&nbsp;<strong>100.00<\/strong><br>Assume that:&nbsp;<code>dealer bypass SL=1<\/code><\/p>\n\n\n\n<p>Ticks:<br>1. 101.00<br>2. 102.00<br>3. 103.00<br>4. 104.00<br>5.&nbsp;<strong>99.00<\/strong>&nbsp;\u2190&nbsp;this tick was thrown by manager. plugin will execute this order using price of&nbsp;<strong>99.00<\/strong><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">&nbsp;More complex example: Buy trade, Stop Loss will fire normally<\/h5>\n\n\n\n<p>SL:&nbsp;<strong>100.00<\/strong><br>Assume that:&nbsp;<code>dealer bypass SL=0<\/code>&nbsp;<\/p>\n\n\n\n<p>Ticks:<br>1. 104.00<br>2. 103.00<br>3. 102.00<br>4. 101.00<br>5.&nbsp;99.00&nbsp;\u2190&nbsp;this tick was thrown by (manager),&nbsp;plugin will deny SL execution because tick 3 price is greater than 100.00. Last 3 ticks sequence: 102.00 101.00&nbsp;99.00<br>6. 100.5&nbsp;\u2190 tick from regular (feed), price is better than SL. Sequence interrupted<br>7.&nbsp;98.90&nbsp;\u2190&nbsp;(manager)&nbsp;plugin will deny SL execution&nbsp;because tick 6 price is greater than 100.00. Last 3 ticks sequence:&nbsp;99.00&nbsp;100.5&nbsp;98.90<br>8. 100.4&nbsp;\u2190 (feed), price is better than SL. Sequence interrupted<br>7.&nbsp;98.80&nbsp;\u2190&nbsp;(manager)&nbsp;plugin will deny SL execution&nbsp;because tick 8 price is greater than 100.00. Last 3 ticks sequence:&nbsp;98.90&nbsp;100.4&nbsp;98.80<br>7.&nbsp;97.00&nbsp;\u2190&nbsp;(manager)&nbsp;plugin will deny SL execution&nbsp;because tick 8 price is greater than 100.00. Last 3 ticks sequence:&nbsp;100.4&nbsp;98.80 97.00<br>8.&nbsp;<strong>98.00<\/strong>&nbsp;\u2190&nbsp;(manager)&nbsp;SL will be fired at level&nbsp;<strong>98.00<\/strong>, last confirmed price from sequence:&nbsp;98.80&nbsp;97.00&nbsp;<strong>98.00<\/strong><\/p>\n\n\n\n<p>If we set&nbsp;<code>dealer bypass SL=1<\/code>&nbsp;than order be executed at price&nbsp;<strong>99.00&nbsp;<\/strong>when tick 5 comes.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">&nbsp;Buy limit order fired<\/h5>\n\n\n\n<p>Price:&nbsp;<strong>100.00<\/strong><\/p>\n\n\n\n<p>Ticks:<br>1. 104.00<br>2. 103.00<br>3. 102.00<br>4. 101.00<br>5.&nbsp;99.50<br>6.&nbsp;100.50&nbsp;\u2190&nbsp;plugin will deny executing&nbsp;Buy Limit&nbsp;order because tick 4 price is less than 100.00. Last 3 ticks sequence: 101.00&nbsp;95.00&nbsp;100.50<br>7.&nbsp;102.50&nbsp;\u2190&nbsp;plugin will deny executing&nbsp;Buy Limit&nbsp;order because tick 4 price is less than 100.00. Last 3 ticks sequence:&nbsp;99.50&nbsp;100.50&nbsp;102.50<br>8.&nbsp;<strong>101.50<\/strong>&nbsp;\u2190&nbsp;order opened at price&nbsp;<strong>101.50<\/strong>.Last 3 ticks sequence:&nbsp;100.50&nbsp;102.50&nbsp;<strong>101.50<\/strong><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">&nbsp;Buy trade, Stopout will not fire<\/h5>\n\n\n\n<p>For instance, we have 'Buy' order opened, when price goes down under level of 100.00 MT4 will try to close it because margin level became critically low. &nbsp;<\/p>\n\n\n\n<p>Ticks:<br>1. 101.00<br>2. 102.00<br>3. 103.00<br>4. 104.00<br>5.&nbsp;99.00&nbsp;\u2190&nbsp;plugin will deny Stopout execution because only one (99.00) of last three ticks were used to execute stopout order.<br>6.&nbsp;98.00&nbsp;\u2190&nbsp;plugin will deny&nbsp;Stopout&nbsp;execution because&nbsp;only two (99.00 and 98.00) of last three ticks were used to execute stopout order.<br>7. 105.00 \u2190&nbsp;order remain open. MT4 did not try to fire stopout order.<\/p>\n\n\n\n<p>In MT4 journal you can notice messages like:<br>0&nbsp;17:36:50.738&nbsp;'1000': reach stopout ml 40.49%, equity: 158.45, margin: 391.29 \u2190 MT4 noticed a moment for executing stopout<br>0&nbsp;17:36:50.739&nbsp;CPlugin.GapHelper&nbsp;Stopout skipped, last ticks: [1.11722, 1.11720, 1.10958], stopout prices: [1.10962, 1.10960, 1.10958]&nbsp; \u2190 plugin prevents this, order remains open<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">&nbsp;Buy trade, Stopout will fire<\/h5>\n\n\n\n<p>For instance, we have 'Buy' order opened, when price goes down under level of 100.00 MT4 will try to close it because margin level became&nbsp;critically&nbsp;low.<br>'Last' price algorithm has been used in this example.<\/p>\n\n\n\n<p>Ticks:<br>1. 101.00<br>2. 102.00<br>3. 103.00<br>4. 104.00<br>5.&nbsp;99.00&nbsp;\u2190&nbsp;plugin will deny&nbsp;Stopout&nbsp;execution because&nbsp;only one (99.00) of last three ticks were used to execute stopout order.<br>6.&nbsp;97.00&nbsp;\u2190&nbsp;plugin will deny&nbsp;Stopout&nbsp;execution because&nbsp;only two (97.00) of last three ticks were used to execute stopout order.<br>7.&nbsp;<strong>98.00&nbsp;<\/strong>\u2190&nbsp;Stopout&nbsp;will fire at level&nbsp;<strong>98.00<\/strong>, last confirmed price. All three ticks (99.00, 97.00 and 98.00) in a row were used by MT4 to execute stopout order.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">All execution modes in one scheme.&nbsp;<\/h5>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>BUY, TP = 100<br>incoming ticks:102 first103 best101 fair-worst98 worst99 last<\/td><td>SELL, TP = 100<br>incoming ticks:98 first97 best99 fair-worst102 worst101 last<\/td><td>BUY STOP @ 100<br>incoming ticks:101 first97 best99 fair-worst102 worst98 last<\/td><td>SELL STOP @ 100<br>incoming ticks:99 first103 best101 fair-worst98 worst102 last<\/td><\/tr><tr><td>BUY, SL = 100<br>incoming ticks:99 first102 best101 fair-worst97 worst98 last<\/td><td>SELL, SL = 100<br>incoming ticks:102 first98 best99 fair-worst103 worst101 last<\/td><td>BUY LIMIT @ 100<br>incoming ticks:101 first97 best99 fair-worst102 worst98 last<\/td><td>SELL LIMIT @ 100<br>incoming ticks:99 first103 best101 fair-worst98 worst102 last<\/td><\/tr><tr><td>BUY, StopOut<br>incoming ticks:99 first102 best97 worst98 last<br>order =&gt; firstfair-worst =&gt; best<\/td><td>SELL, StopOut<br>incoming ticks:102 first98 best103 worst101 last<br>order =&gt; firstfair-worst =&gt; best<\/td><td><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>MT4 Plugin to make client get the different scenario outcome at Stop Loss (SL), Take Profit (TP), Pendings and StopOut orders execution. Installation Unpack and copy&nbsp;.dll&nbsp;file to your \/plugins\/ folder and restart MT4 server. Demo version limitations Without license program will proceed first only 100 requests. Than you will need to restart server to reset [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[86],"doc_tag":[],"class_list":["post-3909","docs","type-docs","status-publish","hentry","doc_category-plugins"],"year_month":"2026-06","word_count":1972,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Vladislav Sorokin","author_nicename":"cplugin","author_url":"https:\/\/cplugin.com\/blog\/author\/cplugin\/"},"doc_category_info":[{"term_name":"Plugins for MT4\/MT5","term_url":"https:\/\/cplugin.com\/docs-category\/plugins\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>GapHelper plugin - CPlugin<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cplugin.com\/docs\/plugins\/gaphelper-plugin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GapHelper plugin - CPlugin\" \/>\n<meta property=\"og:description\" content=\"MT4 Plugin to make client get the different scenario outcome at Stop Loss (SL), Take Profit (TP), Pendings and StopOut orders execution. Installation Unpack and copy&nbsp;.dll&nbsp;file to your \/plugins\/ folder and restart MT4 server. Demo version limitations Without license program will proceed first only 100 requests. Than you will need to restart server to reset [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cplugin.com\/docs\/plugins\/gaphelper-plugin\/\" \/>\n<meta property=\"og:site_name\" content=\"CPlugin\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/cplugin\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-24T12:19:53+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@CPlugin_com\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cplugin.com\/docs\/plugins\/gaphelper-plugin\/\",\"url\":\"https:\/\/cplugin.com\/docs\/plugins\/gaphelper-plugin\/\",\"name\":\"GapHelper plugin - CPlugin\",\"isPartOf\":{\"@id\":\"https:\/\/cplugin.com\/#website\"},\"datePublished\":\"2023-06-29T18:28:37+00:00\",\"dateModified\":\"2023-07-24T12:19:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cplugin.com\/docs\/plugins\/gaphelper-plugin\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cplugin.com\/docs\/plugins\/gaphelper-plugin\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cplugin.com\/docs\/plugins\/gaphelper-plugin\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cplugin.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\/\/cplugin.com\/wiki\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"GapHelper plugin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cplugin.com\/#website\",\"url\":\"https:\/\/cplugin.com\/\",\"name\":\"CPlugin\",\"description\":\"CPlugin offers software and services to Forex brokers who use MetaQuotes MetaTrader 4 and 5 which are most advanced and reliable trading platforms.\",\"publisher\":{\"@id\":\"https:\/\/cplugin.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cplugin.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/cplugin.com\/#organization\",\"name\":\"CPlugin Ltd.\",\"url\":\"https:\/\/cplugin.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cplugin.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.cplugin.com\/wp-content\/uploads\/2021\/07\/CPlugin-logo-1.png\",\"contentUrl\":\"https:\/\/www.cplugin.com\/wp-content\/uploads\/2021\/07\/CPlugin-logo-1.png\",\"width\":1823,\"height\":677,\"caption\":\"CPlugin Ltd.\"},\"image\":{\"@id\":\"https:\/\/cplugin.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/cplugin\",\"https:\/\/x.com\/CPlugin_com\",\"https:\/\/www.linkedin.com\/company\/cplugin\",\"https:\/\/www.youtube.com\/c\/CPlugin_com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GapHelper plugin - CPlugin","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cplugin.com\/docs\/plugins\/gaphelper-plugin\/","og_locale":"en_US","og_type":"article","og_title":"GapHelper plugin - CPlugin","og_description":"MT4 Plugin to make client get the different scenario outcome at Stop Loss (SL), Take Profit (TP), Pendings and StopOut orders execution. Installation Unpack and copy&nbsp;.dll&nbsp;file to your \/plugins\/ folder and restart MT4 server. Demo version limitations Without license program will proceed first only 100 requests. Than you will need to restart server to reset [&hellip;]","og_url":"https:\/\/cplugin.com\/docs\/plugins\/gaphelper-plugin\/","og_site_name":"CPlugin","article_publisher":"https:\/\/www.facebook.com\/cplugin","article_modified_time":"2023-07-24T12:19:53+00:00","twitter_card":"summary_large_image","twitter_site":"@CPlugin_com","twitter_misc":{"Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cplugin.com\/docs\/plugins\/gaphelper-plugin\/","url":"https:\/\/cplugin.com\/docs\/plugins\/gaphelper-plugin\/","name":"GapHelper plugin - CPlugin","isPartOf":{"@id":"https:\/\/cplugin.com\/#website"},"datePublished":"2023-06-29T18:28:37+00:00","dateModified":"2023-07-24T12:19:53+00:00","breadcrumb":{"@id":"https:\/\/cplugin.com\/docs\/plugins\/gaphelper-plugin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cplugin.com\/docs\/plugins\/gaphelper-plugin\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cplugin.com\/docs\/plugins\/gaphelper-plugin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cplugin.com\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/cplugin.com\/wiki\/"},{"@type":"ListItem","position":3,"name":"GapHelper plugin"}]},{"@type":"WebSite","@id":"https:\/\/cplugin.com\/#website","url":"https:\/\/cplugin.com\/","name":"CPlugin","description":"CPlugin offers software and services to Forex brokers who use MetaQuotes MetaTrader 4 and 5 which are most advanced and reliable trading platforms.","publisher":{"@id":"https:\/\/cplugin.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cplugin.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/cplugin.com\/#organization","name":"CPlugin Ltd.","url":"https:\/\/cplugin.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cplugin.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.cplugin.com\/wp-content\/uploads\/2021\/07\/CPlugin-logo-1.png","contentUrl":"https:\/\/www.cplugin.com\/wp-content\/uploads\/2021\/07\/CPlugin-logo-1.png","width":1823,"height":677,"caption":"CPlugin Ltd."},"image":{"@id":"https:\/\/cplugin.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/cplugin","https:\/\/x.com\/CPlugin_com","https:\/\/www.linkedin.com\/company\/cplugin","https:\/\/www.youtube.com\/c\/CPlugin_com"]}]}},"_links":{"self":[{"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/docs\/3909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/comments?post=3909"}],"version-history":[{"count":3,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/docs\/3909\/revisions"}],"predecessor-version":[{"id":4027,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/docs\/3909\/revisions\/4027"}],"wp:attachment":[{"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/media?parent=3909"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/doc_category?post=3909"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/doc_tag?post=3909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}