resetting candle count
-

I ask a somewhat difficult question and the translator certainly won't help me. There is a way to reset the candle count once a condition has been met. for example I have an impulse of 4 candles once you reach 50% of the impulse between 1 and 4 reset the candles and start counting again to be able to identify
-
The short answer is yes, but...you will need at least two variables. One to calculate the high/low distance of the impulse and another one to find that 50% and translate it into a price level. Are you familiar with variables?
-
@l-andorrà Hi Andorra thanks for the reply. Of course I know the variables and I already use them to find 50% of the impulse. Currently the expert works with the limit order on 50 and it works well. I wanted to create an alternative solution that awaits favorable engulfing once it reaches 50% in order to enter the market with a higher statistical advantage. because I could set the code with candle 3 less than or equal to the variable representing 50% candle 2 does not close below candle 3 and candle 1 closes above candle 2 and 3 thus creating the moring star pattern. The problem is that once I get to 50% I have already counted the candles 1-4 and I would like to find a solution to count 1-4 on the 50% of the previous pulse.
-
That's more complicated. Maybe a loop searching for that previous pulse? That's not a trivial thing to do. IMHO, the easiest solution is storing the info of each pulse on a variable and as soon as a new pulse is detected, move it to a second variable. That way the bot can find the info of the most recent one and the immediately previous one.