How do I check latest bear candle high less than previous bear candle?
-
Hi, how do I check bear candle[0] > previous bear candle [1], Ignore if there is any bull candle in between.

-
@santhoshabraham The simplest way is use a 2 condition blocks to check if candle 2&1 closes higher than open (to check if bull), then another condition to check if > than other, as soon as 0 opens conditions will be checked.
-
I think I am kind of stuck. This is what I am trying to do I am tring to trail stop based on bull or bear candle. For example, If its a sell, I want to trail stop high of previous bear candle. If its a buy I want to trail stop low of previous bull candle. If you can show me an example, that will be great.
-
@santhoshabraham It is not a trvial thing to do. You need to create a loop searching for all past candles until a bearish one is found, then chaeck for that condition and if it is not true, a new one is to be searched.
-
@santhoshabraham @l-andorrà is correct a loop will do this, alternatively a pink for each trade block-yellow bull signal block-pink modify stop's block. All in a separate tree.