Hi!
One part of my exploration operates on LLV functions. I use it to find tickers that were traded under 1$ in the history (I check from the beginning to the current bar). I use this code:
bi = Barindex();
qfdb = Status( "quickaflfirstdatabar" );
qbi = qfdb + bi;
if1usd=IIf(LLV(L,qbi)<1.00, 1, 0); //check if it was traded under 1$
The problem is the LLV function works extremaly slowly. In Code Check and Profile it shows 4-7 seconds for one call of LLV so scanning around 8000 stocks takes really long.
Is there any way to optimize this code (or change it)? I found that in other cases LLVs (or HHV) functions work slowly, too. Any ideas how to replace LLV (or HHV) to make it working fast?
Thanks for help and suggestions.