A picture for the forum on metaquotes - page 58

 
The instrument panels are sliding off

 

Wishes for an MT5

 

Video: How do I make more characters available in the terminal?


 

How to Check Account Functions - Account Information

CheckAccountFunctions.mq4 script :

//+------------------------------------------------------------------+
//|                                        CheckAccountFunctions.mq4 |
//|                      Copyright © 2007, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"
 
//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  {
//----
   string MarginLevel;
   string CommentString=StringConcatenate("Account Number = ",AccountNumber(),"\n");
   CommentString=StringConcatenate(CommentString,"AccountCurrency=",AccountCurrency(),"\n");
   CommentString=StringConcatenate(CommentString,"AccountCompany=",AccountCompany(),"\n");
   CommentString=StringConcatenate(CommentString,"AccountName=",AccountName(),"\n");
   CommentString=StringConcatenate(CommentString,"AccountServer=",AccountServer(),"\n");
   CommentString=StringConcatenate(CommentString,"AccountStopoutLevel=",AccountStopoutLevel(),"\n");
   CommentString=StringConcatenate(CommentString,"AccountStopoutMode=",AccountStopoutMode(),"\n");
   CommentString=StringConcatenate(CommentString,"AccountBalance()=",AccountBalance(),"\n");
   CommentString=StringConcatenate(CommentString,"AccountMargin=",AccountMargin(),"\n");
   CommentString=StringConcatenate(CommentString,"AccountEquity=",AccountEquity(),"\n");
   CommentString=StringConcatenate(CommentString,"AccountLeverage=",AccountLeverage(),"\n");
   
   if (AccountMargin()>0) MarginLevel=StringConcatenate("MarginLevel=",DoubleToStr(AccountEquity()/AccountMargin()*100,2),"% ");
   else MarginLevel="MarginLevel=N/A";
 
   CommentString=StringConcatenate(CommentString,MarginLevel);
   Comment(CommentString);   
//----
   return(0);
  }
//+------------------------------------------------------------------+


 

Video: How to view trades (entry and exit points) on a price chart


 

How to run an EA on an offline chart with a non-standard timeframe.

In the WinUser32.mqh file insert the following line

   int      RegisterWindowMessageA(string lpstring);

In the period_converter.mq4 script insert the following line

   int MT4InternalMsg = RegisterWindowMessageA("MetaTrader4_Internal_Message"); //incoming tick for EAs

and a line

            PostMessageA(hwnd,MT4InternalMsg,2,1); //incoming tick for EAs

Details on the video.




 
Smoothed parabolic

Files:
 

How to open a tutorial if it has been locked by the security system.

Unlocking is done in the file properties by pressing the Unlock button. See video.



To open a textbook

 

How to connect to an account on ATC 2008.


 

How to change the symbol on the chart quickly.


Reason: