美文网首页
MetaTrader 4 WebTerminal 迈达克4WEB

MetaTrader 4 WebTerminal 迈达克4WEB

作者: 王乂 | 来源:发表于2016-05-03 15:53 被阅读0次

    MetaTrader 4 WebTerminal

    迈达克4web客户端

    MetaTrader 4 WebTerminal allows trading in the financial markets via a web browser. It works in all operating systems and browsers requiring no additional software. All transmitted data is securely encrypted.

    迈达克4wen客户端允许通过web浏览器来进行金融产品的交易。它可以工作于所有的操作系统和浏览器,而不需要其他的软件。所有的数据传输都是加密过的。

    The WebTerminal allows setting all types of market and pending orders, as well as supports one-click trading. Traders can view real-time quotes and analyze charts using basic graphical objects. The terminal also allows analyzing charts via 30 technical indicators.

    web客户端可以设置各种类型的市场和挂单,并支持设置一键交易的功能。web客户端包含有30种的交易指标。

    The terminal is a modern HTML5 application that can be easily integrated into any website via a simple iframe widget.

    这个客户端使用现代的HTML5,  通过简单的iframe就可以集成到其他的软件里。

    Similar to the desktop platform, traders should select a server from the list, enterlogin and password when connecting to the web terminal via your website. For the seamless web terminal integration with clients area on your website, server and login can be pre-selected to let your client enter a password only. If a users saves a password in a browser storage, the platform will login to the trading account automatically on the next run.

    和桌面版本的一样, 交易员要从列表里选择一个服务器,输入用户和密码。也可以只输入密码或者如果在浏览器里存储了交易用户和密码, 也可以自动登录。

    •To get the terminal,order it in the Buy sectionof the Support website.

    如果需要web客户端, 可以从支持站点的订单购买完成。

    •The server should be updated to build 890 for the web terminal operation.

    主服务器的版本应高于890

    MQL5.communityaccount is not required.

    MQL5.community也是web客户端的必须组件。

    How to Add the WebTerminal Widget to Your Website

    如何在你的网站上添加web客户端呢?

    Add below HTML code to insert the widget on your website:

    在你网站中插入如下HTML代码的控件:

    <iframe src="https://trade.mql5.com/trade?servers=ForexBroker-Demo,ForexBroker-Live&amp;trade_server=ForexBroker-Live&amp;demo_server=ForexBroker-Demo&amp;demo_type=forex,forex-usd&amp;demo_leverage=1,33,100,300,500&amp;startup_mode=open_demo&amp;lang=ru&amp;save_password=off" allowfullscreen="allowfullscreen" style="width: 100%; height: 700px; border: none"></iframe>

    Specify the necessary parameters:

    需要修改的参数

    •servers — comma-separated server's list for the server's drop-down list. If specified, trade_server should always be on the list.

    服务器-用逗号分开的服务器地址构成了服务器的下拉列表,除非特殊情况, 交易服务器应该一直在列表里。

    •trade_server — default server for the drop-down server's list. If not specified, the first one from the 'servers' list is selected.

    交易服务器,默认的下拉列表中的服务器,如果没有特殊情况,会选择服务器列表中的第一个。

    •demo_server — one or several comma-separated servers for new demo accounts. If you specify several servers, clients will be able to choose from them in the demo account opening dialog. Do not set up this parameter if you need to disable demo account opening.

    demo服务器,一个或者数个逗号分开的服务器地址,如果你定义了多个, 用户可以选择使用哪个开开户, 如果你不想开启demo服务器, 记得不要设置这个参数。

    •demo_type — demo account type, multiple comma-separated values can be added. To open demo accounts in the "demoforex" group, specify "forex" (the "demo" prefix is added automatically). If not specified, all account types configured in the terminal White Label are used.

    •demo_leverage — the leverage for the demo account, multiple comma separated options can be added. If not specified, all options configured in the terminal White Label are used.

    •login — trading account login (specify if necessary).

    •width — terminal's width in % or pixels. The recommended value is "100%" to allow the web terminal automatically adjust to the maximum available width on the web page.

    •height — terminal's height in % or pixels. The recommended value is "700px" to make the entire widget visible even on small screens without the need to scroll.

    •allowfullscreen — to allow switching the WebTerminal into the fullscreen mode using the Fullscreen command in the View menu, add parameter allowfullscreen="allowfullscreen". If the parameter is not specified, the command is hidden from the menu.

    •startup_mode — start up mode, optional parameter. Set the "open_demo" value to display a demo account creation window instead of the login window if a user doesn't have any accounts stored in the web terminal. However, if there are accounts in the local storage, the last used account will be connected automatically.

    •save_password — the WebTerminal allows saving trade account passwords in the browser storage to connect automatically without entering the passwords. Option "Save password in browser storage" used for that purpose is enabled on default. To set its default value to disabled, add parameter save_password=off.

    •lang — the web terminal default interface language, optional parameter. The language is specified as a code, for example: lang="en". A user can also select the interface language from the View-> Languages menu. In this case, the value of lang will be ignored. The following language codes are currently available:

    •ar — Arabic

    •bg — Bulgarian

    •zh — Chinese

    •hr — Croatian

    •cs — Czech

    •da — Danish

    •nl — Dutch

    •en — English

    •et — Estonian

    •fi — Finnish

    •fr — French

    •de — German

    •el — Greek

    •he — Hebrew

    •hi — Hindi

    •hu — Hungarian

    •id — Indonesian

    •it — Italian

    •ja — Japanese

    •ko — Korean

    •lv — Latvian

    •lt — Lithuanian

    •ms — Malay

    •mn — Mongolian

    •fa — Persian

    •pl — Polish

    •pt — Portuguese

    •ro — Romanian

    •ru — Russian

    •sr — Serbian

    •sk — Slovak

    •sl — Slovenian

    •es — Spanish

    •sv — Swedish

    •tg — Tajik

    •th — Thai

    •zt — Traditional Chinese

    •tr — Turkish

    •uk — Ukrainian

    •uz — Uzbek

    •vi — Vietnamese

    Disable downloading the web terminal page in IFRAME

    An attacker can place an invisible IFRAME containing the page of your website with the web terminal and combine the web terminal control element (such as a button) with another link on their website. Thus, when clicking a link, a user may actually perform an action necessary to the attacker.

    AddX-Frame-Options: DENYHTTP response header to your page containing the web terminal in order to disable downloading the page in IFRAME and protect users.

    Determining the WebTerminal Language

    The web terminal determines the interface language based on the following priorities:

    •The language selected by the user in the web terminal

    •The language specified in lang (if the language is supported in the web terminal)

    •The preferred language in the user's web browser (if the language is supported in the web terminal)

    If the web terminal cannot determine the language, English will be used.

    Operation Features

    The maximum number of symbols a client can enable in the Market Watch window is 300 for all browsers, except for Internet Explorer/Edge — 50. A greater number of symbols in Internet Explorer/Edge slows down the web terminal operation.

    Example of Adding a Web Terminal Widget

    <!DOCTYPE html>

    <html lang="en">

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <title>Web Terminal for the MetaTrader Trading Platform</title>

    <style type="text/css">

    body {margin: 0; padding: 0; font-family: Arial, Tahoma; font-size: 16px; color: #000; background-color: #FFF; min-width: 1010px}

    .top {background-color: #0055A7;}

    .top h1 {margin: 10px 20px 10px 10px; font-size: 25px; font-weight: normal; color: #FFF; display: inline-block; vertical-align: middle; }

    .top .menu, .top .menu li {margin: 0; padding: 0; list-style: none; display: inline-block; vertical-align: middle; }

    .top .menu li {margin: 0; padding: 0; list-style: none; display: inline-block;}

    .top .menu li a {padding: 20px; font-size: 16px; color: #FFF; text-decoration: none; text-align: center; display: block;}

    .top .menu li a:hover {background-color: #0B6ABF;}

    .top .menu li a.selected {background-color: #2989DF; color: #FFF;}

    .content { box-shadow: 0 0 20px rgba(0,0,0,0.5); position: relative; }

    .footer {text-align: center; padding: 20px; color: #0A0A0A; font-size: 14px}

    </style>

    </head>

    <body>

    <div class="top">

    <h1>BROKER</h1>

    <ul class="menu">

    <li><a href="#">Services</a></li>

    <li><a href="#" class="selected">Web Terminal</a></li>

    <li><a href="#">News</a></li>

    <li><a href="#">Contact</a></li>

    </ul>

    </div>

    <div class="content">

    <!-- Web Terminal Code Start -->

    <iframe src="https://trade.mql5.com/trade?servers=ForexBroker-Demo,ForexBroker-Live&amp;trade_server=ForexBroker-Live&amp;demo_server=ForexBroker-Demo

    &amp;demo_type=forex&amp;demo_leverage=500&amp;lang=en" allowfullscreen="allowfullscreen" style="width: 100%; height: 700px; border: none"></iframe>

    <!-- Web Terminal Code End -->

    </div>

    <div class="footer">

    Copyright 2000-2015, Broker

    </div>

    </body>

    </html>

    Copyright 2000-2015, Broker

    API

    Additional Features

    Copyright 2000-2016,MetaQuotes Software Corp.

    相关文章

      网友评论

          本文标题:MetaTrader 4 WebTerminal 迈达克4WEB

          本文链接:https://www.haomeiwen.com/subject/jizlrttx.html