Note: I have not run the code, only looked at it briefly. However, ...
A) I don't like the line
if( ticks%50 != 0 ) {return(-1);}
I think that this means that the EA will only process every 50th tick
B) Then I don't understand how lines like
ExtMapBuffer1[i]=iMA(NULL, 0, FastEMA, 0, MODE_EMA, PRICE_CLOSE, i); ExtMapBuffer2[i]=iMA(NULL, 0, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, i);
can work as IIRC these buffers are not allocated (which they would be in a 'usual' indicator in the init() function)

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello everyone,
I have to ask you because I am tired of looking for a mistake in here. I have this code and have no idea why it is leaving the start () function after the big (main) for loop.
EDIT: And second thing is - even if (sometimes it happens) program gets through the for loop i get ordersend error
20:33:21 2011.02.09 00:37 Sidus_method_bot EURGBP,H1: OrderSend error 130
20:33:21 2011.02.09 00:37 Sidus_method_bot EURGBP,H1: Alert: SELL error(0): no error
because of this line :