A testing framework would be extremely useful when developing and testing both MQL4 and MQL5 so that automatic tests suites could be run before demo testing the entire code. Can this be implemented please - soon?
Hi, I'm using an CArrayDouble object to store some "double" values and I what to be able to use iMAOnArray on them but the compiler is complaining about a "parameter conversion not allowed" error. Could someone tell me how I get the values from the
Hi, I notice that the Parabolic SAR indicator always displays the correct SAR value for the current bar. However, with iSAR function, shift 0, or with the iCustom of the Parabolic SAR indicator, shift 0, the value is always the previous bar. What I
Hi, I'm using the code from this article https://www.mql5.com/en/articles/159 to calculate when a new bar opens but it's not displaying the historical data for the indicator. I modified the TimeCurrent() to iTime( _Symbol , _Period ,shift) to
Hi, One of the major downfalls of MT4 and MT5 is that they don't provide tick charts for details analysis. When will this feature be included into the systems? Thanks in advance.
Hi, I'm learning to write indicators and I've a problem which I don't understand. The indicator should display an green up or red down arrow depending on certain conditions but instead is displaying all red down arrows. The different
Hi, Could someone please show me how I detect and only execute something at the beginning of a new bar please. I know how to do it in an EA but this is the first indicator I've written. Thanks in advance.
Hi, Could someone please show me how I can detect and only execute something at the open of a new bar please? I know how to do it in an EA but struggling with an indicator (it's the first indicator I've written!) Thanks in advance.
Hi, Is it me or have I discovered a bug with the CCI calculation in MetaTrader 4? I'm using this EA code... //+------------------------------------------------------------------+
Hi, I'm trying to figure out how to create a isNewBar function that works across multiple timeframes. What I've created is this but it doesn't seem to be working and I can't work out why! Code: const bool isNewBar(const datetime time, int period) {
Hi, This is my first indicator and I don't understand what is going on. Could someone highlight my the problem with my code please. Thanks. I want to calculate 2 moving averages and a MACD + histogram. I don't want to display the results, just use
Hi, I've modified the sample MACD script and now is is so, so slow under backtesting but I don't understand why! Could you someone tell what I'm doing wrong please (I'm a newbie to MT4)
Hi, I'm a newbie to MT4 so bare with me please. Is it possible with MT4 to excute a Expert Advisor script that uses multiple timeframes in order to create trading signals? If so, how do I achieve this in code? Timeframes such as 1min, 2min, 5min etc