MQL4 and MetaTrader 4 - page 1298

To post a new topic, please log in or register
I use iTime(NULL,0,0) in my EA to print the current time of the current candle. It gives me number like this "1168434000", while on the chart the timereads 2007. 01.10 13:00 for the current candle. Is it possible to convert this number (output of iTime) to the same time formatmentioned above ?
  debuging DLLs (2)
Hello I developed an indicator in MQL language but at the end it was too slow. So i decidedto immigrate to C++ to gain beter speed(hopefully). I know this forum is dedicated to MQL, not c++, but I wish there were some referencesabout debugging dlls. when i define the terminal.exe as external...
Dollar and yen continue to retreat against European majors today in the [url=www.forexyard.com]forex[/url] market after last week's sharp rally. Germany trade surplus and current account surplus both widened more than expectedin November. what do you think about the trend?
Bonjour, Hi, Newbie here, I'd like to design an EA working with a custom indicator BUT i'd likeusing this Ind. on several UT. Eg: Using My Indic with iCustom (...MyIndic....) and getting results with UT M1, M5 & M15. Is there any solution to do that ? If I check how iCustom is designed: double...
Someone emailed me a history file of EURUSD 5m.  How to do I get this intoMT4 so that I can test my EA on this data?
When I am trying to close a trade, I am getting a common error and can't seem toclose the trade. I tried it many times but with no luck. What does common error mean? How do we get around this mess? See attached screen shots.
I have attempted to call the ZigZag custom indicator from my EA using iCustom, but no lines show. If this is possible, can the properties be changed - such as color, width, etc. If it is not possible, and the indicator is placed on the chart, does the codestill get executed twice - once for the...
When was run indicator (script or expert), once the program is started after receivedtick, does the MarketInfo function is making adittional requests (and every time) from server for every callof the MarketInfo(symbol,22) or other MarketInfo(symbol,nn) ?
The program goes well, but the logs have an alarming growth rate!
Hi All I use the screenshot() function in a number of my indicatos. In one indicator,the screenshot generates with blank contents some of the time! It shows the candlechart but all the indicator windows attached to the chart are blank. It only doesit about 50% of the time. Anyone ever encountered...
Dollar weekly analysis last week The dollar fell to the lowest level since March 2005, in the forex market. do you think it will rise to its maximum again in the next few weeks?
Hi, I use the 1 hour MetaTrader Heiken Ashi charts to trade Forex. Im looking for abit of code that will give me an audio alert when a bullish baris formed after a bearish bar and vice versa. Really hope you guys can help me,as this would be so useful. Thanks, John C
may i request OrderPips() function? i see your terminal has the profit column thathas "as point" style but none of this function in mq4 it would be muchbetter to have it ...instead of calculate it myself everytime i want ^_^
if want use the value of a Custom indicator in EA, use double iCustom(string symbol, int timeframe, string name, ..., int mode, int shift) if I want use it in an indicator, how to do ? some time there is a limit 7 buffer in one indicator file. so in an indicator file, if I need reference another...
Hi All , I'm trying to figure out why when I use some indicator like Support andResistance Barry's indicator in an EA , the strategy tester is unusable due toslowly. The EA is something like this : int start() { // Variables double Support,Resistance; // Import Support e Resistance from...
The descriptions of the drawing styles in the manual are not very helpful. Can someoneeither point me to a good reference or explain the various styles and how theyrelate to the related buffers? I am particularly interested in DRAW_SECTION. TIA
Default installations of MT4 contain a Commodity Channel Index indicator found in the built-in indicators section and a CCI indicator found inthe Custom Indicators section. As such, you can access the code for the CCI indicatorbut not the Commodity Channel Indicator. One would figure these two...
Hi, I would like to submit a request to allow you to modify the MagicNumber also whenyou make use of the OrderModify function. Regards Jimmy
Hi, firstly congratulation to a powerful trading platform. I would like to suggest a few improvements, and request. 1. User interface - I suggest changing docking windows/tabs to Navigation Pane.Like MS Outlook, more space, easier access and more controls can be displayed.MS outlook spends...
I'm currently running a EA that has several open trades.  I'd like to transferthe open trades and the EA to a new computer without having to close all of thetrades and re-initiate the positions on the new computer.  Is there anyeasy way to do this?
Hello, I need a program to color barchart in a different color for a different session @+ Golder
2006.08.13 21:42:27 2006.08.10 23:59 print accountnumber USDJPY,M5: AccountNumber16384 Why My AccountNumber 16384 always . FXDD How can I get the right AccountNumber from expert? //+------------------------------------------------------------------+ //| expert start function |...
Does someone can tell me how much bytes are needed and used from memory for ex.: static int ArrayIntegers[3];static double ArrayDoubles[3];static bool ArrayBools[3];static string ArrayStrings[3]; //* all with 2 characters after asign and ArrayResize ( Array... , 3 ) for all *// As for string and...
When we stop mouse to a point of indicator line, a popup small window will displayits name and current values. Then it is possible add a comment to a Object, and get a same effect.
  Need Help?? (1)
Hi, I am a complete non programmer type and don't know where to start with developinga simple EA I simply want to buy at the highest high of the last five days and trail this witha stop that is 2* the 20 day ATR the opposite for a short. Can anyone direct me to code samples or any help on this.....
I am trying to design my Expert Advisor to distinguish which server it is loggedinto. (We have some special accounts created with different parameters, such asthe spread, etc). My understanding is these accounts are on a different server( Login 9002323 password: P4334 server: 207.38.2.84 ) I'd like...
Why does the MCAD indicator on MetaTrader 4 only have one line and one bar graph. Other MCAD have 2 lines? Is there a setup parameter I am missing. Sorry if this an obvious answer.
  Terminator v2.0 (561   1 2 3 4 5 ... 56 57)
Here it is guys. Check out the ReadMe file thoroughly. I've been using the H1 chart. Updates will be posted here so they are not dispersed throughout the thread. If a zip file has a low number of views, it's due to a recent update, if only in the readme file. Enjoy, Tom
have problem, have expert that run on normal account perfect but doesn't want toexicute orders on mini account. we checked everything lot sizes magic numbers, i dont think it is in the code,it runs on fxdd mini account, have anybody got idea what the problem may be