客服热线:18391752892
当前位置: 首页 » 外汇EA商城 » 智能交易 »在MetaTrader市场购买MetaTrader 4的'Display Text Information On Your Chart' 交易程序库

在MetaTrader市场购买MetaTrader 4的'Display Text Information On Your Chart' 交易程序库

品牌:
顺水的鱼外汇EA
起批 1-30000件 30001件以上
价格 3988.00 10.00
评分:
人气( 344 )  共有 0 条评价 ( 销量:0件 )

手机扫购有惊喜
物流:
:3988.00  
数量:
   
(当前库存 888888 件)
  • 收藏商品(0)
  • 告诉好友
  • 举 报
  • 顺水的鱼外汇EA

    发 货 地:
    默认地区
    全网同类推荐
    • ¥1100.00
    • ¥3988.00
    • ¥3988.00
    • ¥3988.00
    • ¥3988.00
    • ¥3988.00

    店长精品橱窗推荐

    本店商品分类

    • -暂无分类

    本店商品排行

    • 概述
    • 评论
    • 评论

    Display Text Information On Your Chart

    Display all text information you need on your live charts.

    First, import the library:

    #import "osd.ex4"
    void display(string osdText,ENUM_base_CORNER osdCorner,int osdFontSize,color osdFontColor, int osdAbs,int osdOrd);
    // function to display
    void undisplay(string osdText);
    // function to undisplay
    int splitText(string osdText,string &linesText[]);
    // function called from display() and undisplay()
    void delObsoleteLines(int nbLines);
    // function called from display
    string setLineName(int numLine);
    // function called from display(), undisplay() and delObsoleteLines()
    #import

    Then, implement parameters:

    1. The info you want to display
    2. One of the four corners to display to
    3. Choose font size
    4. Choose font color
    5. Choose x distance
    6. Choose y distance
    extern ENUM_base_CORNER corner=CORNER_RIGHT_LOWER; // corner to display to
    extern int     fontSize=7; // size text
    extern color   fontColor=clrWhite; // color text
    extern int     abs = 10; // x distance from corner
    extern int     ord = 15; // y distance from corner

    The library is coded so that display() has default parameters except for the string osdText, so you can pass your string as the only parameter.

    Then, construct your info in a string with multiple lines.

    string servername=AccountServer();
       string companyname=AccountCompany();
       double _spread=MarketInfo(Symbol(),MODE_SPREAD);
       string msg=StringConcatenate("companyname : ",companyname,
                             "n servername : ",servername,
                             "n spread : ",_spread);

    Finally, only two functions to use: display() and undisplay().

    You can also switch on/off the info display if you add a bool parameter.

    extern bool    displayOn=true; // switch on/off infos displaying
    if(displayOn) // if displayOn is true, you display infos
         {
          display(msg,corner,fontSize,fontColor,abs,ord);
         }
       else // if displayOn is false, you do not display
         {
          undisplay(msg);
         }
    ta itemprop="image" content="https://c.mql5.com/31/74/display-text-information-on-your-chart-screen-8619.png" />

    因厂家更改商品包装、场地、附配件等不做提前通知,且每位咨询者购买、提问时间等不同。为此,客服给到的回复仅对提问者3天内有效,其他网友仅供参考!给您带来的不变还请谅解,谢谢!

     
    • 18391752892

      网站客服

      法定工作日

      8:30-17:30

    • 了解更多外汇信息

      微信扫描关注

    • 用户反馈