| / | Forum |
|
iPlayGames
2007.07.24 15:15
hello. I've just upgraded from MT4 build201 to MT4 build207. an EA of mine that used to work just fine with build201 has begun to give me repeated error messages: ordermodify error 130. I didn't do any modification to the EA, and the same EA when switched back to build201 worked with no error message. below is the related function that has been causing the error message. (the newSL variable is normalized). this code is very simple and straightforward. I checked again and again but just couldn't figure out what's causing the error messages. could someone please shed some light on this? int ModifySL(double newSL) |
|
Trading Strategy Based on Pivot Points Analysis Pivot Points (PP) analysis is one of the simplest and most effective strategies for high intraday volatility markets. It was used as early as in the precomputer times, when traders working at stocks could not use any ADP equipment, except for counting frames and arithmometers. |
|
Mike
2007.07.24 21:33
Show me a full code. The variable newSL interests.
|
|
iPlayGames
2007.07.25 07:33
ok, here is the function in my EA that calls the above ModifySL() function and passes the newSL variable to it. int GetOpenSignal() //---- check for long signal new stoploss for the short entry. to the best of my knowledge, I couldn't see anything wrong with this function. not to mention that it works just fine with MT4 build201. does this suggest that there may be a bug with the latest build of MT4? |
|
iPlayGames
2007.07.25 07:35
oh, btw, the variables in the GetOpenSignal() function that are not locally declared are all global variables. and also, when I do backtesting, I always use the Open Prices Only method. |
|
iPlayGames
2007.08.02 14:24
could somebody please help with this problem?
|
|
Irtron
2007.08.02 15:28
Make sure that newSL as well as current takeprofit is not closer than MarketInfo(Symbol(), MODE_STOPLEVEL) to the current exit price.
For instance, OrderModify returns ERR_INVALID_STOPS if stoplevel is 5 points and newSL for long position is 1.3683 and Bid is 1.3686. 1.3686 - 1.3683 < 5 * Point. |