fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Invalid price

    Questions & Answers
    2
    5
    1076
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      Eric last edited by

      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"?

      http://www.earnforex.com/blog/ordersend ... hat-to-do/

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • E
          Eric last edited by

          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 price

          i 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)

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            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

            1 Reply Last reply Reply Quote 0
            • E
              Eric last edited by

              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)

              http://www.forexbrokerz.com/news/mt4-bu ... x-software

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              Online Users

              G
              K
              E
              A
              S
              O
              S
              A
              N
              J
              S
              K

              23
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors