1. When the 'print' function is used, where is the output printed? For example, see the code here:
Where would "bars less than 100" be printed if the EA was run?
2. Is the # symbol used to denote a preprocessor directive in MQL in the same way it is in C++? It doesn't appear that the lines of code in the following example are preprocessor directives:
3. How do I download and open expert advisor's found online? I've tried downloading them to many different folders within the MetaTrader 4 program files, but I cannot seem to get them to appear in the MetaEditor. For example, I tried downloading an EA (that I found here on FF) named 'MfiRsi EA.ex4' to the folder shown in the screenshot below. I assumed that I'd then be able to locate and view this EA in the MetaEditor, but it was nowhere to be found. What am I doing wrong here?
Note: All code used in this thread is from the MACD sample algorithm included with MT4
Inserted Code
if(Bars<100) { Print("bars less than 100"); return; }
2. Is the # symbol used to denote a preprocessor directive in MQL in the same way it is in C++? It doesn't appear that the lines of code in the following example are preprocessor directives:
Inserted Code
#property copyright "2005-2014, MetaQuotes Software Corp." #property link "http://www.mql4.com"
3. How do I download and open expert advisor's found online? I've tried downloading them to many different folders within the MetaTrader 4 program files, but I cannot seem to get them to appear in the MetaEditor. For example, I tried downloading an EA (that I found here on FF) named 'MfiRsi EA.ex4' to the folder shown in the screenshot below. I assumed that I'd then be able to locate and view this EA in the MetaEditor, but it was nowhere to be found. What am I doing wrong here?
Note: All code used in this thread is from the MACD sample algorithm included with MT4