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); }
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)); }
public Indicators.NetChangeDisplay NetChangeDisplay(ISeries <double> input, Cbi.PerformanceUnit unit, NetChangePosition location) { return(indicator.NetChangeDisplay(input, unit, location)); }
public NetChangeDisplay NetChangeDisplay(Cbi.PerformanceUnit unit, NetChangePosition location) { return(NetChangeDisplay(Input, unit, location)); }