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