MQL4 and MetaTrader 4 - page 1165

To post a new topic, please log in or register
Hello, What's the "Magic Number" when building an EA? Thanks
I tried to use ErrorDescription(GetLastError()) to get the error message, but the programme couldn't be complied successfully and it said "function is defined". So how can I get that? Thanks for help.
Does anyone have a copy of the breakoutma EA that use to be in the codebase? Or better still does anyone knows who the author was? Ed
When I code a multi currency pairs EA. Do I need to apply it to all the currency pairs' chart? I only applied it to EURUSD, when the OrderSend() call the Bid, it should open EURJPY, but the Bid send to the OrderSend is EURUSD's Bid. What should I do with it? Thanks.
  Running Live (6)
Please teach me How can I run EA live. I have been testing with History Data testing my EA.
Hello i have never seen an indicator that use another indicator, attached, to show the candle value of the open price to the high "above the candle" and the open price to the low "below the candle", and i want to simplify researching this heiken ashi indicator but what needs to be is what the candle...
fftremblay
Hi, I want my EA to perform the same task (looking on Internet for a file) at the same moment every hour (XXH with 59MN for example). My problem is that my EA works on H1 time frame so 59MN doesn't exist if I use the information from the chart. Until now, all my attempts to use server time were...
I like this indicator a lot. It is similar to one that I have tried to write for Trade Station's easy language. How do i get in touch with the author? Thanks. Al
can someone tell me why this ea refuses to work i built it the the strategy builder at: http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/ but i try to back test it and i get a slue of problems.
Hello. I've searched for previous threads about an auto-restart function in MT4. If the platform is closed because of an operating system reboot, does MT4 have the ability to automatically restart when the operating system restarts? I ask because I'm running MT4 on a remote server, and if the server...
Hello, I want to just print simple ZigZag previous High and Low values from shift 0 to 5 But I get zeros for (int i = 0 ; i<=5;i++){ Print(iCustom(Symbol(),Period(),"ZigZag",12,5,3, MODE_HIGH, i)); Print(iCustom(Symbol(),Period(),"ZigZag",12,5,3, MODE_LOW, i)); } Can Any body help me Im getting...
I'm building a Position Sizing calculator as a function based on the "Kelly Formula" (Win Rate-((1-Win Rate)/(Avg Win/Avg Loss) I've got the over all code and calculations working with manual inputs(extern) for the required variables and am now trying to get thefunction working dynamically by...
Hello, I'm trying to apply some modification to a old .mq4 file but when I save it it's not possible : access denied ???? It is also not handy to do some backup, when you look into the expert file the .mq4 files are no more there??? (They are there in fact but invisible with windows Vista.) If you...
MT4 FXT head version is 405? who know about infomation? thanks!
This is the error msg i get after compiling without errors. and then trying to run the program. The compiled file does not exist in the experts folder, and after searching for it, it appears not to exist on any part of my HD. Does the same thing on two seperate computers. 2008.11.08 18:40:25 Cannot...
Firstl, please forgive my English ! I download the IdleLib.dll in test, However, no information, Do not use this library has it? Please give me Help! Thanks ! I tested the code is as follows: //+------------------------------------------------------------------+ //| myTest.mq4 | //| Copyright...
After loading the Custom Indicator from such sites as ForexFactory, Forex-tsd, and even MQL4, into the FXDD-MetaTrader4/experts/indicators file, and then highlighting the Indicator in Navigator and then right-clicking on the message: Attach to a chart, nothing happens. I have recently reinstalled...
Friends, Wanted information from its brokerage: START FOREX (www.startforex.com) How can I tell if a broker is serious? I told her very well, but not much know a little more! thank all!
looking for anyone who has written DLL in Python specifically for MQL4 am just installing Python 2.6 release final, from (python.org) via python-2.6.msi . some sample Python and MQL4 or? would be great thanks
hi i need this expert advisors this how i want it work : when simple MA 50 crossabove simple MA 100 and after the and 1 hours close after the cross take it long and the same way in short farme 1 Hour please help me with this
  attach image (1)
i need to attach chart to email. by using sendMail command. i am using WindowScreenShot to get the cahrt as image saved in my pc the question is how to send image by mail. Thanks
hi Barrow boy, I would be most grate full if you can help me with the code below.i have written some line but am not experienced in progamming,I would be most happy if you can help me look at it and correct any mistakes. As can been seen in the code below(I hope it is clear enough).the idea is based...
I have an idea for a script, but I'm not that good at programming... (I'm working on an EA but it's slow going.) I thought I'd put this out to everyone since many people would find this helpful. Here's the idea: You have a trade already open and "in the money" a bit. You're expecting the trend to...
Elite E Services develops automated systems and we need MQL programmers. Please send your CVs and EAs (as samples) to elite@airpost.net or message us on mql4.com We do have programmers but we need more, and also we are building a testing team so anyone who is interested in testing and documentation...
Can someone direct me to an example of how to code for server time? I wish to limit indicator signals between a start and stop time on a server. The user would enter the GMT+ or - value for the server and the code would determine the time range to activate signals. I found this function in the docs...
I'm programming an indicator to determine the highest high in the past 5 bars. This code just plots a straight line across the chart and I can't figure out why. See comments in start() for more info. #property indicator_chart_window#property indicator_buffers 1#property indicator_color1 Blue double...
Why dosent this work OfWeek(TimeToStr(1200000000,TIME_DATE))? invalid integer number as parameter 1 for TimeToNumber function I want to work out what day of the week a time falls on Thanks Steve
How can I add a carriage return in something like: ObjectSetText("Right_Status", "some text string", 10, "Verdana", White); I've already tried using \n and that does not seem to work. Do I need to add another, new, object or is there a better way?
  My ea... (7)
My ea working fine in demo account. I think of trying him also in real account...
Hello, I have been trading stocks for some years and I am now starting with Forex. For now I am using a demo account and I have a few questions: 1. What is the most common chart time frame used: 5 min, 15 min, 30 min, 1 hour, ... I tend to use the 30 minutes one ... 2. I know that I should be...