Super Newbie questions

Ask your basic questions confidently here. Flaming is not allowed. Sympathetic help is the order of the day.
fxcba
Trader
Posts: 46
Joined: Wed Aug 21, 2013 10:10 pm

Re: Super Newbie questions

Post by fxcba »

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
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Re: Super Newbie questions

Post by milanese »

fxcba wrote: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
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
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
RedLineFred
Trader
Posts: 52
Joined: Wed May 01, 2013 6:15 am
Location: Brisbane, Australia

Re: Super Newbie questions

Post by RedLineFred »

fxcba wrote:Hello all
........."how to"
I know Ea consist on 3 parts first with "extern", second is "init" (here is where I'm lost), and "start"
..........best regards
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
fxcba
Trader
Posts: 46
Joined: Wed Aug 21, 2013 10:10 pm

Re: Super Newbie questions

Post by fxcba »

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
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Re: Super Newbie questions

Post by milanese »

fxcba wrote: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
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
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
fxcba
Trader
Posts: 46
Joined: Wed Aug 21, 2013 10:10 pm

Re: Super Newbie questions

Post by fxcba »

milanese wrote:
fxcba wrote: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
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
Grazie Tommaso
Hope this helps
Post Reply

Return to “EA's for Dummies.”