Replies

patzoot@gmail.com
30 Dec 2020, 21:33

RE:

PanagiotisCharalampous said:

Hi snowchilli,

You did not add a getter and a setter. See below the correct way to do this

        [Parameter(DefaultValue = enmABC.B)]
        public enmABC ABC { get; set; }

Best Regards,

Panagiotis 

Join us on Telegram

 

Hi,

 

Just to confirm; there hasn't been any introduction since the last thread for the option of a dropdown menu to change the color of items such as lines? I'm attempting (with my limited programming skills) to make use of the enum function to create a list of colors as a means to change the colors of items drawn but seem to get stuck where the identifier for enmABC is to be placed. I'd want it to use the color choice the user picked as an identifier. Any suggestions as to how I may correct this or even an alternative method? 

[Parameter("Sell Point Colour", DefaultValue = enmABC.DarkGray, Group = "Colour Settings")]

        public enmABC SellPC { get; set; }
        public enum enmABC
        {
            DarkOrchid,
            DarkGray,
            MintCream
        }



string colour = enmABC.().ToString();
                double z = AverageEntryPrice(TradeType.Sell);
                Chart.DrawHorizontalLine("spoint", z, Color.FromName(colour), 2, LineStyle.Solid);

 


@patzoot@gmail.com