An indicator shows a signal. An EA acts on it. If you already trade from an indicator, the signal is the easy part. The EA also needs rules for everything the indicator leaves to you.
What the EA needs to know
- Signal: exactly which arrow, line cross or level counts as a buy or a sell, and whether to trade on the candle close.
- Entry: market order at the signal, or a pending order at a level.
- Stop loss: in points, in percent, by ATR or at a swing high or low.
- Take profit: fixed, by risk to reward, or when the opposite signal appears.
- Lot size: a fixed lot or a percent of the account at risk.
- Filters: trading hours, days, spread limit, news and a maximum number of trades.
The repainting question
If the indicator changes past signals, an EA cannot trade it reliably, because the signal you see later may not be the one that existed at the time. Read repainting indicators and tell the developer if your indicator is one of them.
Source or no source
With the indicator's source file, the logic can be reused directly. Without it, the EA can read the indicator's buffers if the indicator allows it, or the signal rules can be rebuilt from your description.
Test before live
Run the EA in the Strategy Tester, then on a demo account, and compare its trades with the signals you see on the chart. Backtest vs live explains why live results can differ.