'Once per minutes' block
-
Hello. I'd like my EA to buy/sell once at the opening of every 5-minute bar/candlestick. The 'once per bar' block alone, on a 5 minute chart, results in multiple sell/buy positions per bar (which is incorrect). So I tried to add the 'once per minutes' block and set it to 5 - but still there are multiple sell/buy positions per bar. What blocks should I use? See link and pic below
https://fxdreema.com/shared/ur6NzEhYc

-
I think only once per bar block should be enough, it might be a problem of your other blocks in your actual project.
However, you may try the one in the below link that should also solve your problem (be careful with the sequence of Block ID, Turn On Block ID must be lower than Buy Now Block ID)
-
The 'once per bar' block should do it correctly if more trades are open on that same bar it means other parts of the EA are conflicting it. Can you please share the link to the project?
-
Hi guys. The above link in my original post is the whole project. But I've just removed the 'once per minutes' block; the problem still persists. See below the new link and snapshots of multiple orders in single 5-minute bars. I also tried as @Xeta50 suggested but the results are similar to the pictures below. I believe there should be only one red/blue arrow per bar, indicating one position per bar.
https://fxdreema.com/shared/ur6NzEhYc

-
I use once per bar regularly, and it only creates one trade, if not you likely have another issue, like with the terminal, or EA is switched off and on. move the once per bar under the once per minutes and see if this changes any thing.
-
@jstap I just tried that but the results are still the same; see below. I also tried the same blocks on the 'On trade' tab but there the EA doesn't trade at all.

-
Add a shared link rather than a picture to look at.
-
See link - https://fxdreema.com/shared/0bLFTv0jd
-
I am unsure why, I have never seen this on MT4, maybe ask admin from the main page
-
Ok thanks
-
its one per bar
-
@Lerumo There is a small probability of the code being corrupt for some reason. Build a completely new version of the bot and try again.