MT4 EA: Stupid Programming Mistakes

Tuesday, April 28, 2009

Well, I spent last evening tracking down some problems in my next foray into programming expert advisers.It turns our that a simple logical test was using an '&' instead of an '&&' between two terms.This little horseshoe nail caused some position closing attempts to fail with an error 138 -- meaning that the price being used to close the position was too far away from the market price.I also ran

 
 
 
 
Copyright © Forex Control