fxDreema

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

    close partial error

    Questions & Answers
    2
    8
    1703
    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.
    • O
      okranoblues last edited by

      I'm getting this error when i try to compile my project, and is only after i add the close(partially) block..

      Can you please tell me what im doing wrong?

      Thx

      return value of 'OrderSelect' should be checked DailyProject.mq4 2269 4
      return value of 'OrderSelect' should be checked DailyProject.mq4 2378 4

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

        Those are just some warnings, not errors

        1 Reply Last reply Reply Quote 0
        • O
          okranoblues last edited by

          Im trying to use the partial close block and in the journal i get this error message:

          2015.04.04 14:26:34.584 2000.01.28 00:01 DailyProject EURUSD,Daily: Invalid ticket (4108)
          2015.04.04 14:26:34.584 2000.01.28 00:01 DailyProject EURUSD,Daily: OrderClose error 4108
          2015.04.04 14:26:34.584 2000.01.28 00:01 DailyProject EURUSD,Daily: unknown ticket 2 for OrderClose function

          can you help me in how to use this block and if you can provide examples will be appreciated?

          Thank you

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

            ALWAYS use one of the "For each..." block before using some other pink block like close (partially) when you work on MT4

            1 Reply Last reply Reply Quote 0
            • O
              okranoblues last edited by

              Question when you use modify stop orders that are open the value of the new stop loss can be lower than the open price?

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

                Opened stop order... you mean pending order or running trade? Stop Loss for Buy trades and orders can be below their open price, and only in case of running trade, SL can be above the open price if the current price is also above the open price. So, Stop Loss depends on the current market price.

                1 Reply Last reply Reply Quote 0
                • O
                  okranoblues last edited by

                  This is for open orders only or running trades, how do you set it up with a negative value so it can go under the open price?

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

                    What are you trying that is not working?

                    SL for buys can be only below Bid and for Sells - above Ask. Plus some additional limits like StopLevel and FreezeLevel. If you want to put SL/TP too close to the current price, the minimum possible SL/TP size will be taken.

                    Again, SL and TP are placed according to Ask or Bid. It just happens that Open Price of any trade is Ask or Bid in the moment when this trade was created. When the trade profits, you can put SL on the "other side" of that Open Price. And when the trade is on lose, you can also put TP on the other side.
                    SL and TP does not care about Open Price, they care only about Ask and Bid.

                    Here is more detailed information: http://book.mql4.com/appendix/limits

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

                    Online Users

                    K
                    F
                    E
                    T
                    S
                    A
                    I
                    A
                    E
                    S

                    22
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors