how to add time bar protection in indicator?

To add comments, please log in or register
SatyamGanju
98
SatyamGanju  
i have wrote some code for indicators and i wanted to add time bar protection , like indicator will stop working in 1 month or so .. how can i do it ? 
Marco vd Heijden
Moderator
12774
Marco vd Heijden  
struct MqlDateTime 
  { 
   int year;           // Year 
   int mon;            // Month 
   int day;            // Day 
   int hour;           // Hour 
   int min;            // Minutes 
   int sec;            // Seconds 
   int day_of_week;    // Day of week (0-Sunday, 1-Monday, ... ,6-Saturday) 
   int day_of_year;    // Day number of the year (January 1st is assigned the number value of zero) 
  };

https://www.mql5.com/en/docs/constants/structures/mqldatetime

Documentation on MQL5: Constants, Enumerations and Structures / Data Structures / Date Type Structure
Documentation on MQL5: Constants, Enumerations and Structures / Data Structures / Date Type Structure
  • www.mql5.com
Constants, Enumerations and Structures / Data Structures / Date Type Structure - Reference on algorithmic/automated trading language for MetaTrader 5
SatyamGanju
98
SatyamGanju  

i need source code to add time bar protection for indicator , the above one is not helpful

To add comments, please log in or register