I am looking for a way to use the alert window to enter or sell as described, you can help with some script or pointing here on the forum of how to
You don't. You can't read them and you can't read the file because of the caching.
Figure out what buffer(s) values trigger the alert and use that. Detailed
explanation of iCustom - MQL4 programming forum