Forex_Strategy_Builder.Dialogs.Generator.Top10Layout.IsNominated C# (CSharp) Method

IsNominated() public method

Check whether the strategy has to be added in Top10 list
public IsNominated ( int balance ) : bool
balance int
return bool
        public bool IsNominated(int balance)
        {
            bool nominated = false;

            if (top10Holder.Count < maxStrategies && balance > 0)
                nominated = true;

            if(top10Holder.Count == maxStrategies && balance > minBalance)
                nominated = true;

            return nominated;
        }