I want to be able to set bar color from an input parameter. I have tried -
variables
private Color buyBarColor = Color.Blue;
Properties
[Description("Color for Buy Bars")]
[GridCategory("Parameters")]
public Color BuyBarColor
{
get { return buyBarColor; }
set { buyBarColor = value; }
}
I get a nice blue colored box in the indicator parameters section, and the
bars are colored blue by BarColor = BuyBarColor;. Any color can be chosen at this point but when Ninja is closed and re-opened, the blue setting (or whatever color was set) has been lost.
Is there any solution to this please?
Dave
Comment