- Search Energy EXCH
-
CodeMeister replied Mar 17, 2011Not Easy — The DDE interface to Excel provides the raw tick data. As you state the high and open values are for the day. Anything else like weekly, monthly values need to be captured programmaticly. You could try to it with VBA in Excel, but I ...
Excel Help
-
CodeMeister replied Mar 17, 2011Try This — There have been a number of recent threads about trade copier software in this forum. Should be easy to find - within the last month.
Open position in the same time but different broker
-
CodeMeister replied Mar 17, 2011A Long Way to Go — From the code you have posted, you have a long way to go. Let me give you a few pointers. 1. Never do an equality comparison between price and another variable such as you have done (Ask==HighLineValue). This will work - ...
(MT4) Partial Close in an EA
-
CodeMeister replied Mar 17, 2011Confirm — I cannot understand why anyone would want to code for any other time than the broker's time. I guess it has something to do with being able to relate all bars for all brokers to some common time so that trades can be compared. That ...
Is Market Watch time the definitive broker time as used by EAs?
-
CodeMeister replied Mar 13, 2011WOT — If its a good EA builder, it should be capable of doing something this simple. In fact it should know in advance that's what you want and provide it.
These things are generally a waste of time. Only a person can write ...Expert Advisor Builder
-
CodeMeister replied Mar 10, 2011Won't — I have no intentions of looking at somebody's "special" configuration.
help for script to put limit order inside the spread
-
CodeMeister replied Mar 10, 2011Cannot Do — Can't be done - the rules are the same as manual orders. Limit and stop orders have to be a certain gap from the bid/ask. There are plenty of scripts that will do that.
help for script to put limit order inside the spread
-
CodeMeister replied Mar 9, 2011eMail Solicitation — I just received the following from a law firm in Orlando. Curious to know how they obtained my email. I don't think the laws of Canada allow me to participate in an American class action suit. ----------------- The ...
Class Action Lawsuit Against FXCM
-
CodeMeister replied Mar 8, 2011You Will Get Used To It — Go to Visual mode and try a different date range. Very often recent data (less than 3 days old) is not available. Data older than 2 months is usually not available either. If that doesn't work, try different ...
Backtesting in MT4
-
CodeMeister replied Mar 4, 2011A Few Thoughts — Your code is trying to select the latest trade, but you specified the ticket option, not the position option. OrderSelect(i, SELECT_BY_TICKET,MODE_HISTORY); I'm not sure why this clause is required. If you selected the right ...
Guide me in learning MQL coding
-
CodeMeister replied Mar 3, 2011Try This — I am assuming that your EA is as simple as possible. If not, there are too many possibilities for me to answer. Once the order is opened, you should keep track of its ticket number, which is returned by the OrderSend() function. I ...
Guide me in learning MQL coding
-
CodeMeister replied Mar 2, 2011Try This — The code you posted is much too cryptic for me. So I will provide an example from my own and hope you apply to it to yours. I want to calculate the slope of the MA and compare it to the slope several bars back to see if it has ...
Zero Divide error? Where do I need to look to fix it?
-
CodeMeister replied Mar 2, 2011Simple Fix — There is a simple way to fix this kind of error and a difficult way to fix it. Your approach is the difficult way and won't necessarily eliminate all possible errors of this kind. The simple way to fix this is to look at every ...
Zero Divide error? Where do I need to look to fix it?
-
CodeMeister replied Mar 2, 2011No Problem — That is possible. I have done that with my FXDD demo and live platforms. Put them in different directories like FXDD1 and FXDD2.
Installing two - similar MT4 platforms on one PC
-
CodeMeister replied Feb 28, 2011Not Easy — I understand better what you trying to do. But I have to re-iterate what I posted before. I have not written such a program as you describe. It would be easier to do if you had one "basket" or if you had a known number of baskets ...
how do you group a bunch of open orders?
-
CodeMeister replied Feb 27, 2011Not Easy — I have never done what you are suggesting to do, but it seems difficult because of MT4s restrictions. I am not saying it is impossible, but be prepared for lots of testing. One of the problems I can see is that with 5 digits, 2 ...
how do you group a bunch of open orders?
-
CodeMeister replied Feb 26, 2011Install New MT4 — I upgraded my PC last summer and didn't have any problems. I re-installed MT4 from my broker's website. The only files I copied from the old PC were my source code and sounds files. I don't think copying is the same as ...
Mt4 MetaEditor - Could not launch the compiler?
-
CodeMeister replied Feb 26, 2011Don't Do That — You can select by Magic Number in an "if" statement similar to the example I provided. But I would not store the results in an array. Trying to maintain the array to accurately reflect open trades is going to be a lot of ...
how do you group a bunch of open orders?
-
CodeMeister replied Feb 26, 2011Cannot Do — You cannot sort (or group) trades by your chosen criteria. The MT4 sorting is by time and that is what your code is handling. If you wanted to separate the logic for buy and sell orders you could put 2 "if" statements inside the ...
how do you group a bunch of open orders?