- Search Energy EXCH
-
CodeMeister replied Nov 3, 2011Try This — int TF2 = PERIOD_M1 // or some other TF value double HA1 = iCustom(NULL, 0, "HA01", 0, 1500, 0, 0); double HA2 = iCustom(NULL, TF2, "HA01", 0, 1500, 0, 0);
2 TF Heiken Ashi Indicator
-
CodeMeister replied Nov 3, 2011Try This — The second parameter for iCustom is the TF. 0 means use the default (chart) TF.
2 TF Heiken Ashi Indicator
-
CodeMeister replied Nov 2, 2011What? — Exactly what values are returned?
iCustom Value with another value ?
-
CodeMeister replied Nov 1, 2011Explanation — 1 and 2 in your iCustom() call refer to the indicator buffers 1 and 2. So just use if (signaldown > 4) // do something if (signalup <= -4) // do something
iCustom Value with another value ?
-
CodeMeister replied Oct 28, 2011Not Easy — First of all forget about GMT, that is too much trouble for the dubious advantage. You will find that broker time is much easier. Basically all timed code uses the Hour() function (broker time) to compare to a user setting such as ...
Need Coders/Experts help to add Time setting in EA :-)
-
CodeMeister replied Oct 27, 2011Heiken Ashi — A heiken ashi indicator with alert will do what you want. I am sure I have seen a few but that was a while ago.
Candle same color alert indicator
-
CodeMeister replied Oct 27, 2011Try This — Tools -> Options -> Events will do it for you. Lots of help online.
using sounds in MT4
-
CodeMeister replied Oct 26, 2011MT5 — MT5 allows non programmers to build their own EAs. It may not do everything, but most can be done. Can only be used for demo; I don't think anybody has live trading yet.
Trailing entry script/EA?
-
CodeMeister replied Oct 26, 2011Explanation — The following is from help which details the difference. In short what it means is that the FTP server can be configured in 2 ways and you have to choose the right way for your server's configuration. One way to determine this by ...
MT4 Publisher Passive mode issue?
-
CodeMeister replied Oct 25, 2011Try This — Remove all function calls for SetIndexBuffer(). For the indicator name, use this SetIndexLabel(1,""). You can try playing with SetIndexLevel() for the right margin values, but I don't know how it works.
Indicator name, values, levels coding
-
CodeMeister replied Oct 25, 2011No Code — I don't do code for free because it takes time to get working correctly which is your responsibility.
sum of all highs from yesterday in MT4 language?
-
CodeMeister replied Oct 25, 2011Try This — Back in the day when I worked with 2nd generation programming languages, there weren't any multi-dimensional arrays either. So I would declare a big enough array and index i1 and i2 to keep track of which values are related. Seems ...
Multidimensional Arrays in MQL4
-
CodeMeister replied Oct 25, 2011Try This — To work with time series (arrays) in MT4, you need to determine the start and ending indices. You do this with iBarShift(); the latest is always 0. Once you have the indices you can do a for loop to figure out what you want. If you ...
sum of all highs from yesterday in MT4 language?
-
CodeMeister replied Oct 23, 2011Good Discussion — Here are some thoughts on MT5. From a technical point of view it is superior to MT4, but so far it has not been "superior" enough for rapid adoption. Edit: forgot the link url
Future EAs Code Language?
-
CodeMeister replied Oct 21, 2011Risk — A lot can change between now and December. I used to know the term, but can't think of it right now. To understand my point, take a look at Oil futures for 1 month, 1 year and 10 years.
price difference between spot and futures
-
CodeMeister replied Oct 20, 2011Works Fine — I can't make my instructions any clearer than before. Are sure that you have the Navigator window open?
Hotkey script MT4 open-close orders
-
CodeMeister replied Oct 20, 2011Try This — I think you have to restart MT4 as well.
Alert for order open / close
-
CodeMeister replied Oct 20, 2011Try This — Are the sound files in your /sounds folder?
Alert for order open / close
-
CodeMeister replied Oct 16, 2011MT5 — MT5 is completely incompatible with MT4 indicators. At this point, we don't know what the challenges are with MT4 and Windows 8, but I will be so bold as to say that it will not work with the Metro interface and you will have to run it ...
Using MT4 on Tablet PC
-
CodeMeister replied Oct 16, 2011Not Easy — First of all, I should point out that this is not easy even for an experienced coder. I don't know how to explain without coding and that won't be any use because it would take hours to test it. Once you have determined that the ...
MQL4 Guide