This script calculates the strength of bears and bulls.
Long when green line crosses red upwards and stay upwards one more bar. Close long position when green line crosses red again in the opposite direction.
Short when red line crosses green downwards and stay downwards one more bar. Close short position when red line crosses green again in the opposite direction.
Open positions when lines are close to each other.
Recommended period: 14.