Last minima
-
In the chart 1 the price is falling and stops making new lows. It is possible to save this last low in a variable and the high of this candle.
-
You could constantly update 2 variables with this information as it happens, leaving the variables with the latest information, but at what point do you class the nstart of the fall.
-
From the candle that stops making new lows. ID 1, it would store the low and high of ID 2 forward until it breaks.
-
So ID 1 makes a lower price than ID2?
-
No. Since ID 1 is higher. Higher minimum. I want to save the maximum and minimum of ID 2, if it breaks this maximum the price is in an uptrend and if it breaks the minimum it returns to the trend.
-

-
Note that to start rising the price has to break the high of the candle that made the low.
-

-
In the last leg it only starts to go down when it breaks the candle that made the maximum. It was breaking with 10 Candle. Since the variable to mark is dynamic, I don't know how to do this
-
And what made 2 the low?