History size

 
Is there a possibility to find out [and change] the history size? From MetaTrader but also from an EA ?
Reason: