I created an efs that uses the Donchian higher and lower functions to indicate when a trend is changing. Roughly, if the current high is higher than the previous n bars high I paint a bar green and conversely for a bar low.
These function take a fairly long time to load data.
Does anyone know of a more efficient way to achieve what I am doing? For example is the highest() function better, or just creating an array of the past n high/lows and getting the max/min. What if I limit the amount of data through a time template?
Thanks.
These function take a fairly long time to load data.
Does anyone know of a more efficient way to achieve what I am doing? For example is the highest() function better, or just creating an array of the past n high/lows and getting the max/min. What if I limit the amount of data through a time template?
Thanks.
Comment