Jump to content

Recommended Posts

Posted (edited)

been trying to back test, doesn't seem to work........ any ideas?

Β 

Are there any set files for it?

Β 

IT trades multiple currencies, DO YOU ATTACH TO ONE CHART, or to individual charts for each pair?

Edited by lifebeam
Posted (edited)
54th viewer had come !! :)

http://www.multiupload.com/IDQ9NJTGVJ

Β 

You are my man ;-) Thx.=D>

Β 

What does the "zero divide" message mean on BT???

Edited by pro
Posted (edited)

this is what I found by googleing regards the zero divide error:

Β 

"Zero divide error is exclusively a coding error. Metatrader does not provide a trap (or rather, that message is the trap, and since by definition divide by zero yields to undefined, they chose the terminate the code execution in such cases) for such errors, so if not dealt with within the code it will happen, sooner or later "

Β 

"Find in the code every occurrence of division and add before every division a zero condition checking

Something like this :

Β 

if (divisor!=0)

result = dividend/divisor;

else result = 0; // or whatever result you prefer here since the result

// of division by 0 by definition is undefined

Β 

............................

Β 

Coding gurus, plz jump in

Edited by pro
Posted
Probably the 0 divide is because you need to right click on the Market Watch window and choose Show All, or perhaps the EA is checking a missing currency or does not have any history for some.

Β 

Are u able to backtest this EA?????

Posted
backtest failed maybe because there is no value for MarketInfo(a_symbol_0, MODE_POINT) as market is closed over the weekend...maybe we can try to run the backtest on coming Mon when market is open...just my two cents...
Posted
backtest failed maybe because there is no value for MarketInfo(a_symbol_0, MODE_POINT) as market is closed over the weekend...maybe we can try to run the backtest on coming Mon when market is open...just my two cents...

Β 

Market is open, backtest doesnt work

Posted
this is what I found by googleing regards the zero divide error:

Β 

"Zero divide error is exclusively a coding error. Metatrader does not provide a trap (or rather, that message is the trap, and since by definition divide by zero yields to undefined, they chose the terminate the code execution in such cases) for such errors, so if not dealt with within the code it will happen, sooner or later "

Β 

"Find in the code every occurrence of division and add before every division a zero condition checking

Something like this :

Β 

if (divisor!=0)

result = dividend/divisor;

else result = 0; // or whatever result you prefer here since the result

// of division by 0 by definition is undefined

Β 

............................

Β 

Coding gurus, plz jump in

Β 

Β 

Β 

Can one of the blessed coders here plz take a closer look at this issue and fix this baby. Thx.

  • 4 weeks later...
Guest Jayman007
Posted
The solution is to deselect the pairs you are not back testing in the settings.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...