Add Color Picker Parameter Type
Created at 23 Apr 2020, 11:08
Add Color Picker Parameter Type
23 Apr 2020, 11:08
Hello,
Please add the support for color type parameters on indicators and cBots, so will be able to have a parameter like this:
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
namespace cAlgo
{
[Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class Blank : Indicator
{
[Parameter("Text Color", DefaultValue = "#FF5733")]
public Color TextColor { get; set; }
protected override void Initialize()
{
}
public override void Calculate(int index)
{
}
}
}
We should be able to use HEX color values for default value and the user will see a default cTrader color picker on "Modify Indicator" windows with the default value as selected color.
This will make our life much easier!
cTrader
@afhacker