I have multiple VBA agents running in parallel (in different Excel instances on the same PC) scanning 24/24h for an event on multiple crypto currencies. Each agent scans one different crypto. Whenever an agent detects an event, it invests all of my money for some minutes on that crypto.
During these minutes, if another agent happens to detect an event (on another crypto), it should skip (do nothing) because all the money is already invested by the first agent.
In order to share this "INVESTMENT-IN-PROCESS" information along with some details (like my updated balance) among all the agents, I currently use an unique text file on the local disk.
Is there a more efficient (eg. using RAM instead than disk) still safe (persisting even if the generating VBA instance crashes) method to share small (<20 bytes) information among the multiple VBA instances?