Buy or Sell side opposite pending order repeat issue?
-
Hello.
If my specific condition if generated I'd like to buy or sell now and same time opposite pending buy or sell. This is easy, EA works great and repeat orders always when it has to be, BUT there is one issue where I need your help.
If I was Buy and there is Sell pending order what trigged then I'd like to put again Buy pending order, but first time it works great but next time when condition is correct it just don't put Buy pending after Sell is trigged. It will only when I don't use once per bar/trade etc, But then it mess up made lot of trades up on each other. Once per trade just don't work out however I try.!
It should be open olny one trade if I use once per bar block, but it open multiple trades, how can fix that?First orders are correct
https://imgur.com/NjMGm0JSecond time just don't put buy pending order after sell pending order trigged
https://imgur.com/NEVQH10 -
Could you share the project from the Projects menu (upper left).
Also, could you explain a bit more of the logic?- When new orders are created?
- What should happen when a trade is opened?
- Do the orders have expiration timer?
And finally, you can paste pictures directly to this forum, just press ctrl+v

-
@roar Hi I'm trying to create something like that but I don't seem to get how it would work. The condition for my EA is simple. Example is; everytime eur/usd gets to 1.2345, i want an automatic sell stop at 1.2045 and put it on a loop that repeats this condition everytime the market gets to 1.2345
Any help would be appreciated
-
@oneceo This can be done, but there is a problem - what if the price touches the level 100 times in one minute, for example? Do you want 100 new orders then?
If you want only 1 order at a time, when does this order expire if price never reaches it? -
@roar yes I'm okay with 100 orders running at thesame time and the pending order should not expire till i manually close it
-
Sooooo.. Like this:
https://fxdreema.com/shared/0k4Sas6xd

It's a money burning machine. You will need more detailed system
-
@roar thank you for the help.....
By a more detailed plan, did you mean i should have more conditions in place ?
-
@oneceo Just go ahead and backtest this. You will see that it is not very good, needs improvement
-
Oh, wow. Thank you all for answers, but I figured out and get results what I want
Problem was simple as always, signal order should be ON TRADE box not TICK box.