Download Mql4 video course : Lesson 11

11-2 Writing Functions, Static Variable Explained

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…

 

 

 

 

 

Download From Uploaded

http://ul.to/it1frahw

Password : www.cabafx.com

 

 if all mirrors Does not working please inform us by using comment

 

 

 

 

 

 

.

 

 

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *