Track and Record Object Value History For Future Use?

To add comments, please log in or register
95jlenk
182
95jlenk  
I have an indicator that prints an object on my chart and moves either up, down, or remains constant. The object shifts with the chart. I want to write code to check if the object has remained constant for X amount of bars.

Not sure how to go about doing this. Is it possible to write code to keep a log and reference it in the future?

Thanks in advance, 

-Justin
William Roeder
20249
William Roeder  

95jlenk I want to write code to check if the object has remained constant for X amount of bars. Not sure how to go about doing this.

Is it possible to write code to keep a log and reference it in the future?

  1. Remember the time you last modified the object. iBarShift will tell you how many bars ago.
  2. Of course, it's called a file. But do you need to know about all the previous changes?
              File Functions - MQL4 Reference
To add comments, please log in or register