| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Super Newbie questions https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=930 |
Page 2 of 2 |
| Author: | fxcba [ Tue Nov 05, 2013 8:51 pm ] |
| Post subject: | Re: Super Newbie questions |
Hello all I'm live trader, and totally ignorant on Empty4 programming, nevertheless, I've managed to modify some indicators, with this "success" I've faced the task of making my own EA. I need a guideline on "how to" I know Ea consist on 3 parts first with "extern", second is "init" (here is where I'm lost), and "start" I've made an ea, compiled with no errors but in live chart shows a frown face, my question are why the frown face? what Empty4 needs to recognize an ea? and what goes on init? I'll apreciate any hint best regards |
|
| Author: | milanese [ Tue Nov 05, 2013 9:47 pm ] |
| Post subject: | Re: Super Newbie questions |
Hello and welcome on board Maybe you should read this http://www.stevehopwoodforex.com/phpBB3 ... ?f=11&t=26, it could be the reason for the "frustated" face .. Cheers Tommaso |
|
| Author: | RedLineFred [ Wed Nov 06, 2013 3:03 am ] |
| Post subject: | Re: Super Newbie questions |
You have over simplified the situation - an EA contains many parts and sections, subroutines and other sections of code. Suggest you continue your coding journey with a trip to http://docs.mql4.com/ where all will be revealed. Specifically the "extern" you refer to is not really a part but rather a reference to how the variable is used by the EA. extern = external and is used when the variable is to be made available to the user who can change the value when loading the EA. "init()" defines a subroutine within the EA that is run once to initialise the EA. Any code here will be executed and then control of the program is passed to "start()". Hope this helps. cheers Fred |
|
| Author: | fxcba [ Wed Nov 06, 2013 11:56 am ] |
| Post subject: | Re: Super Newbie questions |
Good morning Milanese, thank you, I didn't realize that, now face is similing. RedLineFred: thank you too, that's kind of explanation I was looking for, I read mql page already but still is hard to understand, that's why I'm looking for something more common man oriented. Cheers Ric |
|
| Author: | milanese [ Wed Nov 06, 2013 12:04 pm ] |
| Post subject: | Re: Super Newbie questions |
Hi Ric, too, you can take a look in this thread http://www.stevehopwoodforex.com/phpBB3 ... f=50&t=301 maybe what you find there will be usefull for you. Cheers Tommaso |
|
| Author: | fxcba [ Thu Nov 07, 2013 12:54 pm ] |
| Post subject: | Re: Super Newbie questions |
Grazie Tommaso Hope this helps |
|
| All times are UTC | Page 2 of 2 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|