need EA to place order when alerts occur

 

I have used a custom indicator on chart which alert me everytime to buy or sell when it is the right time. I want this to be automatically done in EA.

I want to write an EA program so that it can detect any alerts arisen so as to place the order. Is there any good way to do it?