Hi,

I want to use support resistance at daily level in my code for intraday.

I am using peak amd trough to calculate then. There are two issues I need to solve.

1.) Peak asks for a single array so I can use only High and % Change is calculated form higher to lower high whereas I want to calculate it from High to low. I have used certain platforms where zig zag plots it from high to low rather then high to high. Any help how to solve it.

2.) Calculating this is taking >5 minutes (increased from 20second minutes) for single scan as I need to load 6 months of data else 10 days would suffice for me. This isnt feasible for intraday. Is it possible that I calculate them beforehand .. load them to amibroker and use this loaded data to use in my code.

Any help on any of above points is highly appreciated.

Regards,

Chirah