fxDreema

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

    Help with Failed Executed Order

    Questions & Answers
    order position size
    2
    4
    396
    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
      everjn17 last edited by

      Hi Guys,
      I am running an EA right now with some scale up money management system on it. Basically what it does, after x criteria is met, it open first trade that i call Base trade.
      Then on each x amount of price movement that against me i add more to the position with 1.2x the lot of previous trade.

      However, sometimes my broker or my MT4 or my VPS failed to execute for any reason. Sometimes a network error or sometimes the log just throw "common failure". The point is this thing happens once in a while which really screw my position sizing.

      When the order failed to execute, somehow my EA just keep trying to execute the order but with higher lot position each time it tries to execute it.

      Is there any block that i can use after "Buy Now" or "Sell Now" block to confirm if the order is succeed? I want to catch the result and compare it, if the order succeed than it goes to next step but if not, keep try to execute the order but without increasing the position size.

      1 Reply Last reply Reply Quote 0
      • C
        cmuphyfx last edited by

        Try looping through open positions to get the last successfully placed trad, in the loop grab the volume size and then use whatever formula agaist that valune to increase the size for the next position

        1 Reply Last reply Reply Quote 0
        • C
          cmuphyfx last edited by

          you could also do a count of open positions before you place anew trade and after. if the value did not increase by 1 then the volume for the next trade should not increase

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

            Thanks for your answer.
            I did try using loop thru open position but it seems unreliable for me. I'd like the idea of comparing open position before and after trade, however i'm bit confuse on what block to use. I tried to check the "Check Trade Count" block, but i don't know how to store the value of the trade count after using that block

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

            Online Users

            A
            A
            Y
            H
            B
            K
            S

            16
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors