How to Run conditions if previous trade get break even OR trade get closed
-
Hi,
My Question is How to Run conditions if previous trade get break even OR trade get closed.
Eg :- Trade Conditions EMA 50 crosses EMA 100 then we enter in to trades. If it cross up. enter in to a buy trade. and if it crosses down enter in to a sell trade.
IF trade no:1 is running we cannot enter in to any trades untill it get close or get break even.
If trade no: 1 got break even. we run our conditions and enter in to trade no 2. We cannot enter in to trade no 3 untill trade no 2 get break even or get close. and it goes on.
Need help.
-
@thilinawiz-0 The easiest way to run conditions when the previous trade is closed is by heading your launching block tree with a 'No trade' block. On your break even requirement, you can create a boolean variable telling the EA when BE was ececuted so that no new trades can be launched until this happened.
-
@l-andorrà Can you show me where to find boolean variable. Plz
-
@thilinawiz-0 You need to create them here:

Take a look at this first:
https://fxdreema.com/instructions/builder/constants-and-variables