Help me write an EA, thanks in advance - page 15

 
))))Come on - it's just that...prose))))) It used to be hard on the old computer too
 

Strange - code line double ZigZag_0=iCustom(NULL, 0, "ZigZag",12,5,3,1,0); gives value "0"

What's the problem?

 
Has anyone tried to optimise it?
 
)))Not yet - have to race through all the ticks
 

zp=iCustom(SMB,TF, "ZigZag",ExtDepth,ExtDeviation,ExtBackstep,0,i); how about this?

 
Let's try it.
 
Yeah, I was wrong...
 
What's the point of racing him if he got it wrong in the demo?)
 
)))Strange - on the demo he couldn't open a trade now - the zigzag wouldn't give!!!!
 

Maybe you should not multiply the starting lot by two to the power of X, but find out the lot of the triggered pending order and double it? The code will probably be smaller.

I think there are usually no more than 4-5 steps.