Mql5官网 Display Text Information On Your Chart 外汇EA

Mql5官网 Display Text Information On Your Chart 外汇EA-EA侦探社 - 全球领先的MQL5官网外汇EA机器人MT4自动化交易EA资源免费分享网站
Mql5官网 Display Text Information On Your Chart 外汇EA
此内容为免费资源,请登录后查看
0积分
免费资源

如果免费资源下载的文件为TXT文档

请联系站长更新!站长微信:Lv596999  Telegram:@eapoj

“Mql5官网”板块的EA基本都有,大部分是无限制NODLL版,NODLL版本MT1420升级,大多数不可用!这些EA来源为国外花钱买过来的

有需要,请联系站长!

“EA测评”板块资源全部现有,看见不错的,可以联系站长看EA在确定是否收费

“无限制EA”板块,大部分免费,下载文件全部存在,都可以免费下载

站长硬盘EA太多,因大部分时间做交易,做风控,没太多时间更新下载地址,请谅解!

需要更新下载文件,请联系站长微信!国外朋友请联系Telegram。


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);
     }

图片[1]-Mql5官网 Display Text Information On Your Chart 外汇EA-EA侦探社 - 全球领先的MQL5官网外汇EA机器人MT4自动化交易EA资源免费分享网站

© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享
相关推荐