How to buy consecutive orders only (no multiple orders)?
-
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.
-
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.
-
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.
-
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