The easiest way is to build a "HarvEstate Manor" which costs 1000000. You can get 50000 from selling it.
So, in CE just search for 1000000 (4 bytes) and add all findinds to the address list:
After that, change the value of all addresses in the address list to 0:
The result is, that you can get that building for free now:
Now, to reach the gold cap easily, just repeat these steps. But this time, you have to look for 50000 (4 bytes) and change the value to 2000000.
After that, just sell the building and you'll receive 2000000 gold (which is the cap):
Have fun