Im relatively new to this, but I have been trading manually on successive demo accounts with some success, and I would like to “go live” pretty soon.
I would like to program my strategy into an EA. partly because some of what I do is difficult to do manually and I think an automated system would do it better.
Problem is I have no idea about programming. I have looked at several tutorials and they mean nothing to me at all.
Does anyone know where I could get some friendly help to write this EA ? It is pretty simple.
Even if I could get my hands on some simple EA’s I could try hacking them, but the EA’s I have looked at have the same complex code.
There is no easy answer to learning a programing language…
I had the same problems as you when I first started with mql4 a couple of months ago, I have been working on it and studying the mql4 book several hours per day for the past 2 months I have almost completed my first EA so even though I still run into problems and errors a lot I am living proof it is possible to get from beginner to a working level in a reletively short time.
Programming tutorials are hard to understand for any beginner the only thing I can say is persevere with it, start with the simple examples and go over them and over them again until it starts to make sense.
I dont believe programming is for everyone, you need to be good with math and logical thinking, programming reminds me of a chess game sometimes, you need to be able to think several moves in advance and all the outcomes of those moves.
The mql4 book contains all the code for a complete EA that covers most eventualities if you can apply your strategy to it you can save yourself a lot of trouble by using its order accounting function, buy and sell and error handling functions, you will need to put time and effort into studying the language first though but the learning curve is pretty sharp once you get past that initial beginner, knowing nothing about it stage.
thought Id post this: my first foray into programming, and it works ! !
int init()
{
//----
Print("Company name is ",TerminalCompany());
Print("Terminal name is ",TerminalName());
Print("Working directory is ",TerminalPath());
int start=GetTickCount();
// some hard calculations…
Print("Calculation time is “, GetTickCount()-start, " milliseconds.”);
// PlaySound(“alert.wav”);
MessageBox(“This is function - TerminalCompany()”, TerminalCompany());
MessageBox(“This is function - TerminalName()”, TerminalName());
MessageBox(“This is function - TerminalPath()- too long for this box before I wrote this”, TerminalPath());
// PlaySound(“alert.wav”);
// PlaySound(“email.wav”);
// PlaySound(“tick.wav”);
//----The file must be located in the terminal_dir\sounds directory or in its subdirectory.
Comment(“The comment function is used to print to the screen”);
Sleep(2000);
Comment("The last day the server was running was the “, Day(), DayOfWeek(), " day of the week”);
Sleep(2000);
Alert("Close price coming ");
//Print("Account free margin is ");
//Print("Current time is ");
if(Day()<5) return(0);
return(0);
}
cant find the log where “print” is printing to, any ideas ?
looks like your getting the hang of it already keep at it you’ll get there, it prints in the experts tab in the mt4 terminal where it has account history, alerts, trade, news etc
if you change your Print lines to:
Hello everyone, please, i have two systems on my mind which i would like to have EAs for. Will any competent programmer here help me out? If you know someone who can help, please tell me. Thanks.