Every mortgage or other instrument securing a loan upon real estate and constituting a lien, or the full equivalent thereof, upon the real estate securing such loan, may secure future advances and the lien of such mortgage shall attach upon its execution and have priority from the time of recording as to all advances, whether obligatory or discretionary, made thereunder until such mortgage is released of record; provided, that the lien of such mortgage shall not exceed at any one time the maximum amount stated in the mortgage.
NMS § 48-7-9