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

Scalp the Little Gits, dsu
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3695
Page 7 of 33
Author:  remix919 [ Tue Jun 24, 2014 6:37 pm ]
Post subject:  Scalp the Little Gits, dsu

on the dsu by steve, no errors, but not working properly, on the dsu 3a, I also get the zero divide error.

** edit, restarted my machine and Empty4, getting zero divide on both versions now.
Author:  nonlinear [ Tue Jun 24, 2014 6:45 pm ]
Post subject:  Scalp the Little Gits, dsu

I get the zero divide and display problem with both versions.
Author:  SteveHopwood [ Tue Jun 24, 2014 6:52 pm ]
Post subject:  Scalp the Little Gits, dsu

nonlinear » Tue Jun 24, 2014 6:45 pm wrote:I get the zero divide and display problem with both versions.
You will do. They are the same ea.

I am looking into this, but it is a bugger to find divide by zero errors when they are not appearing on my machine.

:xm:
Author:  nonlinear [ Tue Jun 24, 2014 6:59 pm ]
Post subject:  Scalp the Little Gits, dsu

The errors (display and zero divide) do not appear with Version 3, which was posted earlier in the thread. So it looks like the change from V 3 to 3a caused the errors (hope that helps).
Author:  remix919 [ Tue Jun 24, 2014 7:00 pm ]
Post subject:  Scalp the Little Gits, dsu

SteveHopwood » Tue Jun 24, 2014 1:52 pm wrote:
nonlinear » Tue Jun 24, 2014 6:45 pm wrote:I get the zero divide and display problem with both versions.
You will do. They are the same ea.

I am looking into this, but it is a bugger to find divide by zero errors when they are not appearing on my machine.

:xm:
I can give you remote access to my dedicated Empty4 EA demo machine if you want =D
Author:  SteveHopwood [ Tue Jun 24, 2014 7:22 pm ]
Post subject:  Scalp the Little Gits, dsu

Those of you getting the zero divide error, please download the latest version from post 1 and see if the errors still appear.

If they do, please drop the attached script into your Scripts folder and run it on a few charts. You are looking for an alert that shows zero value. For example, 5 Digit charts: JPY pairs value shown should be 0.001 not 0.000; other pairs value shown should be 0.00001 not 0.00000.

Let me know if you see any zero values.

:xm:
Author:  nonlinear [ Tue Jun 24, 2014 7:31 pm ]
Post subject:  Scalp the Little Gits, dsu

Hi Steve, I ran the script on a few pairs and everything looks correct on pip values, so that does not appear to be the issue.

Looks like the error developed when dsu removed the spread filter in the original version of the EA.
Author:  remix919 [ Tue Jun 24, 2014 7:39 pm ]
Post subject:  Scalp the Little Gits, dsu

I also ran it and get 0.001. I also re-downloaded the file in post 1 and still have the zero divide error.

2014.06.24 15:39:52.971 zero divide in 'Scalp the Little Gits%2C dsu.mq4' (3457,50)

Does the (3457,50) mean something? maybe line number or area in the code where it's having issues?

Line 3457: ProfitPercentToday = (AllAccountProfitToday / StartBalance) * 100;

not sure what the 50 part means?
Author:  SteveHopwood [ Tue Jun 24, 2014 8:01 pm ]
Post subject:  Scalp the Little Gits, dsu

remix919 » Tue Jun 24, 2014 7:39 pm wrote:I also ran it and get 0.001. I also re-downloaded the file in post 1 and still have the zero divide error.

2014.06.24 15:39:52.971 zero divide in 'Scalp the Little Gits%2C dsu.mq4' (3457,50)

Does the (3457,50) mean something? maybe line number or area in the code where it's having issues?

Line 3457: ProfitPercentToday = (AllAccountProfitToday / StartBalance) * 100;

not sure what the 50 part means?
I was looking at that and wondering if StartBalance could = zero.

Try the attached V 1d. I will make it the post 1 version if it fixes the problem.

:xm:
Author:  remix919 [ Tue Jun 24, 2014 8:05 pm ]
Post subject:  Scalp the Little Gits, dsu

Looks like it's working so far, I'm waiting for it to finish calculating the average spread
All times are UTC Page 7 of 33