Hi fellow coders,
Just like to share a link which I found very useful lately. It's over in FF where broketrader started a thread to teach the basic concepts of the new OOP concept now implemented in MQ4 build 600+.
IMO, his lessons are easy to understand, starting with a simple MA, then extending it with a crossing arrow. Coding a renko indicator is a bit more difficult and a good choice to build up more knowledge and getting used to the idea.
http://www.forexfactory.com/showthread.php?t=473578
Cheers, Jürgen
Migration to 'new' MQL4
- simplex
- Trader
- Posts: 127
- Joined: Thu Feb 07, 2013 5:21 pm
- Location: An insignificant small town close to an insignificant former capital at the Rhine River.
Migration to 'new' MQL4
If you can't explain it simply, you don't understand it well enough. (Albert Einstein)
It appears that the Weighted Moving Average was invented by a trader who did not have a firm grasp of filter theory in hopes of reducing lag. (John F. Ehlers)
It appears that the Weighted Moving Average was invented by a trader who did not have a firm grasp of filter theory in hopes of reducing lag. (John F. Ehlers)
- SpiderX
- Trader
- Posts: 554
- Joined: Thu Aug 22, 2013 4:50 pm
Migration to 'new' MQL4
Cool Stuff,
Thanks for sharing !
Cheers
Thanks for sharing !
Cheers
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
-Corinthians 13:4-8
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Migration to 'new' MQL4
Hehe. Re this:
Actually, I doubt it. Proper Coders can read anything.

Just about the first thing I do with any piece of code sent to me is convert it from what he recommends to what he says to avoid - which I find readable. Must drive the Proper Coders here nuts.2 Curly braces :
Place the curly braces on the same line as the opening statement.
Recommended:
Inserted Code
if( a < 10 ) {
b++;
}
Avoid :
Inserted Code
if( a < 10 )
{
b++;
}
Actually, I doubt it. Proper Coders can read anything.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
- Baluda
- Trader
- Posts: 330
- Joined: Mon Feb 06, 2012 2:00 pm
- Location: An insignificant village in the Netherlands
Migration to 'new' MQL4
Check the MQL4 Market for my best EA's and Indicators.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Migration to 'new' MQL4
Wonderful. I have written lots of Hydra Code.Baluda » Mon Nov 10, 2014 7:20 pm wrote:Finally!
The eternal K&R a.k.a. Egyptian Brackets debate.
Go here for more info.
Paul
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
- simplex
- Trader
- Posts: 127
- Joined: Thu Feb 07, 2013 5:21 pm
- Location: An insignificant small town close to an insignificant former capital at the Rhine River.
Migration to 'new' MQL4
Great link - love it!Baluda » 10 Nov 2014, 21:20 wrote:The eternal K&R a.k.a. Egyptian Brackets debate.
Go here for more info.
Paul
Jürgen
If you can't explain it simply, you don't understand it well enough. (Albert Einstein)
It appears that the Weighted Moving Average was invented by a trader who did not have a firm grasp of filter theory in hopes of reducing lag. (John F. Ehlers)
It appears that the Weighted Moving Average was invented by a trader who did not have a firm grasp of filter theory in hopes of reducing lag. (John F. Ehlers)
- simplex
- Trader
- Posts: 127
- Joined: Thu Feb 07, 2013 5:21 pm
- Location: An insignificant small town close to an insignificant former capital at the Rhine River.
Migration to 'new' MQL4
Hehe!SteveHopwood » 10 Nov 2014, 20:33 wrote:Hehe. Re this:
Just about the first thing I do with any piece of code sent to me is convert it from what he recommends to what he says to avoid - which I find readable. Must drive the Proper Coders here nuts.![]()
First thing I do with most of the code I download before making a decision to use it or not is let my formatting script off the leash to do a bit more to enhance readability than only shifting curly braces to the opening line!
Sorry, I can't - that's for sure! So I'm no proper coder? Allright, I can take that.SteveHopwood » 10 Nov 2014, 20:33 wrote:Actually, I doubt it. Proper Coders can read anything.
I'm working to improve my skills and I'm using tools (see above) to assist me in this process.
But back to business: the thread I mentioned is about much more than the placement of braces. IMO, it's just a recommended reading for any MQL coder who is not yet into the OOP concept (like myself), but is interested (like myself) to start using the new opportunities MQ4 offers now.
BTW: if anybody knows about more resources to support the shift from old style MQL to OOP concepts I'd be happy to receive a link.
Cheers, Jürgen
If you can't explain it simply, you don't understand it well enough. (Albert Einstein)
It appears that the Weighted Moving Average was invented by a trader who did not have a firm grasp of filter theory in hopes of reducing lag. (John F. Ehlers)
It appears that the Weighted Moving Average was invented by a trader who did not have a firm grasp of filter theory in hopes of reducing lag. (John F. Ehlers)
-
xray2
- Posts: 9
- Joined: Tue Dec 08, 2015 3:19 am
Migration to 'new' MQL4
Thanks Jurgen,
I know this thread is nearly 2-years old, but the info is new to me.
This appears to be exactly what i might need as I have a similar problem atm.
Cheers
I know this thread is nearly 2-years old, but the info is new to me.
This appears to be exactly what i might need as I have a similar problem atm.
Cheers