restart loop condition
-
HELLO TO ALL, I would like to ask you how do I stop open pending orders starting when (candle <AMA) after I have reached the profit of 50 pips and reset the condition as soon as the (candle is> of AMA)?
THANK YOU A

-
Create a boolean variable initialized as false. When price crosses tha AMA it turns it into true.
Then use a condition block specifying that the variable needs to be false an put it between blocks 108 and 61. Obviously ot will turn into false again with a crossing in the opposite direction.
-
@l-andorrà said in restart loop condition:
boolean variable
sorry but the link of the project was wrong, I put the exact one, this project doesn't work?
for my skills for now it is difficult to do it, do you have an example to see? -
A few points first:
-
Pink blocks need to be connected below a 'For each trade' block. Pleas eadd it to the second tree.
-
You are comparing the open of candle ID 1 with the proce level of the MW on candle ID 0. I guess you want the CLOSE of candle ID1 to be below the MA on cnadle ID 1 too.
Let's begin with those changes and then we can continue with the variables.
-
-
@l-andorrà ok thanks i try