public static OvershootIndicatorDataEntity Create(IOvershootIndicatorData src) { return(new OvershootIndicatorDataEntity { Delta = src.Delta, Overshot = src.Overshot }); }
public static OvershootThresholdContract Create(IOvershootIndicatorData itm) { return(new OvershootThresholdContract { Percent = Math.Abs(itm.Overshot), Delta = itm.Delta, Direction = itm.Overshot < 0 ? "down" : "up" }); }