When market chooses to go uptrend or downtrend, the equilibrium between buyers and sellers vanishes and the trend with the different qualifications forms. The number of balanced and unbalanced periods of a trend can relate to it's weakness/strength.
Using indicators like ichimoku can initially help us to simply understand these concept.
So simply:
1- When Kj (Kijunsen=Ichimoku baseline) become flat, it shows the equilibrium between buyers and sellers. In line 13 of the script code, we can see the condition for this. In this case, better to use Kj=52 as it's closer to the concept of equilibrium market and contains more flat periods.
Also we can use Kj==Kj and Kj==Kj instead, to filter the balanced bars more.
2- When Kj stand higher or lower than it's previous value, it can be used as determiner for bullishness and bearishness of the market. In lines 16,19 of the script code, we can see the conditions for this. In this case, better to use Kj=26 as it's closer to the concept of trend market.
Using indicators like ichimoku can initially help us to simply understand these concept.
So simply:
1- When Kj (Kijunsen=Ichimoku baseline) become flat, it shows the equilibrium between buyers and sellers. In line 13 of the script code, we can see the condition for this. In this case, better to use Kj=52 as it's closer to the concept of equilibrium market and contains more flat periods.
Also we can use Kj==Kj and Kj==Kj instead, to filter the balanced bars more.
2- When Kj stand higher or lower than it's previous value, it can be used as determiner for bullishness and bearishness of the market. In lines 16,19 of the script code, we can see the conditions for this. In this case, better to use Kj=26 as it's closer to the concept of trend market.