Depending on your programming skill, everything can more or less be programmed. However, the problem is this: Is what you programmed profitable? If what you programmed isn't profitable, what good is it?
That is, my friend, the most discretionary element of trading.