예제 #1
0
        private TextPosition GetTextPosition(NetChangePosition ncp)
        {
            switch (ncp)
            {
            case NetChangePosition.BottomLeft:
                return(TextPosition.BottomLeft);

            case NetChangePosition.BottomRight:
                return(TextPosition.BottomRight);

            case NetChangePosition.TopLeft:
                return(TextPosition.TopLeft);

            case NetChangePosition.TopRight:
                return(TextPosition.TopRight);
            }

            return(TextPosition.TopRight);
        }
예제 #2
0
 public NetChangeDisplay NetChangeDisplay(ISeries <double> input, Cbi.PerformanceUnit unit, NetChangePosition location)
 {
     if (cacheNetChangeDisplay != null)
     {
         for (int idx = 0; idx < cacheNetChangeDisplay.Length; idx++)
         {
             if (cacheNetChangeDisplay[idx] != null && cacheNetChangeDisplay[idx].Unit == unit && cacheNetChangeDisplay[idx].Location == location && cacheNetChangeDisplay[idx].EqualsInput(input))
             {
                 return(cacheNetChangeDisplay[idx]);
             }
         }
     }
     return(CacheIndicator <NetChangeDisplay>(new NetChangeDisplay()
     {
         Unit = unit, Location = location
     }, input, ref cacheNetChangeDisplay));
 }
예제 #3
0
 public Indicators.NetChangeDisplay NetChangeDisplay(ISeries <double> input, Cbi.PerformanceUnit unit, NetChangePosition location)
 {
     return(indicator.NetChangeDisplay(input, unit, location));
 }
예제 #4
0
 public NetChangeDisplay NetChangeDisplay(Cbi.PerformanceUnit unit, NetChangePosition location)
 {
     return(NetChangeDisplay(Input, unit, location));
 }