Track and Record Object Value History For Future Use?

 
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
 

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
Reason: