newdigital,
You are moving at the speed of the rock.

The code is 100% right. KEEP GOING MAN!
When I make changes to any code I rename it like that:
SuperTrend (This is the original)
SuperTrend_Alert (This is the new name. Added
_Alert to the original name because I've added Alerts function to the original code)
I don't rename it to
SuperTrend2 or
SuperTrend_v2 because I didn't make a lot of improvements to consider it a new version. (Just an opinion)