How to identify highs and lows
-
I want to create a robot that can buy whenever a candle closes above a high and sell whenever a candle closes below a low
please, how can i achieve this robot?
-
ok, how do you know where is low or hi?!!! and after that, you want to know if the close price is higher or lower.
-
You could try new top/bottom in trend.

-
-
The blocks work but it depends on what you need, these blocks will move to a new high/low when found. That's why I said try, if it fits your needs then good, but if not I have no other way.
-
@jstap thanks, let me try it
-
@jstap Please, in the past candle count. what number should i put there if i want the bot to take trades as soon as the current candle closes above the top or below the low?
-
Use other blocks, condition candle close < or> high/low value, and save this into a variable every time a new top/bottom appears.
