On my indicator, I would like to use default values like this...(c sharp 6.0 style)
[NinjaScriptProperty]
[Display(Name = "Alerts", Order = 1, GroupName = "Alert Settings")]
public bool SendPushAlerts {get; set;} = true;
The reason is because I want to use my indicator in a strategy. However,my indicator uses a few dozen inputs, and I rather just instantiate the indicator in my strategy and have it use its already defined default values...
The above doesnt work. Is there a way to instantiate an indicator in a strategy where default values defined in the indicator are used, rather than having to explicitly set them in the instantiation?
Comment