Invalid price
-
With one broker i get this error 129 (others works fine) i thinking of try to put in "RefreshRates();" in the code
There is a grey block called "custom MQL 4 code" will it work if i write RefreshRates(); in that block and place the block before "buy now" , "sell now" and "close trades"?
-
I don't think it will help, because Ask, Bid and all these constants are not used anyway. Is this error appear every time the EA is trying to send a new trade?
-
Its a broker related problem (CFD only) and i have told them but to no use
The problem is that bid and ask works fine and the EA open a position
but when the EA try to close the position i get the error 129 invalid pricei think its because the price in the terminal window does not update on every tick
(the price on the position and the running profit/loss freeze) -
As I said, in fxDreema these - Ask, Bid, Point... - are not used, so RefreshRates() is useless, because it controls them, but they are not used and there is no matter
In fxDreema MarketInfo() is used and RefreshRates() has nothing to do with it.It is possible that some calculation in some function is not correct, I don't know now. If you can inspect this it will be good (search for "OrderClose" function in the code and check it's input parameters), otherwise you can tell me the broker and the instrument and all that is needed for me to recreate this situation here.
And here are the limits of MT4: http://book.mql4.com/appendix/limits
-
Its a new metatrader version on the way
maybe its works better with that one? i will wait and see what happens
(i have another broker that works fine)