In this lesson we clean up our code by creating two new functions. Then we create the IsNewCandle () function so that we can make sure the code does not run every tick but only at the beginning of a new candle.. It is in this function that I explain what a ‘static’ variable is.. How it differs from the way other variables declared in a function act. When and why you would want to use one.
In this video we create a couple of functions in our EA and we make one called IsNewCandle() to control how often our code runs.. also I explain what a ‘static’ variable is and why and when you would want to use one. Hope you learn something that you can use from it…
if all mirrors Does not working please inform us by using comment