Timestamp of an indicator value

 

I want to compare 2 indicator values in an EA if they fall within X minutes of each other. As an example, comparing when a Schaff Trend Indicator line turns vertical with the move of another type of indicator if they are within x many minutes of each other.

How could this be accomplished?

 

Remember when one changed (time.I1,) remember when the other did (time.I2.)

datetime delta.min=mathAbs(time.I1 - time.I2)/60;

Reason: