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

Dibs method auto trading robot by Steve Hopwood MOD
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=462
Page 6 of 8
Author:  Dennis4x [ Thu Apr 19, 2012 2:39 pm ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

There is only one reason why it's on the screen.
StopTrading was set to true. Should be false.
Author:  Dennis4x [ Thu Apr 19, 2012 2:47 pm ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

I think this is what happened. You edited the .mq4 file while the EA was turned on. This is a bad idea as the EA will revert to default settings without you realizing it. You will find your lots, and other settings reset to the default by the EA. ;)
Next time, close the EA before you compile and then open it again after. :)
Author:  fx800 [ Thu Apr 19, 2012 2:59 pm ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

Dennis4x wrote:I think this is what happened. You edited the .mq4 file while the EA was turned on. This is a bad idea as the EA will revert to default settings without you realizing it. You will find your lots, and other settings reset to the default by the EA. ;)
Next time, close the EA before you compile and then open it again after. :)
Dennis4x

You are absolutely right. I wonder how I didn't spot it. I went through the ea input several times last night looking for some silly mistakes like that when Jjgengis PM me asking if my ea was trading.

I shall correct the ea input and UPDATE IN POST 1.

Thank you very much again for your help.

Regards
Peter.
Author:  Dennis4x [ Thu Apr 19, 2012 3:16 pm ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

Hi Peter,
You don't have to correct the MQ4 file. It should be set to true in your MQ4 file, but set to false in your settings. Otherwise, it will not be able to catch your EA when it accidentally reverted its settings.
This may not be easy to understand but once you have this happen to you a couple of times, a light bulb will be turned on. ;)
Author:  fx800 [ Thu Apr 19, 2012 3:32 pm ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

Dennis4x wrote:Hi Peter,
You don't have to correct the MQ4 file. It should be set to true in your MQ4 file, but set to false in your settings. Otherwise, it will not be able to catch your EA when it accidentally reverted its settings.
This may not be easy to understand but once you have this happen to you a couple of times, a light bulb will be turned on. ;)

Hi Dennis4x

I have just set the stop trading to false and compiled it, like many other ea's in the forum. Many people will just load the ea onto the charts and missed the stop trading input and then wondered why the ea is not trading. I have come across it in the FF in the past.

I haven't changed the code.

Regards
Peter
Author:  SteveHopwood [ Thu Apr 19, 2012 10:14 pm ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

Ehup Guys.

Sorry I was a bit grumpy the other night. Great to see you helping each other out.

I have moved this thread to the Automated section, so it does not get buried in the Dummies section. fx800, if you object, then I can move it back again.

:D
Author:  fx800 [ Thu Apr 19, 2012 11:55 pm ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

SteveHopwood wrote:Ehup Guys.

Sorry I was a bit grumpy the other night. Great to see you helping each other out.

I have moved this thread to the Automated section, so it does not get buried in the Dummies section. fx800, if you object, then I can move it back again.

:D

No apology needed, Steve. I trust in your judgement that by moving it to the Automatic trading section would help to improve participation by other members and thus help to improve this ea further.

This bot has a sound trading logic and I can see no reason why we can't make it to trade profitably.

Besides, Dennis4x has very kindly offered his expertise and I sincerely hope other members would chip in too.

Peter
Author:  fx800 [ Fri Apr 20, 2012 12:03 am ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

On another matter, since changing the stop trading input to false yesterday evening, the ea has sent one pending order on H4 TF.

There has been no trade setups for the H1 demo, so I am waiting to see if any po when there is one.

Peter
Author:  fx800 [ Fri Apr 20, 2012 12:11 am ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

Hi Dennis4x

I just received a PM from Jjgengis regarding a coding error in his suggested fix earlier :

I found an error on my modify.....
Say 0.0002 or 20*points isn't the same thing. Because on pairs with jpy , you never have 4 decimal numbers.

So, the modify is this:

at the end of "-Trade management module-" put this row:
CODE: SELECT ALL
extern int AvoidStopLevel=2;



At the and of the list of variablexxxx *= multiplier you put this row:
CODE: SELECT ALL
AvoidStopLevel*= multiplier;



and in place of 0.0002 you put: AvoidStopLevel * Point

Would you be kind enough to cast an eye on the above amendment before I incorporate it into the ea in post 1.

Thanks.

Peter

P.S. I am leaving any offer of code fixes in your safe pair of hands unless they are from regular contributors in Steve’s forum because I do not wish to inadvertently introduce bugs into the ea.
Author:  fx800 [ Fri Apr 20, 2012 1:07 am ]
Post subject:  Re: Dibs method auto trading robot by Steve Hopwood MOD

Post deleted.
All times are UTC Page 6 of 8