Thank you for your post and welcome to the NinjaTrader Support Forum!

When setting the value you can make sure it's the max of either the other value or it's own. For example: set { greater = Math.Max(lesser, value); }