var margin = ((max - min) * 0.7);
The "0.7" is something I would like to be able to change so as to more easily find out whether 0.4 or 0.5 or whatever is best rather than continuing to have to go into the code and change it there.
How can I make that user definable in the indicator menu?
I already added:
#region Variables
private double moderate = 0.1;
#endregion
and
[Description("Percentage of upper and lower margin.")]
[Category(" Moderate")]
public double Moderate
{
get { return moderate; }
set { moderate = Math.Max(0, value); }
}
But how do I have to change this line:
var margin = ((max - min) * 0.7);
This:
var margin = ((max - min) * "moderate");
does not work.
sandman
Comment