Time bomb - Don't trigger buys if majority are sells vice versa
-
Hello Gents
I'm using a time bomb but I don't want and more trades in the opposite direction. If the buy time bomb is triggered then I want to suppress the sell timebomb until the positions are closed. I want them to run on a first come first serve basis. If the buy is triggered then only more buys and no sells. After they're closed by my condition, if sells are triggered then buys are suppressed and wait until sells etc so everyone has a turn!
I don't mind either one adding more to their positions. Just don't want the other one interfereing.
I've got an example here but the buys and sells are competing with each other.
Thanks in advance. -
Thay are compiting because both buys and sells are sharing the same tree structure. You need to duplicate them, one for buys only and another one for sells only. Then use a variable to control which ones are active whareas the other ones are inactive.
-
Thanks for the reply. Is there any example of using variables to seperate buy and sells anywhere I can use?
-
Try this:
https://fxdreema.com/shared/KcB6oqy7c
Obvioulsy you need to include all condition blocks between the top 'Modifiy variables' blocks and buy/sell. Don't forget to initiate both variables as True.