double s = StochasticsFast(StochD, StochK).D[0];
double highestcloseabove80 = 0;
if( s > 80)
{
for(int i = 1; i < 100; i++)
{
if(s > 80 && Close[0] > Close[1])
{
highestcloseabove80 = Close[i]
}
if(s < 80)
{
break;
}
}
This could also be done using highest close x bars back when the fs plot d has crossed below 80 but i need to make sure its 100% accurate.
Comment