{"id":17642,"date":"2021-03-31T23:51:15","date_gmt":"2021-03-31T20:51:15","guid":{"rendered":"http:\/\/www.davinci-fx.com\/?p=17642"},"modified":"2021-05-25T19:25:43","modified_gmt":"2021-05-25T16:25:43","slug":"scpirt-swap","status":"publish","type":"post","link":"https:\/\/www.davinci-fx.com\/en\/scpirt-swap\/","title":{"rendered":"Script for calculating swap in points and deposit currency DaVinci Swap Counter"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.davinci-fx.com\/en\/scpirt-swap\/#Description_of_the_script\" >Description of the script<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.davinci-fx.com\/en\/scpirt-swap\/#Setting_up_the_script\" >Setting up the script:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.davinci-fx.com\/en\/scpirt-swap\/#An_example_of_the_script\" >An example of the script:<\/a><\/li><\/ul><\/nav><\/div>\n<h2 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Description_of_the_script\"><\/span><span style=\"font-size: 18pt; color: #000000;\">Description of the script<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We present to your attention a very simple script that displays a swap for currency pairs from the market watch window, or all available instruments of a broker. Values are displayed in both points and money.<\/p>\n<p>This information will be useful to you if you open orders during the Asian trading session and transfer positions to rollover. It will allow you to calculate the amount that the broker will have to pay if you are not using the Swap free trading account type.<\/p>\n<h2 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Setting_up_the_script\"><\/span><span style=\"color: #333333; font-size: 18pt;\"><strong>Setting up the script:<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<table style=\"border-collapse: collapse; width: 100%; height: 84px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 28px;\">\n<td style=\"width: 22.4742%; height: 28px;\">ViewAllSymbol<\/td>\n<td style=\"width: 77.5258%; height: 28px;\">If set to <strong>true<\/strong>, then the script will take data for all instruments available to the broker. If <strong>false<\/strong>, only data from the market watch window will be displayed.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"An_example_of_the_script\"><\/span><span style=\"color: #333333; font-size: 18pt;\"><strong>An example of the script:<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The script is simply transferred to the chart and after calculations an information window with data appears::<\/p>\n<p><a ref=\"magnificPopup\" href=\"http:\/\/www.davinci-fx.com\/wp-content\/uploads\/2021\/03\/Swap-info.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-17644\" src=\"http:\/\/www.davinci-fx.com\/wp-content\/uploads\/2021\/03\/Swap-info.png\" alt=\"\u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u0432\u043e\u043f\" width=\"359\" height=\"498\" srcset=\"https:\/\/www.davinci-fx.com\/wp-content\/uploads\/2021\/03\/Swap-info.png 359w, https:\/\/www.davinci-fx.com\/wp-content\/uploads\/2021\/03\/Swap-info-216x300.png 216w, https:\/\/www.davinci-fx.com\/wp-content\/uploads\/2021\/03\/Swap-info-111x154.png 111w, https:\/\/www.davinci-fx.com\/wp-content\/uploads\/2021\/03\/Swap-info-115x160.png 115w, https:\/\/www.davinci-fx.com\/wp-content\/uploads\/2021\/03\/Swap-info-288x400.png 288w\" sizes=\"auto, (max-width: 359px) 100vw, 359px\" \/><\/a><\/p>\n<p>From this window, you can understand that the day of the triple swap accrual is Wednesday.<\/p>\n<p>Four columns follow:<\/p>\n<ul>\n<li>Symbol<\/li>\n<li>TickValue<\/li>\n<li>SWAP_Long($)<\/li>\n<li>SWAP_Short($)<\/li>\n<\/ul>\n<p>The data in brackets calculate the swap in the deposit currency.<\/p>\n<blockquote><p><em><span style=\"font-size: 12pt; color: #008000;\">Remember to multiply your result by three on the day of the triple swap charge..<\/span><\/em><\/p><\/blockquote>\n<p>That&#8217;s all folks, all profits!<\/p>\n<p style=\"text-align: center;\">\n<style id=\"kama-click-counter-shortcode\">.kcc_block{ position:relative; width: auto; padding:1em 0 1em; text-align: center; transition:background-color 0.4s; cursor:pointer; }\r\n.button4 {\r\nposition: relative;\r\nwidth: auto;\r\ndisplay: inline-block;\r\nfont-family: Arial,Helvetica,FreeSans,&quot;Liberation Sans&quot;,&quot;Nimbus Sans L&quot;,sans-serif;\r\nfont-size: 1.5em;\r\nfont-weight: 700;\r\ncolor: rgb(245,245,245);\r\ntext-shadow: 0 -1px rgba(0,0,0,.1);\r\ntext-decoration: none;\r\nuser-select: none;\r\npadding: .5em 1em;\r\noutline: none;\r\nborder: none;\r\nborder-radius: 10px;\r\nbackground: #0c9c0d linear-gradient(#82d18d, #0c9c0d);\r\nbox-shadow: inset #72de26 0 -1px 1px, inset 0 1px 1px #98ff98, #3caa3c 0 0 0 1px, rgba(0,0,0,.3) 0 2px 5px;\r\n-webkit-animation: pulsate 1.2s linear infinite;\r\nanimation: pulsate 3s linear infinite;\r\n}\r\n.button4:hover {\r\n-webkit-animation-play-state: paused;\r\nanimation-play-state: paused;\r\ncursor: pointer;\r\n}\r\n.button4:active {\r\ntop: 1px;\r\ncolor: #fff;\r\ntext-shadow: 0 -1px rgba(0,0,0,.3), 0 0 5px #ffd, 0 0 8px #fff;\r\nbox-shadow: 0 -1px 3px rgba(0,0,0,.3), 0 1px 1px #fff, inset 0 1px 2px rgba(0,0,0,.8), inset 0 -1px 0 rgba(0,0,0,.05);\r\n}\r\n@-webkit-keyframes pulsate {\r\n50% {color: #fff; text-shadow: 0 -1px rgba(0,0,0,.3), 0 0 5px #ffd, 0 0 8px #fff;}\r\n}\r\n@keyframes pulsate {\r\n50% {color: #fff; text-shadow: 0 -1px rgba(0,0,0,.3), 0 0 5px #ffd, 0 0 8px #fff;}\r\n}<\/style>\n<div class=\"kcc_block\" title=\"Download\">\r\n        <button class=\"button4 \"><i class=\"fas fa-download\"><\/i> Download the script for free<\/button>\r\n         \r\n\t\r\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Description of the script We present to your attention a very simple script that displays a swap for currency pairs from the market watch window, or all available instruments of a broker. Values are displayed in both points and money. This information will be useful to you if you open orders during the Asian trading&#8230;<\/p>\n","protected":false},"author":1,"featured_media":17646,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[115],"tags":[],"post_folder":[62],"class_list":["post-17642","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-a-set-of-useful-scripts-for-mt4"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Swap script calculation and display - DaVinci FX Group<\/title>\n<meta name=\"description\" content=\"Script will show you the swap value for the selected currency pairs and all the broker&#039;s instruments. Swap for short and long orders.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.davinci-fx.com\/en\/\u0441\u043a\u0440\u0438\u043f\u0442-swap\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Swap script calculation and display - DaVinci FX Group\" \/>\n<meta property=\"og:description\" content=\"Script will show you the swap value for the selected currency pairs and all the broker&#039;s instruments. Swap for short and long orders.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.davinci-fx.com\/\u0441\u043a\u0440\u0438\u043f\u0442-swap\/\" \/>\n<meta property=\"og:site_name\" content=\"DaVinci FX Group\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-31T20:51:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-25T16:25:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.davinci-fx.com\/wp-content\/uploads\/2021\/03\/\u0417\u0430\u0441\u0442\u0430\u0432\u043a\u0430-\u0441\u0432\u043e\u043f-min.png\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Swap script calculation and display - DaVinci FX Group","description":"Script will show you the swap value for the selected currency pairs and all the broker's instruments. Swap for short and long orders.","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:\/\/www.davinci-fx.com\/en\/\u0441\u043a\u0440\u0438\u043f\u0442-swap\/","og_locale":"en_US","og_type":"article","og_title":"Swap script calculation and display - DaVinci FX Group","og_description":"Script will show you the swap value for the selected currency pairs and all the broker's instruments. Swap for short and long orders.","og_url":"https:\/\/www.davinci-fx.com\/\u0441\u043a\u0440\u0438\u043f\u0442-swap\/","og_site_name":"DaVinci FX Group","article_published_time":"2021-03-31T20:51:15+00:00","article_modified_time":"2021-05-25T16:25:43+00:00","og_image":[{"width":900,"height":720,"url":"https:\/\/www.davinci-fx.com\/wp-content\/uploads\/2021\/03\/\u0417\u0430\u0441\u0442\u0430\u0432\u043a\u0430-\u0441\u0432\u043e\u043f-min.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.davinci-fx.com\/%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-swap\/#article","isPartOf":{"@id":"https:\/\/www.davinci-fx.com\/%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-swap\/"},"author":{"name":"admin","@id":"https:\/\/www.davinci-fx.com\/#\/schema\/person\/c82159c82394b08fba2ada8d18dcff38"},"headline":"Script for calculating swap in points and deposit currency DaVinci Swap Counter","datePublished":"2021-03-31T20:51:15+00:00","dateModified":"2021-05-25T16:25:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.davinci-fx.com\/%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-swap\/"},"wordCount":227,"commentCount":0,"publisher":{"@id":"https:\/\/www.davinci-fx.com\/#organization"},"image":{"@id":"https:\/\/www.davinci-fx.com\/%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-swap\/#primaryimage"},"thumbnailUrl":"https:\/\/www.davinci-fx.com\/wp-content\/uploads\/2021\/03\/\u0417\u0430\u0441\u0442\u0430\u0432\u043a\u0430-\u0441\u0432\u043e\u043f-min.png","articleSection":["Scripts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.davinci-fx.com\/%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-swap\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.davinci-fx.com\/%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-swap\/","url":"https:\/\/www.davinci-fx.com\/%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-swap\/","name":"Swap script calculation and display - DaVinci FX Group","isPartOf":{"@id":"https:\/\/www.davinci-fx.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.davinci-fx.com\/%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-swap\/#primaryimage"},"image":{"@id":"https:\/\/www.davinci-fx.com\/%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-swap\/#primaryimage"},"thumbnailUrl":"https:\/\/www.davinci-fx.com\/wp-content\/uploads\/2021\/03\/\u0417\u0430\u0441\u0442\u0430\u0432\u043a\u0430-\u0441\u0432\u043e\u043f-min.png","datePublished":"2021-03-31T20:51:15+00:00","dateModified":"2021-05-25T16:25:43+00:00","description":"Script will show you the swap value for the selected currency pairs and all the broker's instruments. Swap for short and long orders.","breadcrumb":{"@id":"https:\/\/www.davinci-fx.com\/%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-swap\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.davinci-fx.com\/%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-swap\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.davinci-fx.com\/%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-swap\/#primaryimage","url":"https:\/\/www.davinci-fx.com\/wp-content\/uploads\/2021\/03\/\u0417\u0430\u0441\u0442\u0430\u0432\u043a\u0430-\u0441\u0432\u043e\u043f-min.png","contentUrl":"https:\/\/www.davinci-fx.com\/wp-content\/uploads\/2021\/03\/\u0417\u0430\u0441\u0442\u0430\u0432\u043a\u0430-\u0441\u0432\u043e\u043f-min.png","width":900,"height":720,"caption":"script \u0441\u0432\u043e\u043f"},{"@type":"BreadcrumbList","@id":"https:\/\/www.davinci-fx.com\/%d1%81%d0%ba%d1%80%d0%b8%d0%bf%d1%82-swap\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/www.davinci-fx.com\/en\/"},{"@type":"ListItem","position":2,"name":"Script for calculating swap in points and deposit currency DaVinci Swap Counter"}]},{"@type":"WebSite","@id":"https:\/\/www.davinci-fx.com\/#website","url":"https:\/\/www.davinci-fx.com\/","name":"DaVinci FX Group","description":"\u0424\u043e\u0440\u0435\u043a\u0441 \u0421\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0438, \u0418\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u044b, \u0421\u043a\u0440\u0438\u043f\u0442\u044b, \u041e\u0431\u0443\u0447\u0435\u043d\u0438\u044f","publisher":{"@id":"https:\/\/www.davinci-fx.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.davinci-fx.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.davinci-fx.com\/#organization","name":"DaVinci FX Group","url":"https:\/\/www.davinci-fx.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.davinci-fx.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.davinci-fx.com\/wp-content\/uploads\/2020\/05\/Logo-\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435-\u0441-\u043d\u0430\u0434\u043f\u0438\u0441\u044c\u044e-\u043a\u0440\u0443\u043f\u043d\u044b\u0439.png","contentUrl":"https:\/\/www.davinci-fx.com\/wp-content\/uploads\/2020\/05\/Logo-\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435-\u0441-\u043d\u0430\u0434\u043f\u0438\u0441\u044c\u044e-\u043a\u0440\u0443\u043f\u043d\u044b\u0439.png","width":800,"height":800,"caption":"DaVinci FX Group"},"image":{"@id":"https:\/\/www.davinci-fx.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.instagram.com\/davincifxgroup\/","https:\/\/www.youtube.com\/channel\/UC-rERLLrIiTADzyoYyQ1JOg"]},{"@type":"Person","@id":"https:\/\/www.davinci-fx.com\/#\/schema\/person\/c82159c82394b08fba2ada8d18dcff38","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.davinci-fx.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1e0c72ade8262ff623eeb91910865a86c4923ca6db1ce50997aee96dec89154b?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1e0c72ade8262ff623eeb91910865a86c4923ca6db1ce50997aee96dec89154b?s=96&d=monsterid&r=g","caption":"admin"},"url":"https:\/\/www.davinci-fx.com\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.davinci-fx.com\/en\/wp-json\/wp\/v2\/posts\/17642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.davinci-fx.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.davinci-fx.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.davinci-fx.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.davinci-fx.com\/en\/wp-json\/wp\/v2\/comments?post=17642"}],"version-history":[{"count":2,"href":"https:\/\/www.davinci-fx.com\/en\/wp-json\/wp\/v2\/posts\/17642\/revisions"}],"predecessor-version":[{"id":17653,"href":"https:\/\/www.davinci-fx.com\/en\/wp-json\/wp\/v2\/posts\/17642\/revisions\/17653"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.davinci-fx.com\/en\/wp-json\/wp\/v2\/media\/17646"}],"wp:attachment":[{"href":"https:\/\/www.davinci-fx.com\/en\/wp-json\/wp\/v2\/media?parent=17642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.davinci-fx.com\/en\/wp-json\/wp\/v2\/categories?post=17642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.davinci-fx.com\/en\/wp-json\/wp\/v2\/tags?post=17642"},{"taxonomy":"post_folder","embeddable":true,"href":"https:\/\/www.davinci-fx.com\/en\/wp-json\/wp\/v2\/post_folder?post=17642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}