Source code of an expert who will automatically trade on the signals of one indicator

 
I am looking for the source code of an expert who will automatically trade on the signals of one indicator. For example, the indicator shows when to buy or sell, I want the expert to take the signals of this indicator and sell or buy. Perhaps someone has this source code, I will be grateful if you share it.
Reason: