Simple Demo on Static Variable usage ..

 

Can some one let me have simple code demonstrating static variables....  CHATGPT3 did not give satisfactory answer.... 

MQL documentation has an illustration, but it is useless.... 


Regards

Laxman 

 
tdgActMetaTrader: Can some one let me have simple code demonstrating static variables....  CHATGPT3 did not give satisfactory answer....  MQL documentation has an illustration, but it is useless.... 

Documentation on MQL5: Language Basics / Variables / Static Variables

No, it is not useless! If you cannot understand it then please do some research on "static" in C/C++ on which MQL is based.

 
tdgActMetaTrader: Can some one let me have simple code demonstrating static variables.... 

New candle - MQL4 programming forum #3 (2014)

Reason: