i am coding on OnTick() function.

my main problem is i cant save a number e.g. after 100 ticks!!

e.g. i want to save value of one candle an i want to use it after 100 ticks , but the value will reset after each tick and i cant use it .

Why don’t you post the code you are trying to use. This way it is like mind reading

You can use a Global variable or a static one. Regards.

Basically that is one part of the solution, but it does not guarantee that she shall not have the same issue she has now. All depends on the way how it is coded

Sure, I give her a guide to start, but she did not put any code to fix. Therefore, I will not make the whole code for her. She has to read the documentation and try it by herself first. Regards.