16 using Newtonsoft.Json;
17 using Newtonsoft.Json.Linq;
36 public decimal?
Current {
get;
private set; }
46 public Target(
string target,
Extremum extremum, decimal? targetValue): base(target, targetValue)
71 if (
string.IsNullOrEmpty(jsonBacktestResult))
73 throw new ArgumentNullException(nameof(jsonBacktestResult), $
"Target.MoveAhead(): {Messages.OptimizerObjectivesCommon.NullOrEmptyBacktestResult}");
76 var token = JObject.Parse(jsonBacktestResult).SelectToken(
Target);
81 var computedValue = token.Value<
string>().ToNormalizedDecimal();
99 Reached?.Invoke(
this, EventArgs.Empty);