Hello, I have attached a supertrend indicator and my embarrasing tries of converting it into an EA. Also attaching an example with annotations.