How to apply early stopping to reduce ML overfitting in Amibroker?

I tried to do that but fail.

If you know how to do that, please provide your code at your convenience.

Lots of thanks. Appreciate.