weird display behaviour for enums

Created at 04 Apr 2024, 15:02
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
SH

Shares4UsDevelopment

Joined 14.10.2018

weird display behaviour for enums
04 Apr 2024, 15:02


underscores in EnumNames trigger weird display behaviour of enums in Optimization.

 


/// <summary>
///  build robot
///  add symbol
///  select optimization
///  select the possibilities for Message
///  See the weird display behaviour
///  </summary>

using System; 
using cAlgo.API; 

namespace cAlgo.Robots
{
    [Robot(AccessRights = AccessRights.None)]
    public class _TEST_1 : Robot
    {
        [Parameter(DefaultValue = Tests.One)]
        public Tests Message { get; set; }
        public enum Tests { One, One_Half, Two, Two_Half }
    }
}

@Shares4UsDevelopment