Has anyone had luck with the InertiaAll function for a higher timeframe? For example, before entering a trade, I like to make sure the trend on both the one hour and four hour time frame are moving in the same direction (per InertiaAll). However, when using the script below on a one hour chart to show the straight line trend over four hours, it clearly isn't correct. Any ideas on how to use InertiaAll over multiple time frames?
declare lower; plot inert = InertiaAll(data = close(period = AggregationPeriod.FOUR_HOURS), length = 100);