Hi i am using multitimeframe strategy and want to create a condition to have
last 10 bars under readings of 20
I use the logic below but it only captures just one instance and retuns true, I need 20 consecutive instances
How can i modiify it?
bool result = true;
for (int i = 1; i <= 20; i++)
{
if (dStochPrim[i] <= 10)
{
result = false;
break;
}
}
Print("result"+result);

Comment