Note: This script does not perform well on its own and is meant to inspire other coders, just sharing it because why not :)
The idea is simple, highest only gets calculated for green candles, lowest only gets calculated for red candles. a yellow dot gets created when a candle gets below lowest line and closes bullish, vise versa for red dots.
Hope someone can use it.
This is an updated version on one of my previous scripts. Small explanation in the description.
This new script gives you a direction bias based on closing above and below the lines, with an option to filter fake signals by waiting for one more candle close.
Also added more moving...
This script plots two ATR (Average True Range) values, one based on only bullish and the other based on only bearish bars. If the current bar is positive, the negative ATR will use its last known negative bar for the calculation. You can smooth bar directions by using the Heikin Ashi setting.
Use this the same way how you would use the regular ATR indicator, but...
This indicator works the same as a regular Kijun Sen but it is on a separate window to allow for other on chart indicators.
I tend to use this as a filter for when to go long/short.
When it is green, I only take longs. When it is red, I only take shorts. Combine with other indicators of your choice.