Click to reveal..
public double Tochka2(ISecurity source, int bar)
{
int n = 1;
int x = 0;
int otstup = 20;
int ss, pp;
double dT2;

while (x<=20)
{
if (source.LowPrices[bar-n]<=source.LowPrices[bar-x])
{
n = n + 1;
x = x + 1;
continue;
}
if (source.LowPrices[bar-x-otstup]>source.LowPrices[bar-x])
{
if (otstup>60)
{
break;
}
otstup = otstup + 1;
continue;
}
ss = n + 1;
pp = n + 1;
while (pp<otstup+n)
{
if (source.HighPrices[bar-pp]>source.HighPrices[bar-ss])
{
ss = pp;
}
pp = pp + 1;
}
dT2 = source.HighPrices[bar-ss];
break;
}
return dT2;
}

Подскажите плиз почему до команды return dT2 не доходит значение переменной.