here is the code:
double stochfast = StochasticsFast(StochD, StochK).D[0];
double highestcloseabove80 = 0;
while(stochfast > 80)
{
highestcloseabove80 = Close[0];
if(Close[0] > highestcloseabove80)
{
highestcloseabove80 = Close[0];
}
}
When I run this on a list of instruments in the analyzer my cpu gets maxed out and I have a very fast computer so I'm assuming this loop is running infinitely. Shouldn't this terminate on it's own when the while condition evaluates as false (stochfast < 80)? I need somebody that knows what they're doing to tell me how to achieve the desired result. Thanks in advance.
Comment