I use 10% cash reserve protection rate from each earnings the EA make, when the order close with loss nothing will happen. The cash reserve is using a cash reserve pool where the main job is liquidity protection, the EA don't use the cash in the cash reserve pool in any calculation and should not see the cash -- only the broker see the cash.
How I code this function?
Please feel free for any questions or comments
Since you have no MQL5 programming experience, I suggest you post your requests on the jobs section... there are very skilled programmers willing to help you for a small fee... but if you want to learn then start by reading the mql5 reference