Hi Is is possible to call a function in an inherited class from the function that overrides it? This is useful to avoid duplicating code when several classes inherit from one base class. A simple example is below. Thanks, Jellybean
After the live update just released (build 251), running the terminal caused 100% CPU usage and required 'End Process' terminal.exe to recover. Uninstalling MT5, downloading from the web site and re-installing allowed it to run once. After closing
Hi I thought I had read that the maximum umber of indicator buffers had changed in MQL5, but I can't find what I thought I read. Would someone please clarify what the maximum number of indicator buffers is? Thanks Jellybean
Hi In trying to prevent a divide by zero error, I realised that the indicator was calculating before the data was loaded or updated. I think I need to return without calculation if the data is not ready. I saw someone else use SeriesInfoInteger(
Hi all Does anyone know of a way of finding out how many pixels there are between the maximum and minimum prices on the chart window? All I can find is WindowPriceMax() & WindowPriceMin(), which return price units. Cheers Jellybean
Hi I have a problem where the spread data in the OnCalculate() parameters sometimes is equal to -bid. It behaves as though the ask value is zero. When I calculate the spread using the MqlTick values I have no error. I will attach my test indicator
Hi I trying to use the lowest low over the previous 10 bars, but I am getting strange results from iLowest(). Do others have this problem? Am I doing something wrong? It appears to mix up the type constants. I've tested it on M1 & M5 because they
Hi I'm trying to write a simple EA to manage an entry. When the entry order is placed I would like to add a trailing stop in the same way that you can by right-clicking on the order in the client terminal. (I understand that the Client Terminal
Hi I was fascinated by the discussion provoked by phy on "What is a tick?" Basically, if a tick is an event, how can it have a size? What is the difference between MODE_TICKSIZE and MODE_POINT? I use this to calculate postiion/order size
Hi Does the function MarketInfo ( Symbol(), MODE_SPREAD ) query the server or client terminal? When working with a very volatile spread (e.g. AUDNZD) I find I want to average the spread tick by tick, but does that mean I'm making server requests
Hi Is it true that the indicators Bollinger Bands and the equivalent iBands accept only integer standard deviation values? I find that the custom indicator, Bands, makes a Bollinger band of any number of standard deviation (e.g. 2.5). For my EA, I
Hi In a custom indicator, I'd like to turn the line drawing off and on within the line, but I can't figure out how to do it. I have a pivot point custom indicator and I would really like to not draw the transitions between the levels when they