{"id":3907,"date":"2023-06-29T20:23:14","date_gmt":"2023-06-29T18:23:14","guid":{"rendered":"https:\/\/cplugin.com\/?post_type=docs&#038;p=3907"},"modified":"2026-04-01T12:48:24","modified_gmt":"2026-04-01T10:48:24","password":"","slug":"flexible-leverage","status":"publish","type":"docs","link":"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/","title":{"rendered":"Flexible Leverage"},"content":{"rendered":"\n<p>This is a plugin for MetaQuotes MetaTrader 4\/5. It dynamically changes leverage for a client depend on his open positions. Each instrument type has different calculations: forex, metals and indices.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Configuration through Web UI<\/h3>\n\n\n\n<p>Recently, we run out of standard MT4\/5 plugin's settings management to the very own Web-based UI portal. It is because MT4\/5 has limitation of number of parameters that it can handle, to store near to infinite number of settings it needs to store it outside MT4\/5 platform.<\/p>\n\n\n\n<p>To manage it, it needs external application. The plugin has simple API (described below) to communicate with external UI using Manager API.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Download, unpack and copy DLL to platform's Plugins folder,\n<ol class=\"wp-block-list\">\n<li>restart platform<\/li>\n\n\n\n<li>ensure it get loaded by checking logs<\/li>\n\n\n\n<li>add instance of this plugin to MT5 (in MT4 it will be listed automatically)<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>Have a look to&nbsp;<a href=\"https:\/\/cplugin.com\/docs\/webapi\/webapi\/\">Cloud based web solutions<\/a>&nbsp;to get general idea<\/li>\n\n\n\n<li>Register your company at&nbsp;<a href=\"https:\/\/admin.cplugin.net\/\" class=\"broken_link\" rel=\"nofollow\"><em>Admin<\/em><\/a>&nbsp;portal and&nbsp;<a href=\"https:\/\/admin.cplugin.net\/Organizations\" class=\"broken_link\" rel=\"nofollow\">change<\/a>&nbsp;its name from default one\n<ol class=\"wp-block-list\">\n<li>Add your MT4\/5 servers to the&nbsp;<a href=\"https:\/\/admin.cplugin.net\/TradePlatforms\" class=\"broken_link\" rel=\"nofollow\">TradePlatforms<\/a>&nbsp;section<\/li>\n\n\n\n<li>Ensure it gets connected <img decoding=\"async\" width=\"105\" height=\"45\" class=\"wp-image-4081\" style=\"width: 105px;\" src=\"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/connected.png\" alt=\"\">.<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>Navigate to\u00a0<a href=\"https:\/\/toolbox.cplugin.com\">https:\/\/toolbox.cplugin.com<\/a>\u00a0and check\u00a0<a href=\"https:\/\/toolbox.cplugin.net\/TradePlatforms\" class=\"broken_link\" rel=\"nofollow\"><em>TradePlatforms<\/em><\/a>\u00a0section\n<ol class=\"wp-block-list\">\n<li>activate (<img decoding=\"async\" width=\"150\" height=\"34\" class=\"wp-image-4082\" style=\"width: 150px;\" src=\"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/activate.png\" alt=\"\">) your platform to let system get connected (bottom right corner,<img decoding=\"async\" width=\"67\" height=\"33\" class=\"wp-image-4083\" style=\"width: 67px;\" src=\"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/small-conntected.png\" alt=\"\">)<\/li>\n\n\n\n<li>search for plugin instance that it should discover automatically after being connected<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n\n<p><br>Latest plugin version without GUI:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/confluence.cplugin.com\/pages\/viewpage.action?pageId=1016115&amp;navigatingVersions=true\">Flexible Leverage (GUI-less version page from history)<\/a>&nbsp;documentation<\/li>\n\n\n\n<li>MT4 versions history :&nbsp;<a href=\"http:\/\/nuget.cplugin.com\/nuget\/apps\/package\/CPlugin.MT4Plugin.FlexibleLeverage\/1.25.0\">http:\/\/nuget.cplugin.com\/nuget\/apps\/package\/CPlugin.MT4Plugin.FlexibleLeverage\/<\/a><a href=\"http:\/\/nuget.cplugin.com\/nuget\/apps\/package\/CPlugin.MT4Plugin.FlexibleLeverage\/1.25.0\" target=\"_blank\" rel=\"noreferrer noopener\">1.25.0<\/a><\/li>\n\n\n\n<li>MT5 version :&nbsp;<a href=\"https:\/\/nuget.cplugin.com\/nuget\/apps\/package\/CPlugin.MT5Plugin.FlexibleLeverage\/1.0.1.12\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/nuget.cplugin.com\/nuget\/apps\/package\/CPlugin.MT5Plugin.FlexibleLeverage\/1.0.1.12<\/a><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"FlexibleLeverage-Installation\">Installation<\/h3>\n\n\n\n<p>You need to ensure that&nbsp;<a href=\"https:\/\/aka.ms\/vs\/17\/release\/vc_redist.x86.exe\" target=\"_blank\" rel=\"noreferrer noopener\">Visual C++ Redistributable for Visual Studio 2015, 2017, 2019 and 2022<\/a>&nbsp;is installed to the server.<\/p>\n\n\n\n<p>A fully working time-limited version can be downloaded from here:&nbsp;<a href=\"http:\/\/nuget.cplugin.com\/feeds\/apps\/CPlugin.MT4Plugin.FlexibleLeverage\/versions\">http:\/\/nuget.cplugin.com\/feeds\/apps\/CPlugin.MT4Plugin.FlexibleLeverage\/versions<\/a><br>Download, unzip and copy CPlugin.FlexibleLeverage.dll&nbsp;file to your \/plugins\/ subfolder, then restart MT4 server.<\/p>\n\n\n\n<p>MT5 version can be downloaded from&nbsp;<a href=\"http:\/\/nuget.cplugin.com\/feeds\/apps\/CPlugin.MT5Plugin.FlexibleLeverage\/versions\">http:\/\/nuget.cplugin.com\/feeds\/apps\/CPlugin.MT5Plugin.FlexibleLeverage\/versions<\/a><\/p>\n\n\n\n<p>Download and unzip it after, you will get .dll file with short documentation, settings example and version history.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"FlexibleLeverage-Pluginsettings\">Plugin settings<\/h3>\n\n\n\n<p><code>Managers<\/code> - manager logins who permitted to change settings remotely, using MT4\/5 Telnet API \/ Manager API.<\/p>\n\n\n\n<p><code>GUID<\/code>\u2063 \u2013 unique identifier to let automatic discovery run. Please do not change it, its value automatically generated when plugin started for very first time.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"FlexibleLeverage-SettingsthroughUI\">Settings through UI<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"761\" height=\"1024\" src=\"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/settings-example-761x1024.png\" alt=\"\" class=\"wp-image-4087\" srcset=\"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/settings-example-761x1024.png 761w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/settings-example-223x300.png 223w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/settings-example-768x1033.png 768w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/settings-example-1142x1536.png 1142w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/settings-example-600x807.png 600w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/settings-example.png 1314w\" sizes=\"(max-width: 761px) 100vw, 761px\" \/><\/figure>\n\n\n\n<p><code>verbose<\/code>&nbsp;- is a level of verbosity of logging, a value of:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>silence<\/li>\n\n\n\n<li>fatal error<\/li>\n\n\n\n<li>error<\/li>\n\n\n\n<li>warning<\/li>\n\n\n\n<li>info<\/li>\n\n\n\n<li>trace \u2013 most verbosity output, best to be used during initial set up\/testing.<\/li>\n<\/ul>\n\n\n\n<p>If you use old plugin version: In MT5, the maximum setting rows is 128. In that case, it suggested separating complicates settings to multiple plugin instances.<\/p>\n\n\n\n<p>Very important!<\/p>\n\n\n\n<p>After MT4 FL v1.26+ and MT5 FL v1.16 there is no more ability to manage settings from MT4\/5 Admin because there is a (platform's) limit of rows specified, it limited number of policies you can specify, so customers complained about that limit and only the way was to switch for external storage of settings, outside of MT4\/5 platform.<\/p>\n\n\n\n<p>So now the limit is 1024 policies. If you still need more \u2013 contact us.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"FlexibleLeverage-Policies\">Policies<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"324\" src=\"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/Screenshot_20250616_171200-1024x324.png\" alt=\"\" class=\"wp-image-4188\" style=\"object-fit:cover\" srcset=\"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/Screenshot_20250616_171200-1024x324.png 1024w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/Screenshot_20250616_171200-300x95.png 300w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/Screenshot_20250616_171200-768x243.png 768w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/Screenshot_20250616_171200-1536x486.png 1536w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/Screenshot_20250616_171200-600x190.png 600w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/Screenshot_20250616_171200.png 1547w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Each policy has:<\/p>\n\n\n\n<p><code>enabled<\/code>&nbsp;- flag to&nbsp;enable(<code>1<\/code>) or disable(<code>0<\/code>) that policy.<\/p>\n\n\n\n<p><code>groups<\/code>&nbsp;- masks of groups, separated by comma. Example:&nbsp;<code>!demo,*<\/code><\/p>\n\n\n\n<p><code>marginMode<\/code>&nbsp;- proceed only specified margin calculation mode, a value from MT4 server API:<br>when disabled - it uses&nbsp;<code>&lt;securitiesMasks&gt;<\/code> parameter;<br>0 - MARGIN_CALC_FOREX;<br>1 - MARGIN_CALC_CFD;<br>2 - MARGIN_CALC_FUTURES;<br>3 - MARGIN_CALC_CFDINDEX (not supported yet);<br>4 - MARGIN_CALC_CFDLEVERAGE.<\/p>\n\n\n\n<p><code>securities<\/code>&nbsp;- masks of securities (MT4 admin \u2192 securities tab). Empty value - disables such restriction.<\/p>\n\n\n\n<p><code>&lt;marginMode&gt;<\/code>&nbsp;and&nbsp;<code>&lt;securitiesMasks&gt;<\/code>&nbsp;is the <strong>third<\/strong> priority search filter.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Policy search routine<\/h3>\n\n\n\n<p>Multiple policies can match simultaneously. And we need to find out the best policy reliably, not just the very first matched policy.<\/p>\n\n\n\n<p><code>OR<\/code> and <code>AND<\/code> logic describes the requirements during search over parameters like user group and symbol name, to decide, shall plugin apply settings to any entity or not.<\/p>\n\n\n\n<p>If any part of the routine is not defined, it will assume it successfully passed the particular search. <br>For example, you can specify <code>logins<\/code> and keep <code>groups<\/code> empty. The algorithm will only pay attention to <code>logins<\/code> filter and will bypass logic related to <code>groups<\/code>, like it always matches.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Logic: <code>OR<\/code><\/h4>\n\n\n\n<p><code>Login<\/code> compete with <code>user group<\/code> when both parameters satisfy search. A policy, where <code>login<\/code> matched, has higher priority and will \u201cwin\u201d search over another policy, where <code>user group<\/code> matched.<\/p>\n\n\n\n<p>The same applied to <code>symbol<\/code> when it competes with <code>security group<\/code>. A policy, where <code>symbol<\/code> matched, will \u201cwin\u201d over another policy, where <code>security group<\/code> matched.<\/p>\n\n\n\n<p>Because if we search only by <code>user group<\/code> or by <code>login<\/code> - it is not reliable, it can be a part of other policies by different <code>symbols<\/code> for example. So, we continue to search by <code>symbol<\/code>, and if not found, by <code>security group<\/code> and <code>margin mode<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"432\" height=\"1024\" src=\"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/image-432x1024.png\" alt=\"\" class=\"wp-image-4199\" srcset=\"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/image-432x1024.png 432w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/image-127x300.png 127w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/image-600x1421.png 600w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/image.png 734w\" sizes=\"(max-width: 432px) 100vw, 432px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Logic: <code>AND<\/code><\/h4>\n\n\n\n<p>This is a more strict algorithm, requiring you to pass all steps or none.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"505\" height=\"1024\" src=\"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/image-1-505x1024.png\" alt=\"\" class=\"wp-image-4200\" srcset=\"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/image-1-505x1024.png 505w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/image-1-148x300.png 148w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/image-1-768x1558.png 768w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/image-1-757x1536.png 757w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/image-1-600x1217.png 600w, https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/image-1.png 842w\" sizes=\"(max-width: 505px) 100vw, 505px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"FlexibleLeverage-PolicyBands\">Policy Bands<\/h4>\n\n\n\n<p><code>Currency<\/code>&nbsp;- you can specify how each band size must be calculated, a value of:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>if none entered - the account's currency, the default mode;<\/li>\n\n\n\n<li>or any currency code can be entered like: USD or GBP<\/li>\n<\/ul>\n\n\n\n<p><code>Bands Type = percent | leverage<\/code><\/p>\n\n\n\n<p>By default, if&nbsp;<code>Bands Type<\/code>&nbsp;not specified,&nbsp;<code>leverage<\/code>&nbsp;will be used (back compatibility with old settings file and plugin version)<br>Having&nbsp;<code>percent<\/code>&nbsp;means that you set band values in percentage (1 = 1%). The plugin then ignores the MT4 symbol's&nbsp;<code>percentage<\/code>&nbsp;value and uses the value from the plugin settings instead.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"FlexibleLeverage-Policysearchbylogins\">Policy search by logins<\/h5>\n\n\n\n<p>This is very first and&nbsp;<strong>highest<\/strong>&nbsp;priority search filter.<\/p>\n\n\n\n<p><code>&lt;logins mask&gt;<\/code>&nbsp;can have a list of logins and masks separated by comma like:&nbsp;<code>1000,2000*,!20005<\/code><\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"FlexibleLeverage-Policysearchbysymbols\">Policy search by symbols<\/h5>\n\n\n\n<p>Second priority search filter.<\/p>\n\n\n\n<p><code>&lt;symbols mask&gt;<\/code>&nbsp;can have a list of symbols and masks separated by comma like:&nbsp;<code>!EUR*,*USD*<\/code><\/p>\n\n\n\n<p>If any symbol name passed by this mask, then&nbsp;<code>securitiesMasks<\/code>&nbsp;filter will be skipped from being checked, does not matter what mask specified there.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"FlexibleLeverage-Policybandsettings\">Policy band settings<\/h5>\n\n\n\n<p>Each band has:<br><code>limit<\/code>&nbsp;-&nbsp;bottom line of volume (specified in currency).<br><code>value<\/code>&nbsp;- leverage|percentage to be within this band. 100 means 1:100, 1 = 1%, respectively.<\/p>\n\n\n\n<p>For each&nbsp;band, plugin uses minimal value between band's setting and actual user's leverage. So if user has leverage 1:200 and in band you put 1:500 plugin will use 1:200.<\/p>\n\n\n\n<p>To provide leverage for rest volume, you can set last line using format:&nbsp;<code>&lt;leverage&gt;&nbsp;<br><\/code>So, you can set leverage for volume that are higher than your previous line volume.<\/p>\n\n\n\n<p>Bands use client's group currency.<\/p>\n\n\n\n<p>Here and below, USD is just for example.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"FlexibleLeverage-&quot;RejectafterNOP&quot;feature\">\"Reject after NOP\" feature<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/confluence.cplugin.com\/download\/attachments\/1015811\/image2020-12-7_19-40-48.png?version=1&amp;modificationDate=1607366447127&amp;api=v2\" alt=\"\"\/><\/figure>\n\n\n\n<p>The Plugin can reject further attempts to open more orders after getting over the total net open position.<\/p>\n\n\n\n<p>Clients will get 'Too Many Orders' error in their trade terminal. Limit orders will be deleted with comment <code>deleted[NOP Achieved]<\/code>.<\/p>\n\n\n\n<p><code>&lt;verbosity&gt;<\/code>&nbsp;- from&nbsp;<em>silence<\/em>&nbsp;to&nbsp;<em>verbosity<\/em>,&nbsp;how output to journal.<\/p>\n\n\n\n<p><code>&lt;group mask and\/or logins\/mask&gt;<\/code>&nbsp;- you can specify masks of groups and logins separated by comma (spaces not allowed). Example:&nbsp;<code>5000*,!50001,real* 100k 1 EUR<\/code><\/p>\n\n\n\n<p><code>&lt;NOP&gt;<\/code>&nbsp;- net open position.<\/p>\n\n\n\n<p><code>&lt;enable&gt;<\/code>&nbsp;- flag to enable(<code>1<\/code>) or disable(<code>0<\/code>) that rule.<\/p>\n\n\n\n<p><code>&lt;currency&gt;<\/code>&nbsp;- optional field to specify the currency we assume specified in&nbsp;<code>&lt;NOP&gt;<\/code>&nbsp;field.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"FlexibleLeverage-&quot;Recalcmarginrates&quot;feature\">\"Recalc margin rates\" feature<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/confluence.cplugin.com\/download\/thumbnails\/1015811\/image2020-12-7_19-40-2.png?version=1&amp;modificationDate=1607366401487&amp;api=v2\" alt=\"\"\/><\/figure>\n\n\n\n<p>Recalculate margin rates after symbol settings change.<\/p>\n\n\n\n<p>&lt;now&gt; - request plugin to recalculate rates as soon as possible. When plugin done with recalculations, it will reset this parameter back to off. You should monitor this parameter (GUI will not fetch updates until you explicitly request it). Once it set back to off, you need to restart MTx platform, to apply those rates. Without restart - MT4 will not consider any changes made by plugin.<\/p>\n\n\n\n<p>&lt;monitor&gt; - monitor symbol settings update, when found - it will run recalculate feature.<\/p>\n\n\n\n<p>&lt;SO disable&gt; - Forbid executing of Stop Out if so. To be disabled manually after the process done!<\/p>\n\n\n\n<p>&lt;logins masks&gt; - list of logins to work with. (better to specify to reduce running time).<\/p>\n\n\n\n<p>&lt;groups masks&gt; - list of masks of groups separated by comma. (better to specify to reduce running time).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"FlexibleLeverage-Examples\">Examples<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/confluence.cplugin.com\/download\/attachments\/1015811\/image2020-12-7_19-32-25.png?version=1&amp;modificationDate=1607365944077&amp;api=v2\" alt=\"\"\/><\/figure>\n\n\n\n<p>for all groups starting from 'demo', symbols that use 'forex' margin calculation formula, accounts with login started from 1000 and 2000 use two bands: until 100k USD leverage will be 1:50, for the rest volume leverage will be 1:10.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"FlexibleLeverage-Forex\">Forex<\/h4>\n\n\n\n<p>Flexible leverage model will automatically be adapted to clients' trading positions and total USD volume they keep open. As the total open USD volume per Instrument of a client increases, the maximum leverage offered decreases accordingly.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Open Volume USD<\/th><th>Maximum Leverage<\/th><th>Margin used<\/th><\/tr><\/thead><tbody><tr><td>0 - 3m<\/td><td>Max 1:500<\/td><td>$6,000 ($3m\/500)<\/td><\/tr><tr><td>3m - 5m<\/td><td>Max 1:200<\/td><td>$10,000 ($2m\/200)<\/td><\/tr><tr><td>5m - 15m<\/td><td>Max 1:100<\/td><td>$100,000 ($10m\/100)<\/td><\/tr><tr><td>15m - 30m<\/td><td>Max 1:50<\/td><td>$300,000 ($4m\/50)<\/td><\/tr><tr><td>30m +<\/td><td>max 1:20<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Actual leverage for 30m is 1:72<\/p>\n\n\n\n<p>Note where the account leverage is less, the account leverage will be used instead.<\/p>\n\n\n\n<p>The sum of the total positions volume in USD is calculated in the following way:<br>1 lot is 100000 units of the base currency (first currency) so we transform it in USD using the current applicable rate if required,<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>1 lot USDJPY = 100k USD (no conversion needed)<\/li>\n\n\n\n<li>1 lot EURUSD @ 1.1350= 113500 USD (multiply 100k by 1.1350)<\/li>\n\n\n\n<li>2 lot EURJPY = 227k USD (multiply 200k by 1.1350 EURUSD VALUE AT THE TIME OF OPENING)<\/li>\n\n\n\n<li>30 lots USDCAD = 3m USD<\/li>\n<\/ul>\n\n\n\n<p>Therefore, total volume: 100000 + 113500 + 227000 +3,000,000 = 1440500 USD<\/p>\n\n\n\n<p>Every time a new position is opened, the USD value of the new trades is added, and the margin calculations are performed based on the above table.<\/p>\n\n\n\n<p>Note, BUY or SELL direction is not affecting this. Hedge positions need a NEW 100% margin.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Buy 15 lots USDJPY= 1.5m USD<\/li>\n\n\n\n<li>Sell 15 lots USDJPY= 1.5m USD<\/li>\n\n\n\n<li>But 10 lots USDCAD= 1m USD<\/li>\n<\/ul>\n\n\n\n<p>Total volume 4m USD<br>Assuming the account has 1:500<br>First 3m are in first band 1:500 needs $6000<br>Extra 1 m are in second band 1:200 so needs another $5000<br>Total margin required 11000 USD<br>In the above example if account has 1:200<br>First 3m are in first band 1:500 but account leverage is 1:200 so overcomes needs 15000<br>Extra 1 m are in second band 1:200 same as account\u2019s so 5000<br>Total margin required 20000 USD<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"FlexibleLeverage-Metals\">Metals<\/h4>\n\n\n\n<p>Metals valued USD will be calculated separately on EACH metal any forex exposure will be ignored. For example, if a trader has 30 lots Buy on EURUSD, and then starts trading SILVER, his\/her margin requirement for SILVER (FOREX), will not be influenced by the existing FOREX positions. If client now chooses opens GOLD is also not affected by the existing positions (SILVER and EURUSD) but if he opens new SILVER positions dynamic leverage rules starts to apply.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Open Volume (USD)<\/th><th>Maximum Leverage<\/th><th>Margin used<\/th><\/tr><\/thead><tbody><tr><td>0 - 250k Max<\/td><td>1:200 (0.5%)<\/td><td>1,250 ($250k\/200)<\/td><\/tr><tr><td>250k - 500k<\/td><td>Max 1:100 (1%)<\/td><td>2,500 ($250k\/100)<\/td><\/tr><tr><td>500k - 2m<\/td><td>Max 1:50 (2%)<\/td><td>30,000 ($1.5m\/50)<\/td><\/tr><tr><td>2m - 5m<\/td><td>Max 1:20 (5%)<\/td><td>150,000 ($3m\/20)<\/td><\/tr><tr><td>5m + \u039cax<\/td><td>1:10 (10%)<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>GOLD price $1250<\/p>\n\n\n\n<p>40 lots Gold at $1250 is $5m (125010040)<br>Used Margin is 183,750 USD (table above)<br>Note BUY or SELL direction is not impacting this. Hedge positions need NEW extra 100% margin<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"FlexibleLeverage-Indices\">Indices<\/h4>\n\n\n\n<p>INDICES margin are calculated per lot per single instrument. As the trading volume per Instrument of a client increases, the maximum leverage offered decreases accordingly; as per the following table.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Open Lots<\/th><th>Margin Requirement<\/th><\/tr><\/thead><tbody><tr><td>0-30<\/td><td>Standard Margin Per Instrument<\/td><\/tr><tr><td>30-50<\/td><td>Margin * 2<\/td><\/tr><tr><td>50-100<\/td><td>Margin * 5<\/td><\/tr><tr><td>100-200<\/td><td>Margin * 8<\/td><\/tr><tr><td>200&nbsp;<\/td><td>Margin * 10<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>For INDICES this is done per Trading Instrument, so if a client has positions open across multiple indices Instruments, the leverage will be calculated separately on each Index instrument. For example, if a trader has a position in EURUSD and Gold, and wants to trade DAX his\/her margin requirement for DAX will not be altered by any other existing trades, unless if the existing trades are DAX.<\/p>\n\n\n\n<p>Note, BUY or SELL direction is not impacting this. 1 Buy lot and 1 Sell lot equals 2 lots.<br>Hedge positions need NEW 100% margin.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"FlexibleLeverage-Example1:\">Example 1:<\/h5>\n\n\n\n<p>Client with USD account 1:500<br>OPEN 15 LOTS buy DAX (for 1 lot is 1000 USD)<br>Required margin is 15000 USD<br>Opens extra 20 lots Sell DAX. TOTAL lots 35 (15 Buy+ 20 Sell)<br>Required margin is 30000 USD for the first 30 lots (first band)<br>and the remaining 5 needs 10000 (510002 second band)<br>Total margin used 40000 USD<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"FlexibleLeverage-Example2:\">Example 2:<\/h5>\n\n\n\n<p>Client with USD account 1:500<br>Has open USDJPY 10 lots (1 million USD first band)<br>Required margin for this 2000 USD<br>Open 2 lot DAX (for 1 lot is 1000 USD)<br>Required margin for this 2000 USD<br>Total margin requirements 2000 + 2000 = 4000 USD<br>Now client opens 1 lot HSI (for 1 lot is 7000 USD)<br>Required margin for this 7000 USD<br>New Total margin requirements 4000+7000 = 11000 USD<br>Now client opens another 35lots of DAX (for 1 lot is 1000 USD)<br>Total DAX lots = 2(existing) + 35(new) = 37 lots<br>New Margin for the extra 35 DAX 281000 +71000*2<br>42000 USD<br>TOTAL for all trades<br>10 lots USDJPY = 2000 USD<br>2 lots DAX = 2000 USD<br>1 lots HIS = 7000 USD<br>35 lots DAX (new) = 42000 USD<br>Total: 53000 USD<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">&nbsp;API for settings management<\/h3>\n\n\n\n<p>To manage settings from any remote system (custom GUI) plugin has its API built on top of Manager API,&nbsp;<code>ExternalCommand<\/code>&nbsp;in MT4 and&nbsp;<code>CustomCommand<\/code>&nbsp;in MT5.<\/p>\n\n\n\n<p>To send anything to plugin, you have to follow a generic type of payload test:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"json\" class=\"language-json\">{\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200bCMD:enum}\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b[\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b;{\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200bID:guid}\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b;{\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200bpayload:JSON}\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b]<\/code><\/pre>\n\n\n\n<p>Always use ANSI code page.<\/p>\n\n\n\n<p>Square brackets mean optional data.<\/p>\n\n\n\n<p><code>ID<\/code> \u2013 unique identifier of plugin which can be found in plugin settings, when it starts it generate unique value.<\/p>\n\n\n\n<p><code>CMD<\/code> has a value of:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>get <\/li>\n\n\n\n<li>set<\/li>\n\n\n\n<li>discovery<\/li>\n<\/ul>\n\n\n\n<p><code>payload<\/code> - pure JSON data as is.<\/p>\n\n\n\n<p>Each call to plugin, when plugin accept it (ID if valid, data validated) will return value of format shown below:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"json\" class=\"language-json\">{\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b \u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\"success\": true|false,  \"description\" : \"any text or null\", \"payload\": \"JSON structure\" }\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"FlexibleLeverage-Commands\">Commands<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"FlexibleLeverage-Getsettings\">Get settings<\/h5>\n\n\n\n<p>Request current settings from server.<\/p>\n\n\n\n<p>Request example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\"><code>get;4bf69175-3ce0-4623-9659-be0400b9a883<\/code><\/code><\/pre>\n\n\n\n<p>Will return current plugin settings<\/p>\n\n\n\n<p>Response example is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"json\" class=\"language-json\"><code><code>{\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b&nbsp;&nbsp;\"success\":&nbsp;true,&nbsp;&nbsp;\"description\":&nbsp;\"any meaningful text, especially during failure\",&nbsp;&nbsp;\"payload\": {\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b \"enabled\":&nbsp;true,&nbsp; \"verbose\": 5,&nbsp;\"policies\": [{\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b &lt;policy definition&gt;&nbsp;}] }\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b}\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b<\/code><\/code><\/code><\/pre>\n\n\n\n<p>here and below - data from plugin settings file&nbsp;as is&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"FlexibleLeverage-Setsettings\">Set settings<\/h5>\n\n\n\n<p>Push settings back to the server.<\/p>\n\n\n\n<p><strong>Request example<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">set;ccf822b4-cef3-4554-b500-6406726c60bb;{\"enabled\":true,\"verbose\":0,\"rejectAfterVerbose\":0,\"rejectAfter\":[{\"NOP\":1000000,\"enabled\":false,\"groupsOrLoginsMasks\":\"*test*\",\"currency\":\"USD\"}],\"policies\":[{\"groups\":\"demo*\",\"enabled\":true,\"marginMode\":-1,\"securitiesMasks\":\"\",\"bandsCurrency\":\"USD\",\"bandsType\":0,\"loginsMasks\":\"\",\"symbolsMasks\":\"\",\"bands\":[{\"limit\":500000,\"leverage\":100.0}]}],\"recalc\":{\"loginsMasks\":\"\",\"groupsMasks\":\"\",\"now\":false,\"monitor\":false,\"SODisable\":false}}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"FlexibleLeverage-Demoversionlimitations\">Demo version limitations<\/h3>\n\n\n\n<p>The Free demo version functionality is limited to the first 100 trades to be processed. <br>To continue testing, you could restart your MT4\/5 server. Contact us to&nbsp;purchase full license.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a plugin for MetaQuotes MetaTrader 4\/5. It dynamically changes leverage for a client depend on his open positions. Each instrument type has different calculations: forex, metals and indices. Configuration through Web UI Recently, we run out of standard MT4\/5 plugin&#8217;s settings management to the very own Web-based UI portal. It is because MT4\/5 [&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":"set","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-3907","docs","type-docs","status-publish","hentry","doc_category-plugins"],"year_month":"2026-06","word_count":2425,"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>Flexible Leverage \u2013 Cplugin Risk Management Solution<\/title>\n<meta name=\"description\" content=\"Discover Cplugin\u2019s Flexible Leverage feature to adjust trading leverage dynamically, optimize risk management, enhance trading performance for brokers and traders.\" \/>\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\/flexible-leverage\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Flexible Leverage \u2013 Cplugin Risk Management Solution\" \/>\n<meta property=\"og:description\" content=\"Discover Cplugin\u2019s Flexible Leverage feature to adjust trading leverage dynamically, optimize risk management, enhance trading performance for brokers and traders.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/\" \/>\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=\"2026-04-01T10:48:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/connected.png\" \/>\n\t<meta property=\"og:image:width\" content=\"105\" \/>\n\t<meta property=\"og:image:height\" content=\"45\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\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=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/\",\"url\":\"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/\",\"name\":\"Flexible Leverage \u2013 Cplugin Risk Management Solution\",\"isPartOf\":{\"@id\":\"https:\/\/cplugin.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/connected.png\",\"datePublished\":\"2023-06-29T18:23:14+00:00\",\"dateModified\":\"2026-04-01T10:48:24+00:00\",\"description\":\"Discover Cplugin\u2019s Flexible Leverage feature to adjust trading leverage dynamically, optimize risk management, enhance trading performance for brokers and traders.\",\"breadcrumb\":{\"@id\":\"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/#primaryimage\",\"url\":\"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/connected.png\",\"contentUrl\":\"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/connected.png\",\"width\":105,\"height\":45},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/#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\":\"Flexible Leverage\"}]},{\"@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":"Flexible Leverage \u2013 Cplugin Risk Management Solution","description":"Discover Cplugin\u2019s Flexible Leverage feature to adjust trading leverage dynamically, optimize risk management, enhance trading performance for brokers and traders.","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\/flexible-leverage\/","og_locale":"en_US","og_type":"article","og_title":"Flexible Leverage \u2013 Cplugin Risk Management Solution","og_description":"Discover Cplugin\u2019s Flexible Leverage feature to adjust trading leverage dynamically, optimize risk management, enhance trading performance for brokers and traders.","og_url":"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/","og_site_name":"CPlugin","article_publisher":"https:\/\/www.facebook.com\/cplugin","article_modified_time":"2026-04-01T10:48:24+00:00","og_image":[{"width":105,"height":45,"url":"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/connected.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@CPlugin_com","twitter_misc":{"Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/","url":"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/","name":"Flexible Leverage \u2013 Cplugin Risk Management Solution","isPartOf":{"@id":"https:\/\/cplugin.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/#primaryimage"},"image":{"@id":"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/#primaryimage"},"thumbnailUrl":"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/connected.png","datePublished":"2023-06-29T18:23:14+00:00","dateModified":"2026-04-01T10:48:24+00:00","description":"Discover Cplugin\u2019s Flexible Leverage feature to adjust trading leverage dynamically, optimize risk management, enhance trading performance for brokers and traders.","breadcrumb":{"@id":"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/#primaryimage","url":"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/connected.png","contentUrl":"https:\/\/cplugin.com\/wp-content\/uploads\/2023\/06\/connected.png","width":105,"height":45},{"@type":"BreadcrumbList","@id":"https:\/\/cplugin.com\/docs\/plugins\/flexible-leverage\/#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":"Flexible Leverage"}]},{"@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\/3907","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=3907"}],"version-history":[{"count":17,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/docs\/3907\/revisions"}],"predecessor-version":[{"id":4208,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/docs\/3907\/revisions\/4208"}],"wp:attachment":[{"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/media?parent=3907"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/doc_category?post=3907"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/cplugin.com\/wp-json\/wp\/v2\/doc_tag?post=3907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}