- Search Energy EXCH
-
CodeMeister replied Jun 6, 2011Try This — int allOrders=OrdersTotal(); for(int pos=0;pos<allOrders;pos++) // loop thru all open trades { if(OrderSelect(pos,SELECT_BY_POS, MODE_TRADES)) { if (OrderSymbol() == Symbol() && (OrderType() == OP_BUY || OrderType() == OP_SELL)) ...
How to check magic numbers of open positions
-
CodeMeister replied Jun 3, 2011Explanation — Making an index of companies is very complicated and I won't try to explain it here. The chosen companies are assigned a weighting within the index, so not all companies are equal. The companies not included are considered ...
Why does gold/usd have the symbol: XAU/USD?
-
CodeMeister replied Jun 2, 2011Index — X = index. A lot of ETFs are prefixed X on the stock markets. If I'm mistaken XAU is the symbol for the Philadephia Exchange Gold Sector index and not the price of gold itself, but a pretty good proxy because most gold companies track ...
Why does gold/usd have the symbol: XAU/USD?
-
CodeMeister replied Jun 2, 2011Try This — OrderSelect(iTicket, SELECT_BY_TICKET); is the most likely culprit. You need to put a Print (iTicket) before it to ensure it has a valid value. Also put a print statement after the OrderSend(). One thing I noticed about the code is ...
ticket number not working
-
CodeMeister replied Jun 2, 2011Entirely Different — I think I understand what you are saying. The EA will not close a trade when the conditions are met. Or do you mean the conditions are never met for some reason?
ticket number not working
-
CodeMeister replied Jun 2, 2011I was Wrong — From what you have said my theory is wrong, so we need to look for another one. This will not be easy. Are you sure the code works for closing the entire position?
ticket number not working
-
CodeMeister replied Jun 1, 2011Agree — You won't find them at market opens any more it seems unless you stretch the imagination. In fact trying this method has hurt my trading cause I am looking for it and missing the real move. I would say this is another strategy to toss ...
M&W-Trading
-
CodeMeister replied Jun 1, 2011Don't Do That — What started out as a very good thread has lately become something else where everybody seems to think they are more clever than the last guy. Complex and impractical do not equal cleverness. Stick to the advice of Zen and you ...
Step by Step Email Setup in MT4 (Gmail)
-
CodeMeister replied Jun 1, 2011Simple To Do — What started out as a very simple thing to do has evolved into this hideous thread where everybody seems to think they are more clever than the last guy. Complex and impractical do not equal cleverness. The best posting is 7Bit. ...
Email Setup in MT4 (Gmail) The Easiest Way
-
CodeMeister replied Jun 1, 2011Many Threads — There have been many, many threads on this subject. The best way to do it is a script that writes a CSV file.
Need help exporting mt4 data
-
CodeMeister replied Jun 1, 2011Try This — If you really, really need to have a multi-currency version, you could incorporate the Mouteki code into the EA (don't reference objects). But this is not a trivial task and I would still recommend writing it as a single currency EA ...
iCustom call for Mouteki indicator
-
CodeMeister replied May 31, 2011Wrong Track — It would help a lot to post a screen shot of what you are referring to. I happened to have played with TD trend lines but not Mouteki, so I can guess at what you after. First of all, the Mouteki indicator doesn't produce any ...
iCustom call for Mouteki indicator
-
CodeMeister replied May 31, 2011Explanation? — I think I know what is happening, but it doesn't fit the description provided. I believe the ticket number (iTicket) is fine after OrderSend() - but you need to check that. I also believe the first portion is closed fine using ...
ticket number not working
-
CodeMeister replied May 30, 2011MT5 — Once MT5 is available, your request will be quite easy to do. MQL5 has proper event handling which allows for timers and mouse handling in a robust manner. With MQL4, there is no such capability and what you have now is the best that can ...
Consistent Time to COB Indicator
-
CodeMeister replied May 30, 2011Be Wary — Some indicators won't work without DLL selected so the only choice you have is to not use them or be wary. There is a Forex Calendar indicator that is very popular on this forum. It requires a DLL to download the calendar from this ...
Is it possible for MT4 programmers to hack into other trader accounts
-
CodeMeister replied May 30, 2011Repainting — Again I did not attempt to view the code, so I am basing my answer on your observation, not what may be happening. The simplest method to see if your iCustom call is correct is to set an index for a bar that has closed, say the ...
iCustom returning Empty_val
-
CodeMeister replied May 29, 2011Wrong — The return value from the indicator has nothing to do with iCustom. iCustom reads values from the indicator buffers not the return value. The first thing to do is verify in the Data Window that the indicator is producing the expected ...
iCustom returning Empty_val
-
CodeMeister replied May 26, 2011Yes — I remember seeing this kind of EA in a posting in the past month. There were about a dozen EAs with various types of Stops included in the posting. I can't remember the subject of the posting to search for, but it was definitely in the ...
anybody know of an ea that places a stop at the previous swing high/low?
-
CodeMeister replied May 26, 2011Explanation — DLL = Dynamic Link Library. Think of it as a shared library which many programs can access to share common code. MT4 comes with some "include" libraries which can be included in the code of indicators but are not shared. DLLs are ...
Is it possible for MT4 programmers to hack into other trader accounts
-
CodeMeister replied May 26, 2011Maybe — Directly manipulating your MT4 account is impossible unless you gave someone your password and he would not need to do that through an indicator. If the indicator references an external DLL, it is possible to do almost anything on the ...
Is it possible for MT4 programmers to hack into other trader accounts