{"id":5160,"date":"2026-05-31T21:55:31","date_gmt":"2026-05-31T11:55:31","guid":{"rendered":"https:\/\/www.amillex.com\/?page_id=5160"},"modified":"2026-06-25T17:52:32","modified_gmt":"2026-06-25T07:52:32","slug":"trading-calculator","status":"publish","type":"page","link":"https:\/\/www.amillex.com\/fa\/home\/tools\/trading-calculator\/","title":{"rendered":"\u0645\u0627\u0634\u06cc\u0646 \u062d\u0633\u0627\u0628 \u0645\u0639\u0627\u0645\u0644\u0627\u062a\u06cc"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"5160\" class=\"elementor elementor-5160\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2c30cc9 e-flex e-con-boxed e-con e-parent\" data-id=\"2c30cc9\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;video&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-bec436f e-con-full e-flex e-con e-child\" data-id=\"bec436f\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-25df1de elementor-widget elementor-widget-heading\" data-id=\"25df1de\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Trading <br> Calculator<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d2561c7 elementor-widget elementor-widget-heading\" data-id=\"d2561c7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Build your strategy or crunch numbers with these trading calculators.<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-50874e9 e-flex e-con-boxed e-con e-parent\" data-id=\"50874e9\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-eef5e43 elementor-widget elementor-widget-html\" data-id=\"eef5e43\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<div id=\"fx-calc\">\n  <style>\n    @import url('https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@400;500;600;700&display=swap');\n\n    #fx-calc, #fx-calc * { box-sizing: border-box; text-transform: none; font-family: 'Poppins', sans-serif; }\n    #fx-calc {\n      --fx-theme: #ff7300;\n      --fx-theme-dark: #e56700;\n      --fx-bg: #ffffff;\n      --fx-soft: #f7f7f7;\n      --fx-line: #e6e6e6;\n      --fx-text: #1f2937;\n      --fx-muted: #6b7280;\n      --fx-green: #16a34a;\n      --fx-red: #dc2626;\n      font-family: 'Poppins', \"Segoe UI\", Tahoma, Geneva, Verdana, sans-serif;\n      font-size: 18px;\n      color: var(--fx-text);\n      max-width: 820px;\n      margin: 0 auto;\n      background: var(--fx-bg);\n      border: 1px solid var(--fx-line);\n      border-radius: 16px;\n      box-shadow: 0 8px 30px rgba(0,0,0,.08);\n      overflow: visible;\n    }\n\n    #fx-calc .fxc-head {\n      background: linear-gradient(135deg, var(--fx-theme), var(--fx-theme-dark));\n      color: #fff;\n      padding: 28px 32px;\n      border-radius: 16px 16px 0 0;\n    }\n    #fx-calc .fxc-head h3 { margin: 0; font-size: 1.75rem; font-weight: 700; }\n    #fx-calc .fxc-head p { margin: 6px 0 0; font-size: 1rem; opacity: .9; }\n\n    #fx-calc .fxc-tabs {\n      display: flex; flex-wrap: wrap;\n      background: var(--fx-soft);\n      border-bottom: 1px solid var(--fx-line);\n    }\n    #fx-calc .fxc-tab {\n      flex: 1 1 auto; min-width: 140px;\n      padding: 18px 12px;\n      border: none; background: transparent; cursor: pointer;\n      font-size: 1.05rem; font-weight: 600; color: var(--fx-muted);\n      border-bottom: 3px solid transparent;\n      transition: all .2s;\n    }\n    #fx-calc .fxc-tab:hover { color: var(--fx-theme); }\n    #fx-calc .fxc-tab.active {\n      color: var(--fx-theme);\n      background: var(--fx-bg);\n      border-bottom-color: var(--fx-theme);\n    }\n\n    #fx-calc .fxc-body { padding: 28px 32px 12px; }\n    #fx-calc .fxc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }\n    #fx-calc .fxc-full { grid-column: 1 \/ -1; }\n\n    #fx-calc label {\n      display: block; margin-bottom: 8px;\n      font-size: 1rem; font-weight: 600; color: var(--fx-text);\n    }\n    #fx-calc input[type=\"text\"],\n    #fx-calc input[type=\"number\"],\n    #fx-calc select {\n      width: 100%; padding: 14px 15px;\n      border: 1px solid var(--fx-line); border-radius: 10px;\n      font-size: 1.15rem; background: #fff; color: var(--fx-text);\n      outline: none; transition: border .15s, box-shadow .15s;\n    }\n    #fx-calc input:focus, #fx-calc select:focus {\n      border-color: var(--fx-theme);\n      box-shadow: 0 0 0 3px rgba(255,115,0,.15);\n    }\n    #fx-calc input.fxc-invalid { border-color: var(--fx-red); box-shadow: 0 0 0 3px rgba(220,38,38,.12); }\n\n    \/* ---- Searchable pair picker ---- *\/\n    #fx-calc .fxc-pair-wrap {\n      position: relative;\n    }\n    #fx-calc .fxc-pair-input-row {\n      display: flex; gap: 0; align-items: stretch;\n      border: 1px solid var(--fx-line); border-radius: 10px;\n      overflow: visible;\n      background: #fff;\n      transition: border .15s, box-shadow .15s;\n    }\n    #fx-calc .fxc-pair-input-row:focus-within {\n      border-color: var(--fx-theme);\n      box-shadow: 0 0 0 3px rgba(255,115,0,.15);\n    }\n    #fx-calc .fxc-pair-search {\n      flex: 1; border: none !important; box-shadow: none !important;\n      border-radius: 10px 0 0 10px !important;\n      outline: none; padding: 14px 15px;\n      font-size: 1.15rem; background: transparent;\n    }\n    #fx-calc .fxc-pair-search:focus { box-shadow: none !important; border: none !important; }\n    #fx-calc .fxc-pair-clear {\n      background: none; border: none; padding: 0 14px;\n      cursor: pointer; color: var(--fx-muted); font-size: 1.2rem;\n      display: none; align-items: center;\n    }\n    #fx-calc .fxc-pair-clear.visible { display: flex; }\n    #fx-calc .fxc-pair-clear:hover { color: var(--fx-red); }\n\n    #fx-calc .fxc-pair-dropdown {\n      display: none;\n      position: absolute;\n      top: calc(100% + 4px);\n      left: 0; right: 0;\n      background: #fff;\n      border: 1px solid var(--fx-line);\n      border-radius: 12px;\n      box-shadow: 0 8px 24px rgba(0,0,0,.12);\n      z-index: 9999;\n      max-height: 280px;\n      overflow-y: auto;\n    }\n    #fx-calc .fxc-pair-dropdown.open { display: block; }\n\n    #fx-calc .fxc-pair-group-label {\n      padding: 10px 16px 6px;\n      font-size: 0.78rem; font-weight: 700;\n      color: var(--fx-muted);\n      text-transform: uppercase; letter-spacing: 0.07em;\n      background: var(--fx-soft);\n      border-bottom: 1px solid var(--fx-line);\n      position: sticky; top: 0;\n    }\n    #fx-calc .fxc-pair-option {\n      display: flex; align-items: center; justify-content: space-between;\n      padding: 12px 16px; cursor: pointer;\n      border-bottom: 1px solid var(--fx-line);\n      transition: background .12s;\n      font-size: 1rem;\n    }\n    #fx-calc .fxc-pair-option:last-child { border-bottom: none; }\n    #fx-calc .fxc-pair-option:hover,\n    #fx-calc .fxc-pair-option.highlighted { background: #fff4eb; }\n    #fx-calc .fxc-pair-option .sym { font-weight: 700; color: var(--fx-theme); }\n    #fx-calc .fxc-pair-option .name { font-size: 0.88rem; color: var(--fx-muted); }\n    #fx-calc .fxc-pair-empty {\n      padding: 20px 16px; text-align: center;\n      color: var(--fx-muted); font-size: 0.95rem;\n    }\n\n    #fx-calc .fxc-seg {\n      display: inline-flex; border: 1px solid var(--fx-line);\n      border-radius: 10px; overflow: hidden; width: 100%;\n    }\n    #fx-calc .fxc-seg button {\n      flex: 1; padding: 14px 8px; border: none; background: #fff;\n      cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--fx-muted);\n      transition: all .15s;\n    }\n    #fx-calc .fxc-seg button.active { background: var(--fx-theme); color: #fff; }\n\n    #fx-calc .fxc-inline { display: flex; gap: 10px; align-items: stretch; }\n    #fx-calc .fxc-inline input { flex: 1; }\n    #fx-calc .fxc-btn {\n      background: var(--fx-theme); color: #fff; border: none;\n      padding: 14px 20px; border-radius: 10px; font-size: 1.1rem; font-weight: 600;\n      cursor: pointer; transition: background .2s; white-space: nowrap;\n    }\n    #fx-calc .fxc-btn:hover { background: var(--fx-theme-dark); }\n    #fx-calc .fxc-btn.ghost { background: #fff; color: var(--fx-theme); border: 1px solid var(--fx-theme); }\n    #fx-calc .fxc-btn.ghost:hover { background: rgba(255,115,0,.08); }\n    #fx-calc .fxc-calc-btn { width: 100%; margin-top: 20px; padding: 17px; font-size: 1.25rem; }\n\n    #fx-calc .fxc-hint { font-size: .85rem; color: var(--fx-muted); margin-top: 6px; }\n    #fx-calc .fxc-error { font-size: .92rem; color: var(--fx-red); margin-top: 12px; min-height: 1.2em; font-weight: 500; }\n\n    #fx-calc .fxc-results {\n      margin: 22px 0 6px; padding: 20px;\n      background: var(--fx-soft); border-radius: 14px;\n      display: grid; grid-template-columns: 1fr 1fr; gap: 14px;\n    }\n    #fx-calc .fxc-res {\n      background: #fff; border: 1px solid var(--fx-line);\n      border-radius: 12px; padding: 16px 18px;\n    }\n    #fx-calc .fxc-res .k { font-size: .85rem; color: var(--fx-muted); font-weight: 600; }\n    #fx-calc .fxc-res .v { font-size: 1.6rem; font-weight: 700; margin-top: 4px; color: var(--fx-theme); word-break: break-word; }\n    #fx-calc .fxc-res .v.pos { color: var(--fx-green); }\n    #fx-calc .fxc-res .v.neg { color: var(--fx-red); }\n    #fx-calc .fxc-res.wide { grid-column: 1 \/ -1; }\n\n    #fx-calc .fxc-foot {\n      padding: 18px 32px 22px; font-size: .85rem; color: var(--fx-muted);\n      border-top: 1px solid var(--fx-line); line-height: 1.6;\n    }\n    #fx-calc .fxc-status { font-size: .85rem; color: var(--fx-muted); margin: 4px 0 0; }\n\n    .fxc-pane { display: none; }\n    .fxc-pane.active { display: block; }\n\n    @media (max-width: 560px) {\n      #fx-calc .fxc-grid { grid-template-columns: 1fr; }\n      #fx-calc .fxc-results { grid-template-columns: 1fr; }\n      #fx-calc .fxc-tab { min-width: 50%; flex: 1 1 50%; }\n    }\n  <\/style>\n\n  <div class=\"fxc-head\">\n    <h3 translate=\"no\">Forex Trading Calculator<\/h3>\n    <p translate=\"no\">Margin &middot; Pip value &middot; Profit \/ loss &middot; Position size<\/p>\n  <\/div>\n\n  <div class=\"fxc-tabs\">\n    <button class=\"fxc-tab active\" data-pane=\"margin\" translate=\"no\">Margin<\/button>\n    <button class=\"fxc-tab\" data-pane=\"pip\" translate=\"no\">Pip Value<\/button>\n    <button class=\"fxc-tab\" data-pane=\"pnl\" translate=\"no\">Profit \/ Loss<\/button>\n    <button class=\"fxc-tab\" data-pane=\"size\" translate=\"no\">Position Size<\/button>\n  <\/div>\n\n  <div class=\"fxc-body\">\n    <div class=\"fxc-grid\">\n\n      <!-- SEARCHABLE PAIR PICKER -->\n      <div>\n        <label for=\"fxc-pair-search\">Currency pair<\/label>\n        <div class=\"fxc-pair-wrap\">\n          <div class=\"fxc-pair-input-row\">\n            <input\n              type=\"text\"\n              id=\"fxc-pair-search\"\n              class=\"fxc-pair-search\"\n              placeholder=\"Search e.g. EUR\/USD, Gold\u2026\"\n              autocomplete=\"off\"\n              translate=\"no\"\n            >\n            <button type=\"button\" class=\"fxc-pair-clear\" id=\"fxc-pair-clear\" title=\"Clear\">&#x2715;<\/button>\n          <\/div>\n          <div class=\"fxc-pair-dropdown\" id=\"fxc-pair-dropdown\"><\/div>\n        <\/div>\n        <p class=\"fxc-hint\" id=\"fxc-selected-pair-hint\" style=\"color:var(--fx-theme);font-weight:600;display:none\"><\/p>\n        <p class=\"fxc-hint\">Type a symbol or name to search. JPY pairs auto-switch pip to 0.01.<\/p>\n        <!-- hidden real value used by calculations -->\n        <input type=\"hidden\" id=\"fxc-pair\" value=\"EUR\/USD\">\n      <\/div>\n\n      <div>\n        <label for=\"fxc-account\">Account currency<\/label>\n        <select id=\"fxc-account\" translate=\"no\">\n          <option value=\"USD\" selected>USD - US Dollar<\/option>\n          <option value=\"EUR\">EUR - Euro<\/option>\n          <option value=\"GBP\">GBP - British Pound<\/option>\n          <option value=\"JPY\">JPY - Japanese Yen<\/option>\n          <option value=\"AUD\">AUD - Australian Dollar<\/option>\n          <option value=\"CAD\">CAD - Canadian Dollar<\/option>\n          <option value=\"CHF\">CHF - Swiss Franc<\/option>\n          <option value=\"NZD\">NZD - New Zealand Dollar<\/option>\n        <\/select>\n        <div style=\"margin-top:10px\">\n          <label for=\"fxc-price\">Current price (quote per 1 base)<\/label>\n          <input type=\"number\" id=\"fxc-price\" step=\"any\" value=\"1.16365\" inputmode=\"decimal\" translate=\"no\">\n          <p class=\"fxc-status\" id=\"fxc-status\"><\/p>\n        <\/div>\n      <\/div>\n\n      <div>\n        <label for=\"fxc-conv\">Quote &rarr; account rate<\/label>\n        <div class=\"fxc-inline\">\n          <input type=\"number\" id=\"fxc-conv\" step=\"any\" value=\"1\" inputmode=\"decimal\" translate=\"no\">\n          <button type=\"button\" class=\"fxc-btn ghost\" id=\"fxc-conv-auto\" translate=\"no\">Auto<\/button>\n        <\/div>\n        <p class=\"fxc-hint\" id=\"fxc-conv-hint\">Click <strong>Auto<\/strong> to calculate from your pair &amp; price.<\/p>\n      <\/div>\n\n      <div>\n        <label for=\"fxc-lotsize\">Units per lot<\/label>\n        <input type=\"number\" id=\"fxc-lotsize\" step=\"any\" value=\"100000\" inputmode=\"decimal\" translate=\"no\">\n        <div style=\"margin-top:10px\">\n          <label for=\"fxc-pipsize\">Pip size<\/label>\n          <input type=\"number\" id=\"fxc-pipsize\" step=\"any\" value=\"0.0001\" inputmode=\"decimal\" translate=\"no\">\n          <p class=\"fxc-hint\">0.0001 standard &middot; 0.01 for JPY pairs<\/p>\n        <\/div>\n      <\/div>\n\n    <\/div>\n\n    <hr style=\"border:none;border-top:1px solid var(--fx-line);margin:20px 0\">\n\n    <!-- MARGIN -->\n    <div class=\"fxc-pane active\" data-pane=\"margin\">\n      <div class=\"fxc-grid\">\n        <div>\n          <label for=\"fxc-m-size\">Trade size<\/label>\n          <input type=\"number\" id=\"fxc-m-size\" step=\"any\" value=\"1\" inputmode=\"decimal\" translate=\"no\">\n        <\/div>\n        <div>\n          <label translate=\"no\">Unit type<\/label>\n          <div class=\"fxc-seg\" data-group=\"m-unit\" translate=\"no\">\n            <button type=\"button\" class=\"active\" data-val=\"lots\">Lots<\/button>\n            <button type=\"button\" data-val=\"units\">Units<\/button>\n          <\/div>\n        <\/div>\n        <div class=\"fxc-full\">\n          <label for=\"fxc-leverage\">Leverage<\/label>\n          <input type=\"text\" id=\"fxc-leverage\" value=\"100:1\" translate=\"no\">\n          <p class=\"fxc-hint\">Format: 100:1, 30:1, 500:1\u2026<\/p>\n        <\/div>\n      <\/div>\n      <button type=\"button\" class=\"fxc-btn fxc-calc-btn\" id=\"fxc-m-go\">Calculate margin<\/button>\n      <div class=\"fxc-error\" id=\"fxc-m-err\"><\/div>\n      <div class=\"fxc-results\">\n        <div class=\"fxc-res wide\"><div class=\"k\">Required margin<\/div><div class=\"v\" id=\"fxc-m-margin\">\u2014<\/div><\/div>\n        <div class=\"fxc-res\"><div class=\"k\">Position value (notional)<\/div><div class=\"v\" id=\"fxc-m-notional\">\u2014<\/div><\/div>\n        <div class=\"fxc-res\"><div class=\"k\">Total units<\/div><div class=\"v\" id=\"fxc-m-units\">\u2014<\/div><\/div>\n      <\/div>\n    <\/div>\n\n    <!-- PIP VALUE -->\n    <div class=\"fxc-pane\" data-pane=\"pip\">\n      <div class=\"fxc-grid\">\n        <div>\n          <label for=\"fxc-p-size\">Trade size<\/label>\n          <input type=\"number\" id=\"fxc-p-size\" step=\"any\" value=\"1\" inputmode=\"decimal\" translate=\"no\">\n        <\/div>\n        <div>\n          <label translate=\"no\">Unit type<\/label>\n          <div class=\"fxc-seg\" data-group=\"p-unit\" translate=\"no\">\n            <button type=\"button\" class=\"active\" data-val=\"lots\">Lots<\/button>\n            <button type=\"button\" data-val=\"units\">Units<\/button>\n          <\/div>\n        <\/div>\n      <\/div>\n      <button type=\"button\" class=\"fxc-btn fxc-calc-btn\" id=\"fxc-p-go\">Calculate pip value<\/button>\n      <div class=\"fxc-error\" id=\"fxc-p-err\"><\/div>\n      <div class=\"fxc-results\">\n        <div class=\"fxc-res wide\"><div class=\"k\">Value per pip (account currency)<\/div><div class=\"v\" id=\"fxc-p-val\">\u2014<\/div><\/div>\n        <div class=\"fxc-res\"><div class=\"k\">10 pips<\/div><div class=\"v\" id=\"fxc-p-10\">\u2014<\/div><\/div>\n        <div class=\"fxc-res\"><div class=\"k\">100 pips<\/div><div class=\"v\" id=\"fxc-p-100\">\u2014<\/div><\/div>\n      <\/div>\n    <\/div>\n\n    <!-- PROFIT \/ LOSS -->\n    <div class=\"fxc-pane\" data-pane=\"pnl\">\n      <div class=\"fxc-grid\">\n        <div>\n          <label translate=\"no\">Direction<\/label>\n          <div class=\"fxc-seg\" data-group=\"pl-dir\" translate=\"no\">\n            <button type=\"button\" class=\"active\" data-val=\"buy\">Buy (long)<\/button>\n            <button type=\"button\" data-val=\"sell\">Sell (short)<\/button>\n          <\/div>\n        <\/div>\n        <div>\n          <label for=\"fxc-pl-size\">Trade size<\/label>\n          <div class=\"fxc-inline\">\n            <input type=\"number\" id=\"fxc-pl-size\" step=\"any\" value=\"1\" inputmode=\"decimal\" translate=\"no\">\n            <div class=\"fxc-seg\" data-group=\"pl-unit\" style=\"width:auto\" translate=\"no\">\n              <button type=\"button\" class=\"active\" data-val=\"lots\">Lots<\/button>\n              <button type=\"button\" data-val=\"units\">Units<\/button>\n            <\/div>\n          <\/div>\n        <\/div>\n        <div>\n          <label for=\"fxc-pl-open\">Open price<\/label>\n          <input type=\"number\" id=\"fxc-pl-open\" step=\"any\" value=\"1.16000\" inputmode=\"decimal\" translate=\"no\">\n        <\/div>\n        <div>\n          <label for=\"fxc-pl-close\">Close price<\/label>\n          <input type=\"number\" id=\"fxc-pl-close\" step=\"any\" value=\"1.16500\" inputmode=\"decimal\" translate=\"no\">\n        <\/div>\n      <\/div>\n      <button type=\"button\" class=\"fxc-btn fxc-calc-btn\" id=\"fxc-pl-go\">Calculate profit \/ loss<\/button>\n      <div class=\"fxc-error\" id=\"fxc-pl-err\"><\/div>\n      <div class=\"fxc-results\">\n        <div class=\"fxc-res wide\"><div class=\"k\">Profit \/ loss (account currency)<\/div><div class=\"v\" id=\"fxc-pl-pnl\">\u2014<\/div><\/div>\n        <div class=\"fxc-res\"><div class=\"k\">Movement in pips<\/div><div class=\"v\" id=\"fxc-pl-pips\">\u2014<\/div><\/div>\n        <div class=\"fxc-res\"><div class=\"k\">Value per pip<\/div><div class=\"v\" id=\"fxc-pl-pipval\">\u2014<\/div><\/div>\n      <\/div>\n    <\/div>\n\n    <!-- POSITION SIZE -->\n    <div class=\"fxc-pane\" data-pane=\"size\">\n      <div class=\"fxc-grid\">\n        <div>\n          <label for=\"fxc-s-balance\">Account balance<\/label>\n          <input type=\"number\" id=\"fxc-s-balance\" step=\"any\" value=\"10000\" inputmode=\"decimal\" translate=\"no\">\n        <\/div>\n        <div>\n          <label translate=\"no\">Risk by<\/label>\n          <div class=\"fxc-seg\" data-group=\"s-mode\" translate=\"no\">\n            <button type=\"button\" class=\"active\" data-val=\"pct\">Percent (%)<\/button>\n            <button type=\"button\" data-val=\"money\">Money<\/button>\n          <\/div>\n        <\/div>\n        <div>\n          <label for=\"fxc-s-risk\" id=\"fxc-s-risk-label\">Risk percentage (%)<\/label>\n          <input type=\"number\" id=\"fxc-s-risk\" step=\"any\" value=\"1\" inputmode=\"decimal\" translate=\"no\">\n          <p class=\"fxc-hint\">Most traders risk 0.5\u20132% per trade<\/p>\n        <\/div>\n        <div>\n          <label for=\"fxc-s-sl\">Stop-loss (pips)<\/label>\n          <input type=\"number\" id=\"fxc-s-sl\" step=\"any\" value=\"50\" inputmode=\"decimal\" translate=\"no\">\n        <\/div>\n      <\/div>\n      <button type=\"button\" class=\"fxc-btn fxc-calc-btn\" id=\"fxc-s-go\">Calculate position size<\/button>\n      <div class=\"fxc-error\" id=\"fxc-s-err\"><\/div>\n      <div class=\"fxc-results\">\n        <div class=\"fxc-res\"><div class=\"k\">Position size (lots)<\/div><div class=\"v\" id=\"fxc-s-lots\">\u2014<\/div><\/div>\n        <div class=\"fxc-res\"><div class=\"k\">Position size (units)<\/div><div class=\"v\" id=\"fxc-s-units\">\u2014<\/div><\/div>\n        <div class=\"fxc-res\"><div class=\"k\">Amount at risk<\/div><div class=\"v\" id=\"fxc-s-amount\">\u2014<\/div><\/div>\n        <div class=\"fxc-res\"><div class=\"k\">Value per pip<\/div><div class=\"v\" id=\"fxc-s-pipval\">\u2014<\/div><\/div>\n      <\/div>\n    <\/div>\n\n  <\/div>\n\n  <div class=\"fxc-foot\">\n    <strong>Disclaimer:<\/strong> This calculator is provided for general informational and\n    educational purposes only and does not constitute financial or investment advice.\n    Results are estimates and exclude spreads, commissions and swap\/overnight fees.\n    Always verify figures with your broker before trading.\n  <\/div>\n<\/div>\n\n<script>\n(function () {\n  var root = document.getElementById(\"fx-calc\");\n  if (!root) return;\n  var $ = function (id) { return document.getElementById(id); };\n\n  \/* ---- currency pair data ---- *\/\n  var PAIRS = [\n    { group: \"Major FX\",   sym: \"EUR\/USD\", name: \"Euro vs US Dollar\",                pip: 0.0001 },\n    { group: \"Major FX\",   sym: \"GBP\/USD\", name: \"British Pound vs US Dollar\",       pip: 0.0001 },\n    { group: \"Major FX\",   sym: \"AUD\/USD\", name: \"Australian Dollar vs US Dollar\",   pip: 0.0001 },\n    { group: \"Major FX\",   sym: \"NZD\/USD\", name: \"New Zealand Dollar vs US Dollar\",  pip: 0.0001 },\n    { group: \"Major FX\",   sym: \"USD\/CAD\", name: \"US Dollar vs Canadian Dollar\",     pip: 0.0001 },\n    { group: \"Major FX\",   sym: \"USD\/CHF\", name: \"US Dollar vs Swiss Franc\",         pip: 0.0001 },\n    { group: \"Major FX\",   sym: \"USD\/JPY\", name: \"US Dollar vs Japanese Yen\",        pip: 0.01   },\n    { group: \"Minor FX\",   sym: \"AUD\/CAD\", name: \"Australian Dollar vs Canadian Dollar\", pip: 0.0001 },\n    { group: \"Minor FX\",   sym: \"AUD\/CHF\", name: \"Australian Dollar vs Swiss Franc\",    pip: 0.0001 },\n    { group: \"Minor FX\",   sym: \"AUD\/JPY\", name: \"Australian Dollar vs Japanese Yen\",   pip: 0.01   },\n    { group: \"Minor FX\",   sym: \"AUD\/NZD\", name: \"Australian Dollar vs New Zealand Dollar\", pip: 0.0001 },\n    { group: \"Minor FX\",   sym: \"CAD\/CHF\", name: \"Canadian Dollar vs Swiss Franc\",      pip: 0.0001 },\n    { group: \"Minor FX\",   sym: \"CAD\/JPY\", name: \"Canadian Dollar vs Japanese Yen\",     pip: 0.01   },\n    { group: \"Minor FX\",   sym: \"CHF\/JPY\", name: \"Swiss Franc vs Japanese Yen\",         pip: 0.01   },\n    { group: \"Minor FX\",   sym: \"EUR\/AUD\", name: \"Euro vs Australian Dollar\",           pip: 0.0001 },\n    { group: \"Minor FX\",   sym: \"EUR\/CAD\", name: \"Euro vs Canadian Dollar\",             pip: 0.0001 },\n    { group: \"Minor FX\",   sym: \"EUR\/CHF\", name: \"Euro vs Swiss Franc\",                 pip: 0.0001 },\n    { group: \"Minor FX\",   sym: \"EUR\/GBP\", name: \"Euro vs British Pound\",               pip: 0.0001 },\n    { group: \"Minor FX\",   sym: \"EUR\/JPY\", name: \"Euro vs Japanese Yen\",                pip: 0.01   },\n    { group: \"Minor FX\",   sym: \"EUR\/NZD\", name: \"Euro vs New Zealand Dollar\",          pip: 0.0001 },\n    { group: \"Minor FX\",   sym: \"GBP\/AUD\", name: \"British Pound vs Australian Dollar\",  pip: 0.0001 },\n    { group: \"Minor FX\",   sym: \"GBP\/CAD\", name: \"British Pound vs Canadian Dollar\",    pip: 0.0001 },\n    { group: \"Minor FX\",   sym: \"GBP\/CHF\", name: \"British Pound vs Swiss Franc\",        pip: 0.0001 },\n    { group: \"Minor FX\",   sym: \"GBP\/JPY\", name: \"British Pound vs Japanese Yen\",       pip: 0.01   },\n    { group: \"Minor FX\",   sym: \"GBP\/NZD\", name: \"British Pound vs New Zealand Dollar\", pip: 0.0001 },\n    { group: \"Minor FX\",   sym: \"NZD\/CAD\", name: \"New Zealand Dollar vs Canadian Dollar\", pip: 0.0001 },\n    { group: \"Minor FX\",   sym: \"NZD\/CHF\", name: \"New Zealand Dollar vs Swiss Franc\",   pip: 0.0001 },\n    { group: \"Minor FX\",   sym: \"NZD\/JPY\", name: \"New Zealand Dollar vs Japanese Yen\",  pip: 0.01   },\n    { group: \"Exotic FX\",  sym: \"USD\/CNH\", name: \"US Dollar vs Chinese Yuan\",           pip: 0.0001 },\n    { group: \"Exotic FX\",  sym: \"USD\/CZK\", name: \"US Dollar vs Czech Koruna\",           pip: 0.0001 },\n    { group: \"Exotic FX\",  sym: \"USD\/DKK\", name: \"US Dollar vs Danish Krone\",           pip: 0.0001 },\n    { group: \"Exotic FX\",  sym: \"USD\/HKD\", name: \"US Dollar vs Hong Kong Dollar\",       pip: 0.0001 },\n    { group: \"Exotic FX\",  sym: \"USD\/HUF\", name: \"US Dollar vs Hungarian Forint\",       pip: 0.01   },\n    { group: \"Exotic FX\",  sym: \"USD\/ILS\", name: \"US Dollar vs Israeli Shekel\",         pip: 0.0001 },\n    { group: \"Exotic FX\",  sym: \"USD\/MXN\", name: \"US Dollar vs Mexican Peso\",           pip: 0.0001 },\n    { group: \"Exotic FX\",  sym: \"USD\/NOK\", name: \"US Dollar vs Norwegian Krone\",        pip: 0.0001 },\n    { group: \"Exotic FX\",  sym: \"USD\/PLN\", name: \"US Dollar vs Polish Zloty\",           pip: 0.0001 },\n    { group: \"Exotic FX\",  sym: \"USD\/SEK\", name: \"US Dollar vs Swedish Krona\",          pip: 0.0001 },\n    { group: \"Exotic FX\",  sym: \"USD\/SGD\", name: \"US Dollar vs Singapore Dollar\",       pip: 0.0001 },\n    { group: \"Exotic FX\",  sym: \"USD\/THB\", name: \"US Dollar vs Thai Baht\",              pip: 0.01   },\n    { group: \"Exotic FX\",  sym: \"USD\/TRY\", name: \"US Dollar vs Turkish Lira\",           pip: 0.0001 },\n    { group: \"Exotic FX\",  sym: \"USD\/ZAR\", name: \"US Dollar vs South African Rand\",     pip: 0.0001 },\n    { group: \"Metals\",     sym: \"XAU\/USD\", name: \"Gold vs US Dollar\",                   pip: 0.01   },\n    { group: \"Metals\",     sym: \"XAG\/USD\", name: \"Silver vs US Dollar\",                 pip: 0.001  },\n    { group: \"Crypto\",     sym: \"BTC\/USD\", name: \"Bitcoin vs US Dollar\",                pip: 1      },\n    { group: \"Crypto\",     sym: \"ETH\/USD\", name: \"Ethereum vs US Dollar\",               pip: 0.01   },\n    { group: \"Crypto\",     sym: \"XRP\/USD\", name: \"Ripple vs US Dollar\",                 pip: 0.0001 },\n  ];\n\n  \/* ---- searchable picker ---- *\/\n  var searchEl   = $(\"fxc-pair-search\");\n  var dropdown   = $(\"fxc-pair-dropdown\");\n  var clearBtn   = $(\"fxc-pair-clear\");\n  var hiddenPair = $(\"fxc-pair\");\n  var hintEl     = $(\"fxc-selected-pair-hint\");\n  var hlIndex    = -1;\n  var filteredPairs = [];\n\n  function renderDropdown(query) {\n    var q = (query || \"\").trim().toLowerCase().replace(\/[^a-z0-9]\/g, \"\");\n    filteredPairs = PAIRS.filter(function(p) {\n      var symClean = p.sym.toLowerCase().replace(\/[^a-z0-9]\/g, \"\");\n      var nameClean = p.name.toLowerCase();\n      return !q || symClean.indexOf(q) !== -1 || nameClean.indexOf(q) !== -1 || p.group.toLowerCase().indexOf(q) !== -1;\n    });\n    hlIndex = -1;\n    if (filteredPairs.length === 0) {\n      dropdown.innerHTML = '<div class=\"fxc-pair-empty\">No pairs found for \"' + escHtml(query) + '\"<\/div>';\n      return;\n    }\n    var html = \"\";\n    var lastGroup = \"\";\n    filteredPairs.forEach(function(p, i) {\n      if (p.group !== lastGroup) {\n        html += '<div class=\"fxc-pair-group-label\">' + escHtml(p.group) + '<\/div>';\n        lastGroup = p.group;\n      }\n      html += '<div class=\"fxc-pair-option\" data-idx=\"' + i + '\">'\n            + '<span class=\"sym\">' + escHtml(p.sym) + '<\/span>'\n            + '<span class=\"name\">' + escHtml(p.name) + '<\/span>'\n            + '<\/div>';\n    });\n    dropdown.innerHTML = html;\n    dropdown.querySelectorAll(\".fxc-pair-option\").forEach(function(el) {\n      el.addEventListener(\"mousedown\", function(e) {\n        e.preventDefault();\n        selectPair(parseInt(el.getAttribute(\"data-idx\")));\n      });\n    });\n  }\n\n  function selectPair(idx) {\n    var p = filteredPairs[idx];\n    if (!p) return;\n    hiddenPair.value = p.sym;\n    searchEl.value = p.sym;\n    hintEl.textContent = p.name;\n    hintEl.style.display = \"\";\n    clearBtn.classList.add(\"visible\");\n    closeDropdown();\n    $(\"fxc-pipsize\").value = p.pip;\n    autoConv(true);\n  }\n\n  function openDropdown() {\n    renderDropdown(searchEl.value);\n    dropdown.classList.add(\"open\");\n  }\n  function closeDropdown() {\n    dropdown.classList.remove(\"open\");\n    hlIndex = -1;\n  }\n\n  function escHtml(s) {\n    return String(s).replace(\/&\/g,\"&amp;\").replace(\/<\/g,\"&lt;\").replace(\/>\/g,\"&gt;\").replace(\/\"\/g,\"&quot;\");\n  }\n\n  searchEl.addEventListener(\"focus\", function() { openDropdown(); });\n  searchEl.addEventListener(\"input\", function() {\n    clearBtn.classList.toggle(\"visible\", !!searchEl.value);\n    renderDropdown(searchEl.value);\n    dropdown.classList.add(\"open\");\n  });\n  searchEl.addEventListener(\"blur\", function() {\n    setTimeout(closeDropdown, 150);\n  });\n  searchEl.addEventListener(\"keydown\", function(e) {\n    var opts = dropdown.querySelectorAll(\".fxc-pair-option\");\n    if (e.key === \"ArrowDown\") {\n      e.preventDefault();\n      hlIndex = Math.min(hlIndex + 1, opts.length - 1);\n      opts.forEach(function(o, i) { o.classList.toggle(\"highlighted\", i === hlIndex); });\n      if (opts[hlIndex]) opts[hlIndex].scrollIntoView({ block: \"nearest\" });\n    } else if (e.key === \"ArrowUp\") {\n      e.preventDefault();\n      hlIndex = Math.max(hlIndex - 1, 0);\n      opts.forEach(function(o, i) { o.classList.toggle(\"highlighted\", i === hlIndex); });\n      if (opts[hlIndex]) opts[hlIndex].scrollIntoView({ block: \"nearest\" });\n    } else if (e.key === \"Enter\") {\n      e.preventDefault();\n      if (hlIndex >= 0 && filteredPairs[hlIndex]) { selectPair(hlIndex); }\n    } else if (e.key === \"Escape\") {\n      closeDropdown();\n    }\n  });\n\n  clearBtn.addEventListener(\"click\", function() {\n    searchEl.value = \"\";\n    hiddenPair.value = \"\";\n    hintEl.style.display = \"none\";\n    clearBtn.classList.remove(\"visible\");\n    searchEl.focus();\n  });\n\n  \/* Set default selection *\/\n  (function() {\n    filteredPairs = PAIRS;\n    selectPair(0); \/\/ EUR\/USD\n  })();\n\n  \/* ---- tab switching ---- *\/\n  root.querySelectorAll(\".fxc-tab\").forEach(function (tab) {\n    tab.addEventListener(\"click\", function () {\n      var name = tab.getAttribute(\"data-pane\");\n      root.querySelectorAll(\".fxc-tab\").forEach(function (t) { t.classList.remove(\"active\"); });\n      tab.classList.add(\"active\");\n      root.querySelectorAll(\".fxc-pane\").forEach(function (p) {\n        p.classList.toggle(\"active\", p.getAttribute(\"data-pane\") === name);\n      });\n    });\n  });\n\n  \/* ---- segmented toggles ---- *\/\n  var segState = {};\n  root.querySelectorAll(\".fxc-seg\").forEach(function (seg) {\n    var group = seg.getAttribute(\"data-group\");\n    var first = seg.querySelector(\"button.active\") || seg.querySelector(\"button\");\n    segState[group] = first ? first.getAttribute(\"data-val\") : null;\n    seg.querySelectorAll(\"button\").forEach(function (btn) {\n      btn.addEventListener(\"click\", function () {\n        seg.querySelectorAll(\"button\").forEach(function (b) { b.classList.remove(\"active\"); });\n        btn.classList.add(\"active\");\n        segState[group] = btn.getAttribute(\"data-val\");\n        if (group === \"s-mode\") {\n          var pct = segState[\"s-mode\"] === \"pct\";\n          $(\"fxc-s-risk-label\").textContent = pct ? \"Risk percentage (%)\" : \"Risk amount (money)\";\n          $(\"fxc-s-risk\").value = pct ? \"1\" : \"100\";\n        }\n      });\n    });\n  });\n  function seg(g) { return segState[g]; }\n\n  \/* ---- helpers ---- *\/\n  function num(id) { var v = parseFloat($(id).value); return isNaN(v) ? NaN : v; }\n  function pos(id) { var v = num(id); return (isNaN(v) || v <= 0) ? NaN : v; }\n  function accountCcy() { return $(\"fxc-account\").value || \"\"; }\n  function fmtMoney(n) {\n    if (!isFinite(n)) return \"\u2014\";\n    var ccy = accountCcy();\n    var zeroDp = \/^(JPY)$\/.test(ccy);\n    var opts = zeroDp ? { minimumFractionDigits:0, maximumFractionDigits:0 } : { minimumFractionDigits:2, maximumFractionDigits:2 };\n    return (n < 0 ? \"-\" : \"\") + ccy + \" \" + Math.abs(n).toLocaleString(undefined, opts);\n  }\n  function fmtNum(n, d) {\n    if (!isFinite(n)) return \"\u2014\";\n    return Number(n).toLocaleString(undefined, { maximumFractionDigits: d == null ? 2 : d });\n  }\n  function toUnits(size, isLots, lotSize) { return isLots ? size * lotSize : size; }\n  function flagInvalid(ids, on) { ids.forEach(function(id){ var el=$(id); if(el) el.classList.toggle(\"fxc-invalid\",!!on); }); }\n  function showErr(id, msg) { var el=$(id); if(el) el.textContent = msg||\"\"; }\n  function clearResults(ids) { ids.forEach(function(id){ var el=$(id); if(el){ el.textContent=\"\u2014\"; el.className=\"v\"; } }); }\n\n  \/* ---- pair parsing ---- *\/\n  function parsePair(raw) {\n    if (!raw) return null;\n    var s = String(raw).toUpperCase().replace(\/[^A-Z]\/g,\"\");\n    if (s.length === 6) return { base: s.slice(0,3), quote: s.slice(3,6) };\n    return null;\n  }\n  function currentPair() { return parsePair(hiddenPair.value); }\n\n  \/* ---- conversion ---- *\/\n  function convQA() { var v=parseFloat($(\"fxc-conv\").value); return (isFinite(v)&&v>0)?v:NaN; }\n  function autoConv(silent) {\n    var p = currentPair();\n    var acct = accountCcy();\n    var price = num(\"fxc-price\");\n    if (!p) { if(!silent) status(\"Select a currency pair first.\"); return; }\n    if (acct === p.quote) {\n      $(\"fxc-conv\").value = \"1\";\n    } else if (acct === p.base) {\n      if (!(price>0)) { if(!silent) status(\"Enter the current price first.\"); return; }\n      $(\"fxc-conv\").value = String(+(1\/price).toFixed(8));\n    }\n  }\n  function status(msg) { $(\"fxc-status\").textContent = msg||\"\"; }\n\n  $(\"fxc-account\").addEventListener(\"change\", function(){ autoConv(true); });\n  $(\"fxc-price\").addEventListener(\"change\", function(){\n    var p=currentPair(); if(p&&accountCcy()===p.base) autoConv(true);\n  });\n  $(\"fxc-conv-auto\").addEventListener(\"click\", function(){ autoConv(false); });\n\n  \/* ---- MARGIN ---- *\/\n  $(\"fxc-m-go\").addEventListener(\"click\", function(){\n    showErr(\"fxc-m-err\",\"\"); flagInvalid([\"fxc-m-size\",\"fxc-price\",\"fxc-leverage\",\"fxc-lotsize\",\"fxc-conv\"],false);\n    var size=pos(\"fxc-m-size\"),price=pos(\"fxc-price\"),lotSize=pos(\"fxc-lotsize\"),conv=convQA();\n    var levRaw=($(\"fxc-leverage\").value||\"\").split(\":\")[0]; var lev=parseFloat(levRaw);\n    var bad=[];\n    if(isNaN(size)) bad.push(\"fxc-m-size\");\n    if(isNaN(price)) bad.push(\"fxc-price\");\n    if(!(lev>0)) bad.push(\"fxc-leverage\");\n    if(seg(\"m-unit\")===\"lots\"&&isNaN(lotSize)) bad.push(\"fxc-lotsize\");\n    if(isNaN(conv)) bad.push(\"fxc-conv\");\n    if(bad.length){ flagInvalid(bad,true); clearResults([\"fxc-m-margin\",\"fxc-m-notional\",\"fxc-m-units\"]); showErr(\"fxc-m-err\",\"Please enter valid positive numbers in the highlighted fields.\"); return; }\n    var units=toUnits(size,seg(\"m-unit\")===\"lots\",lotSize);\n    var notionalAcct=units*price*conv;\n    var margin=notionalAcct\/lev;\n    $(\"fxc-m-notional\").textContent=fmtMoney(notionalAcct);\n    $(\"fxc-m-units\").textContent=fmtNum(units,0)+\" units\";\n    $(\"fxc-m-margin\").textContent=fmtMoney(margin);\n  });\n\n  \/* ---- PIP VALUE ---- *\/\n  $(\"fxc-p-go\").addEventListener(\"click\", function(){\n    showErr(\"fxc-p-err\",\"\"); flagInvalid([\"fxc-p-size\",\"fxc-lotsize\",\"fxc-pipsize\",\"fxc-conv\"],false);\n    var size=pos(\"fxc-p-size\"),lotSize=pos(\"fxc-lotsize\"),pipSize=pos(\"fxc-pipsize\"),conv=convQA();\n    var bad=[];\n    if(isNaN(size)) bad.push(\"fxc-p-size\");\n    if(seg(\"p-unit\")===\"lots\"&&isNaN(lotSize)) bad.push(\"fxc-lotsize\");\n    if(isNaN(pipSize)) bad.push(\"fxc-pipsize\");\n    if(isNaN(conv)) bad.push(\"fxc-conv\");\n    if(bad.length){ flagInvalid(bad,true); clearResults([\"fxc-p-val\",\"fxc-p-10\",\"fxc-p-100\"]); showErr(\"fxc-p-err\",\"Please enter valid positive numbers in the highlighted fields.\"); return; }\n    var units=toUnits(size,seg(\"p-unit\")===\"lots\",lotSize);\n    var pipVal=pipSize*units*conv;\n    $(\"fxc-p-val\").textContent=fmtMoney(pipVal);\n    $(\"fxc-p-10\").textContent=fmtMoney(pipVal*10);\n    $(\"fxc-p-100\").textContent=fmtMoney(pipVal*100);\n  });\n\n  \/* ---- PROFIT \/ LOSS ---- *\/\n  $(\"fxc-pl-go\").addEventListener(\"click\", function(){\n    showErr(\"fxc-pl-err\",\"\"); flagInvalid([\"fxc-pl-size\",\"fxc-pl-open\",\"fxc-pl-close\",\"fxc-lotsize\",\"fxc-pipsize\",\"fxc-conv\"],false);\n    var size=pos(\"fxc-pl-size\"),open=pos(\"fxc-pl-open\"),close=pos(\"fxc-pl-close\"),\n        lotSize=pos(\"fxc-lotsize\"),pipSize=pos(\"fxc-pipsize\"),conv=convQA();\n    var bad=[];\n    if(isNaN(size)) bad.push(\"fxc-pl-size\");\n    if(isNaN(open)) bad.push(\"fxc-pl-open\");\n    if(isNaN(close)) bad.push(\"fxc-pl-close\");\n    if(seg(\"pl-unit\")===\"lots\"&&isNaN(lotSize)) bad.push(\"fxc-lotsize\");\n    if(isNaN(pipSize)) bad.push(\"fxc-pipsize\");\n    if(isNaN(conv)) bad.push(\"fxc-conv\");\n    if(bad.length){ flagInvalid(bad,true); clearResults([\"fxc-pl-pnl\",\"fxc-pl-pips\",\"fxc-pl-pipval\"]); showErr(\"fxc-pl-err\",\"Please enter valid positive numbers in the highlighted fields.\"); return; }\n    var units=toUnits(size,seg(\"pl-unit\")===\"lots\",lotSize);\n    var dir=seg(\"pl-dir\")===\"buy\"?1:-1;\n    var pnl=(close-open)*units*dir*conv;\n    var pips=((close-open)\/pipSize)*dir;\n    var pipVal=pipSize*units*conv;\n    var el=$(\"fxc-pl-pnl\");\n    el.textContent=fmtMoney(pnl);\n    el.className=\"v \"+(pnl>0?\"pos\":pnl<0?\"neg\":\"\");\n    $(\"fxc-pl-pips\").textContent=fmtNum(pips,1)+\" pips\";\n    $(\"fxc-pl-pipval\").textContent=fmtMoney(pipVal);\n  });\n\n  \/* ---- POSITION SIZE ---- *\/\n  $(\"fxc-s-go\").addEventListener(\"click\", function(){\n    showErr(\"fxc-s-err\",\"\"); flagInvalid([\"fxc-s-balance\",\"fxc-s-risk\",\"fxc-s-sl\",\"fxc-lotsize\",\"fxc-pipsize\",\"fxc-conv\"],false);\n    var balance=pos(\"fxc-s-balance\"),sl=pos(\"fxc-s-sl\"),\n        lotSize=pos(\"fxc-lotsize\"),pipSize=pos(\"fxc-pipsize\"),conv=convQA();\n    var riskInput=num(\"fxc-s-risk\");\n    var bad=[];\n    if(isNaN(balance)) bad.push(\"fxc-s-balance\");\n    if(isNaN(riskInput)||riskInput<=0) bad.push(\"fxc-s-risk\");\n    if(isNaN(sl)) bad.push(\"fxc-s-sl\");\n    if(isNaN(lotSize)) bad.push(\"fxc-lotsize\");\n    if(isNaN(pipSize)) bad.push(\"fxc-pipsize\");\n    if(isNaN(conv)) bad.push(\"fxc-conv\");\n    if(bad.length){ flagInvalid(bad,true); clearResults([\"fxc-s-lots\",\"fxc-s-units\",\"fxc-s-amount\",\"fxc-s-pipval\"]); showErr(\"fxc-s-err\",\"Please enter valid positive numbers in the highlighted fields.\"); return; }\n    var pct=seg(\"s-mode\")===\"pct\";\n    if(pct&&riskInput>100){ flagInvalid([\"fxc-s-risk\"],true); clearResults([\"fxc-s-lots\",\"fxc-s-units\",\"fxc-s-amount\",\"fxc-s-pipval\"]); showErr(\"fxc-s-err\",\"Risk percentage can't exceed 100%.\"); return; }\n    var riskAmount=pct?balance*(riskInput\/100):riskInput;\n    var pipValuePerLot=pipSize*lotSize*conv;\n    var denom=sl*pipValuePerLot;\n    if(!(denom>0)){ clearResults([\"fxc-s-lots\",\"fxc-s-units\",\"fxc-s-amount\",\"fxc-s-pipval\"]); showErr(\"fxc-s-err\",\"Check your stop-loss, pip size and lot size.\"); return; }\n    var lots=riskAmount\/denom;\n    var units=lots*lotSize;\n    $(\"fxc-s-lots\").textContent=fmtNum(lots,2)+\" lots\";\n    $(\"fxc-s-units\").textContent=fmtNum(units,0)+\" units\";\n    $(\"fxc-s-amount\").textContent=fmtMoney(riskAmount);\n    $(\"fxc-s-pipval\").textContent=fmtMoney(pipValuePerLot*lots);\n  });\n\n})();\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-132ca03 e-flex e-con-boxed e-con e-parent\" data-id=\"132ca03\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-05617ff elementor-widget elementor-widget-template\" data-id=\"05617ff\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"template.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-template\">\n\t\t\t\t\t<div data-elementor-type=\"container\" data-elementor-id=\"6211\" class=\"elementor elementor-6211\" data-elementor-post-type=\"elementor_library\">\n\t\t\t\t<div class=\"elementor-element elementor-element-17cc6c93 e-con-full elementor-hidden-tablet elementor-hidden-mobile e-flex e-con e-parent\" data-id=\"17cc6c93\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-7c81ed8c e-con-full e-flex e-con e-child\" data-id=\"7c81ed8c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-190d206 elementor-widget elementor-widget-image\" data-id=\"190d206\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"39\" height=\"131\" data-src=\"https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/1-1.png\" class=\"attachment-large size-large wp-image-4880 lazyload\" alt=\"\" data-srcset=\"https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/1-1.png 39w, https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/1-1-4x12.png 4w\" data-sizes=\"(max-width: 39px) 100vw, 39px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 39px; --smush-placeholder-aspect-ratio: 39\/131;\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-4842a10c e-con-full e-flex e-con e-child\" data-id=\"4842a10c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b43843e elementor-widget elementor-widget-heading\" data-id=\"b43843e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Register<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-408592c4 elementor-widget elementor-widget-heading\" data-id=\"408592c4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Create your Amillex Live Trading Account in just a few minutes.<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-137342e3 e-con-full e-flex e-con e-child\" data-id=\"137342e3\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-71d8cc43 elementor-widget elementor-widget-image\" data-id=\"71d8cc43\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"89\" height=\"132\" data-src=\"https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/2-1.png\" class=\"attachment-large size-large wp-image-4881 lazyload\" alt=\"\" data-srcset=\"https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/2-1.png 89w, https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/2-1-8x12.png 8w\" data-sizes=\"(max-width: 89px) 100vw, 89px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 89px; --smush-placeholder-aspect-ratio: 89\/132;\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-132aaea4 e-con-full e-flex e-con e-child\" data-id=\"132aaea4\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-73423bc2 elementor-widget elementor-widget-heading\" data-id=\"73423bc2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Deposit<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3a72ba73 elementor-widget elementor-widget-heading\" data-id=\"3a72ba73\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Deposit funds using your preferred currency and payment method.<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-4e9e3a71 e-con-full e-flex e-con e-child\" data-id=\"4e9e3a71\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2b04d330 elementor-widget elementor-widget-image\" data-id=\"2b04d330\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"89\" height=\"134\" data-src=\"https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/3-1.png\" class=\"attachment-large size-large wp-image-4882 lazyload\" alt=\"\" data-srcset=\"https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/3-1.png 89w, https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/3-1-8x12.png 8w\" data-sizes=\"(max-width: 89px) 100vw, 89px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 89px; --smush-placeholder-aspect-ratio: 89\/134;\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-568e8600 e-con-full e-flex e-con e-child\" data-id=\"568e8600\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-34c2253b elementor-widget elementor-widget-heading\" data-id=\"34c2253b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Trade<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3395f5c elementor-widget elementor-widget-heading\" data-id=\"3395f5c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Start trading on PC, mobile or web.<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-bba606b e-flex e-con-boxed e-con e-parent\" data-id=\"bba606b\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-cebbf63 elementor-widget elementor-widget-template\" data-id=\"cebbf63\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"template.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-template\">\n\t\t\t\t\t<div data-elementor-type=\"container\" data-elementor-id=\"6214\" class=\"elementor elementor-6214\" data-elementor-post-type=\"elementor_library\">\n\t\t\t\t<div class=\"elementor-element elementor-element-462f4aaa e-con-full elementor-hidden-desktop e-flex e-con e-parent\" data-id=\"462f4aaa\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-651e202f e-con-full e-flex e-con e-child\" data-id=\"651e202f\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c4e1a71 elementor-widget elementor-widget-image\" data-id=\"c4e1a71\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"65\" height=\"65\" data-src=\"https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/Frame-158.png\" class=\"attachment-large size-large wp-image-4896 lazyload\" alt=\"\" data-srcset=\"https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/Frame-158.png 65w, https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/Frame-158-12x12.png 12w\" data-sizes=\"(max-width: 65px) 100vw, 65px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 65px; --smush-placeholder-aspect-ratio: 65\/65;\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-9f73b9e e-con-full e-flex e-con e-child\" data-id=\"9f73b9e\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5311b7a1 elementor-widget elementor-widget-heading\" data-id=\"5311b7a1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Register<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-16e3af4a elementor-widget elementor-widget-heading\" data-id=\"16e3af4a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Create your Amillex Live Trading Account in just a few minutes.<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-2824e444 e-con-full e-flex e-con e-child\" data-id=\"2824e444\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7653022d elementor-widget elementor-widget-image\" data-id=\"7653022d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"65\" height=\"65\" data-src=\"https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/Frame-156.png\" class=\"attachment-large size-large wp-image-4897 lazyload\" alt=\"\" data-srcset=\"https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/Frame-156.png 65w, https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/Frame-156-12x12.png 12w\" data-sizes=\"(max-width: 65px) 100vw, 65px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 65px; --smush-placeholder-aspect-ratio: 65\/65;\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-145342fb e-con-full e-flex e-con e-child\" data-id=\"145342fb\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-399ea8cc elementor-widget elementor-widget-heading\" data-id=\"399ea8cc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Deposit<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5a3457 elementor-widget elementor-widget-heading\" data-id=\"5a3457\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Deposit funds using your preferred currency and payment method.<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-3c6ce7ad e-con-full e-flex e-con e-child\" data-id=\"3c6ce7ad\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-627fc247 elementor-widget elementor-widget-image\" data-id=\"627fc247\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"65\" height=\"65\" data-src=\"https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/Frame-157.png\" class=\"attachment-large size-large wp-image-4899 lazyload\" alt=\"\" data-srcset=\"https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/Frame-157.png 65w, https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/05\/Frame-157-12x12.png 12w\" data-sizes=\"(max-width: 65px) 100vw, 65px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 65px; --smush-placeholder-aspect-ratio: 65\/65;\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-2aa0e9c6 e-con-full e-flex e-con e-child\" data-id=\"2aa0e9c6\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-26eff13b elementor-widget elementor-widget-heading\" data-id=\"26eff13b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Trade<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3631182e elementor-widget elementor-widget-heading\" data-id=\"3631182e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Start trading thousands of global instruments with industry-leading conditions.<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-d8254d8 e-flex e-con-boxed e-con e-parent\" data-id=\"d8254d8\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-62683e7 elementor-widget elementor-widget-template\" data-id=\"62683e7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"template.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-template\">\n\t\t\t\t\t<div data-elementor-type=\"container\" data-elementor-id=\"6217\" class=\"elementor elementor-6217\" data-elementor-post-type=\"elementor_library\">\n\t\t\t\t<div class=\"elementor-element elementor-element-33813baa e-con-full e-flex e-con e-child\" data-id=\"33813baa\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;video&quot;,&quot;background_play_on_mobile&quot;:&quot;yes&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-b990522 e-con-full e-flex e-con e-child\" data-id=\"b990522\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-48d47a9d elementor-widget elementor-widget-heading\" data-id=\"48d47a9d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Ready to Trade with us?<\/h2>\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-7609bb66 e-con-full e-flex e-con e-child\" data-id=\"7609bb66\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1172d4d5 elementor-mobile-align-justify elementor-widget-mobile__width-inherit elementor-align-justify elementor-widget__width-initial elementor-widget elementor-widget-button\" data-id=\"1172d4d5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/accounts.amillex.com\/regist-real\" target=\"_blank\" rel=\"noopener\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Start Trading Now<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-716aa1f elementor-mobile-align-justify elementor-widget-mobile__width-inherit elementor-align-justify elementor-widget__width-initial elementor-widget elementor-widget-button\" data-id=\"716aa1f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/accounts.amillex.com\/regist-simulate\" target=\"_blank\" rel=\"noopener\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Try Demo<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-779c7561 e-con-full e-flex e-con e-child\" data-id=\"779c7561\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6cf2f213 elementor-widget elementor-widget-video\" data-id=\"6cf2f213\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;video_type&quot;:&quot;hosted&quot;,&quot;autoplay&quot;:&quot;yes&quot;,&quot;loop&quot;:&quot;yes&quot;,&quot;play_on_mobile&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t\t\t\t<div class=\"e-hosted-video elementor-wrapper elementor-open-inline\">\n\t\t\t\t\t<video class=\"elementor-video\" src=\"https:\/\/www.amillex.com\/wp-content\/uploads\/2026\/06\/0620_CTA_Landing-Page.webm\" autoplay=\"\" loop=\"\" playsinline=\"\" controlsList=\"nodownload\"><\/video>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Trading Calculator Build your strategy or crunch numbers with these trading calculators. Forex Trading Calculator Margin &middot; Pip value &middot; Profit \/ loss &middot; Position size Margin Pip Value Profit \/ Loss Position Size Currency pair &#x2715; Type a symbol or name to search. JPY pairs auto-switch pip to 0.01. Account currency USD &#8211; US [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":5631,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","footnotes":""},"class_list":["post-5160","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/www.amillex.com\/fa\/wp-json\/wp\/v2\/pages\/5160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.amillex.com\/fa\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.amillex.com\/fa\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.amillex.com\/fa\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amillex.com\/fa\/wp-json\/wp\/v2\/comments?post=5160"}],"version-history":[{"count":32,"href":"https:\/\/www.amillex.com\/fa\/wp-json\/wp\/v2\/pages\/5160\/revisions"}],"predecessor-version":[{"id":7993,"href":"https:\/\/www.amillex.com\/fa\/wp-json\/wp\/v2\/pages\/5160\/revisions\/7993"}],"up":[{"embeddable":true,"href":"https:\/\/www.amillex.com\/fa\/wp-json\/wp\/v2\/pages\/5631"}],"wp:attachment":[{"href":"https:\/\/www.amillex.com\/fa\/wp-json\/wp\/v2\/media?parent=5160"}],"curies":[{"name":"\u0648\u0631\u062f\u067e\u0631\u0633","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}