I have set in my Properties a few values that are supposed to take a percentage and multiply them by the candle size and that will then determine entry, stop and profit target. They are to be user defined values.
I am running into an issue with it.
When I do a backtest and change the values, only one of the 3 values are changing.
Here is the properties code, and then I will further specify my issue:
[Description("Entry%")]
[GridCategory("Parameters")]
public double PercToEnter
{
get { return EntryPerc; }
set { EntryPerc = Math.Max(0.010, value);}
}
[Description("Target%")]
[GridCategory("Parameters")]
public double PercToTarget
{
get { return TargetPerc; }
set { TargetPerc = Math.Max(0.010, value);}
}
[Description("Stop%")]
[GridCategory("Parameters")]
public double PercToStop
{
get { return StopPerc; }
set { TargetPerc = Math.Max(0.010, value);}
}
Are you able to see what the error is in my code?
Thank you very much!

Comment