Jump to content

⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

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.
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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

×
×
  • Create New...