Iterating through indicators would probably not produce good results, but if you still want to do it, use an array of indicator function pointers and iterate through that array. It's not trivial. You will need wrappers for some indicators.