示例#1
0
        private LabeledRay DrayLabeledRay(String label, JBTPOProfile profile, double price, Brush color)
        {
            LabeledRay ray = DrawLL.LabeledRay(this, profile.id + "_" + label, profile.sessionStart, price, Time[0], price, color);

            ray.DisplayText     = (profile.tradingHours == ETH ? "ON " : "") + label + " " + profile.dateString;
            ray.Font            = textFont;
            ray.AppendPriceTime = false;
            ray.IsLocked        = false;
            ray.RoundPrice      = true;

            return(ray);
        }
示例#2
0
        private LabeledRay DrawSettlementRay(String label, DateTime settleTime, double price, DateTime to, Brush color)
        {
            RemoveDrawObject(label);

            LabeledRay ray = DrawLL.LabeledRay(this, label, settleTime, price, to, price, color, LineStyle, LineWidth);

            ray.DisplayText     = label;
            ray.Font            = LabelFont;
            ray.AppendPriceTime = false;
            ray.IsLocked        = false;
            ray.RoundPrice      = true;

            return(ray);
        }
示例#3
0
        private LabeledRay DrawLabeledRay(String label, JBTPOProfile profile, double price, Brush color)
        {
            RemoveDrawObject(profile.id + "_" + label);

            LabeledRay ray = DrawLL.LabeledRay(this, profile.id + "_" + label, profile.sessionStart, price, Time[0], price, color, LineStyle, LineWidth);

            ray.DisplayText     = label + " " + profile.dateString;
            ray.Font            = LabelFont;
            ray.AppendPriceTime = false;
            ray.IsLocked        = false;
            ray.RoundPrice      = true;

            return(ray);
        }