Search found 3 matches

by jimhook_uk1
Tue Oct 22, 2019 8:26 pm
Forum: General Discussion
Topic: Critical Error EA (zero divide)
Replies: 5
Views: 14787

Re: Critical Error EA (zero divide)

Hi,
I'm still not sure why I am getting the error, below are lines 113 and 114 of the EA

double ma1_0=iMA(NULL,0,MA_Period,MA_Shift,MA_Method,MA_ApplyTo,0);
double price_ratio=Bid/ma1_0;


Any ideas?

Thanks
Jim
by jimhook_uk1
Mon Oct 21, 2019 3:59 pm
Forum: General Discussion
Topic: Critical Error EA (zero divide)
Replies: 5
Views: 14787

Re: Critical Error EA (zero divide)

Hi
Thanks for the reply I should point out that until yesterday I was able to run Tickstory with this EA, I have downloaded last 5 years data and I selected a 12 month period within that data set to run the back test.

Jim
by jimhook_uk1
Sun Oct 20, 2019 6:38 pm
Forum: General Discussion
Topic: Critical Error EA (zero divide)
Replies: 5
Views: 14787

Critical Error EA (zero divide)

Hi All, I've been trying to backtest my EA with TickStory but the backtest last about 1msec and the journal reports the following error: 2015.01.01 22:00:01 jim_h smadistance 1.00 EURNZD,Daily: zero divide in 'jim_h smadistance 1.00.mq4' (114,27) 2015.01.01 22:01:27 jim_h smadistance 1.00 GBPJPY,Dai...