stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Some help for a newbie
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=1527
Page 2 of 2
Author:  SteveHopwood [ Sun Mar 03, 2013 11:54 pm ]
Post subject:  Re: Some help for a newbie

Nufty wrote:Steves shell code was far too advanced for me
Some encouragement, although I am not going to get involved with sorting out your problems. I had coded about 300 ea's and started my own forum before I started to gain help from some of the most brilliant coders around. Mind, you might want to take more notice of my shell and spend some time figuring out how it works. It has some huge disadvantages but the good stuff is largely the result of the influence of said Brilliant Coders.

7 years ago, I had not even heard of Forex. I was hooked via the usual sucker routes. Happily for me, I have been interested in coding ever since I bought my first pc in 1984.

The rest, as they say, is history. Gradually. After much pain and suffering.

Hang on in there. Keep hacking the code. Eventually, you too will become someone the 'real coders' (not me - I am still hacking) will become interested in helping.

It does happen, I promise.

:D
Author:  Nufty [ Mon Mar 04, 2013 5:02 am ]
Post subject:  Re: Some help for a newbie

SteveHopwood wrote:
Nufty wrote:Steves shell code was far too advanced for me
Some encouragement, although I am not going to get involved with sorting out your problems. I had coded about 300 ea's and started my own forum before I started to gain help from some of the most brilliant coders around. Mind, you might want to take more notice of my shell and spend some time figuring out how it works. It has some huge disadvantages but the good stuff is largely the result of the influence of said Brilliant Coders.

7 years ago, I had not even heard of Forex. I was hooked via the usual sucker routes. Happily for me, I have been interested in coding ever since I bought my first pc in 1984.

The rest, as they say, is history. Gradually. After much pain and suffering.

Hang on in there. Keep hacking the code. Eventually, you too will become someone the 'real coders' (not me - I am still hacking) will become interested in helping.

It does happen, I promise.

:D
Thanks for the encouragement Steve - I will get back to your code once I get the EA I am working on completed

Its so simple its stupid :)

I have now finished it and it compiled and ran.

Which I was excited about.

I am now just changing the rules to see if I can make it profitable

If ... and I say If I do - I will share it here

Cheers and thanks for the forum

Nufty
Author:  Nufty [ Mon Mar 04, 2013 5:04 am ]
Post subject:  Re: Some help for a newbie

mjws00 wrote:Sorry man, here is the code. No need to look things up. Just this line: void DisplayUserFeedback() context around it so you can see where.

Code: Select all

//Code Snippet from Steve Hopwoods shell EA code - Thanks Steve
void DisplayUserFeedback()
{
   if (IsTesting() && !IsVisualMode()) return;
Thanks mjws00 - I will get back to this now

I didnt find any solutions to it - although when I moved the code to the initialisation section of the EA it did pass compilation

Dont even want to know why :)
Author:  Nufty [ Mon Mar 04, 2013 5:06 am ]
Post subject:  Re: Some help for a newbie

NeoTrader wrote:hi nufty,
Nufty wrote:I am searching the mql4 site now to assist me with defining it
This function is present in almost all of Steve's EAs. Just copy and paste it from there and adapt it to your needs. Alternatively if you don't want or need this function just comment it out (//).

happy weekend,

Robert

-
Funny - I did that

But thats why I am called Nufty

Code: Select all

http://www.urbandictionary.com/define.php?term=nufty
Number 2 suits me down to the ground!!!
Author:  Nufty [ Wed Mar 06, 2013 10:41 am ]
Post subject:  Re: Some help for a newbie

As I mentioned earlier - I have attached the EA which I have been working on.

I stumbled on the idea when working on a Bollinger Band reversion to the mean strategy - I noticed how the price would tend to move back to the mid line - but overshoot it.

I decided I would have a go at coding an EA around this cross - it was meant to be a scalper - but it actually works better for the longer time frames with higher pip take profits.

Feel free to have a look and a test

And of course offer any changes or comments

Cheers

Nufty

(Off to have a go at Steves Shell code for Number 2 EA!!
All times are UTC Page 2 of 2