fxDreema

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

    How to buy consecutive orders only (no multiple orders)?

    Questions & Answers
    2
    4
    537
    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.
    • L
      Laughton last edited by

      Hello,

      I've been trying to have the EA place consecutive buy/sell orders according to a technical indicator, but it keeps occasionally entering a 2nd new long buy position before the first one is closed - despite the buy order specifying to use 100% available margin per order.

      http://oi60.tinypic.com/fnhk42.jpg

      http://oi62.tinypic.com/2m32xc5.jpg

      http://oi59.tinypic.com/1zpsa4k.jpg

      Could someone please let me know what I'm doing wrong? Thanks.

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

        Block 1 should prevent block 10 from running twice and creating second buy, are you sure that there is no other EA running in some other chart? Also, "Once per bar" happens once (per bar), so even from here there is a limit for max 1 trade per bar.

        1 Reply Last reply Reply Quote 0
        • L
          Laughton last edited by

          Thanks! I just did a full registry un-install of MetaTrader4 (using Revo Uninstaller to ensure NOTHING remained), then reinstalled. I deleted all the EAs that installed with it, then put mine in, and it works like a charm.

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

            Maybe you missed something, it's confusing sometimes, because by default the location of experts/indicators/scripts is somewhere in AppData... weird place. Go to File -> Open Data Folder in MetaTrader to see the exact location.
            By the way, Revo Uninstaller is also made in Bulgaria 🙂

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

            Online Users

            I
            D
            M
            A
            H
            R

            14
            Online

            146.9k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors