Hello! I'm having trouble with a simple index counter in loop. I have tried every way to get it to work. * I have moved this function out of the OnTick section and called it as a separate function from there. * I have tried to include the moments of data array changes based on indexes when the index gets a new element using same- and separate loops. * I have tried a bool variable as an additional condition that would provide additional confirmation * I have even made a static timestamp[] array and indexed the data there to compare. In other words, I've been trying every way for weeks and I'm absolutely at a loss because I can't get anything to work unless I can actually read data even in such simple functions. Some more competent people please help me, I'm really in trouble... I put a simple example code where I try to get the consecutiveHigh and consecutiveLow counters to work, but they give random answers.
Hello! I'm having trouble with a simple index counter in loop. I have tried every way to get it to work. * I have moved this function out of the OnTick section and called it as a separate function from there. * I have tried to include the moments of data array changes based on indexes when the index gets a new element using same- and separate loops. * I have tried a bool variable as an additional condition that would provide additional confirmation * I have even made a static timestamp[] array and indexed the data there to compare. In other words, I've been trying every way for weeks and I'm absolutely at a loss because I can't get anything to work unless I can actually read data even in such simple functions. Some more competent people please help me, I'm really in trouble... I put a simple example code where I try to get the consecutiveHigh and consecutiveLow counters to work, but they give random answers.
dear friends, I hope for your help