using System; using System.Collections.Generic; using System.Linq; using System.Text; //---------------------------------------------------------------- //Module Name: $safeprojectname$ //Purpose: //CopyRight: Muchinfo //History: //---------------------------------------------------------------- //DateTime 2017/2/3 14:32:40 //Author //Description Create //---------------------------------------------------------------- namespace Muchinfo.MTPClient.Data.Chart { /// /// 自定义消息枚举 /// public enum UserDefineWindowsMessage : int { /// /// /// None = 0, /// /// 消息开始 /// Start = 1024, /// /// 样式 /// ChangeStyleCycle = Start + 100, /// /// 画线 /// DrawLine = Start + 101, /// /// 周期 /// ChangeViewCycle = Start + 102, /// /// 复权 /// ChangeViewFQ = Start + 105, /// /// 控制显示区域 /// Set_ShowRect = Start + 106, /// /// 是否绘制 /// SetEnableDraw = Start + 107, /// /// 删除指标 /// SetDeleteIndex = Start + 108, /// /// 添加指标 /// SetAddIndex = Start + 109, /// /// 清空所有指标 /// SetRemoveAllIndex = Start + 110, /// /// 获取当前指标个数 /// GetCurIndexCount = Start + 111, /// /// 是否允许处理鼠标事件 参数与LButton和RButton 一起使用 /// SetMouseEvent = Start + 112, /// /// 用于设定显示的交易日 /// SetTradeDate = Start + 113, /// /// 用于设置昨收 /// SetPreclose = Start + 114, /// /// 用于调用右键菜单功能 /// SetMouseButtonRightUp = Start + 115, /// /// 自定义消息,用于叠加商品 /// SetAddWare = Start + 116, /// /// 刻度 /// SetSacle = Start + 117, /// /// 取消叠加 /// DelAppendWare = Start + 118, /// /// 设定量的单位 /// SetVolumeUnit = Start + 119, /// /// 设定开盘价 /// SetOpenPrice = Start + 122, /// /// 设置叠加商品的昨收价 /// SetAppendWareClosePrice = Start + 123, /// /// 指标信息 /// FormulaInfo = Start + 124, /// /// 显示指标公式管理器 /// ShowFormula = Start + 125, /// /// 用于设定交易时间延时间隔 /// TRADEHOURDELAY = Start + 126, /// /// 用于设定开盘时间 /// OPENPRICETIME = Start + 127, /// /// 用于设定是否显示分时图的均线 /// SHOWMATIK = Start + 128, /// /// 设置量的单位 /// TIKVOLUMEUNIT = Start + 129, /// /// 均线计算方式 /// MeanType = Start + 130, /// /// 图表平移 /// ViewPY = Start + 132, /// /// 画线开关 /// DrawIsdisplay = Start + 133, /// /// 设置行情跳动 /// SetAutoScroll = Start + 134, /// /// 清除当前商品的所有投资日志 /// ClearInvestLog = Start + 136, /// /// 设置坐标轴显示 /// SetAxisShow = Start + 137, /// /// 通过句柄删除该图的日志显示 /// ClearInvestLogByViewHandler = Start + 138, /// /// 销毁图标 /// ChartDispose = Start + 139, /// /// 关闭图表统计窗口 /// CloseStatFrom = Start + 140, /// /// 创建一个定时器,用于在规定时间后进行历史数据的请求 /// CreateTime = Start + 141, /// /// 清空图表缓存 /// ClearCache = Start + 151, /// /// 用于订单信息 /// OpenOrder = Start + 200, /// /// 用于信息地雷 /// OpenMine = Start + 201, /// /// 用于调用画线工具 /// OpenDrawTool = Start + 202, /// /// 用于调用自定义板块 /// AddToCustomBoard = Start + 203, /// /// 用于调用隐藏图表 /// OpenChartHide = Start + 204, /// /// 用于调用鼠标移出事件 /// OpenMouseOut = Start + 205, /// /// 用于调用鼠标移入事件 /// OpenMouseIn = Start + 206, /// /// 用于变化周期 /// OpenCycle = Start + 207, /// /// 历史数据变化 /// OpenReceiveHistory = Start + 208, /// /// 请求信息地雷 /// OpenRequestMine = Start + 209, /// /// 用于双击K线节点 /// OpenKLineNode = Start + 210, /// /// 用于删除自定义板块 /// DeleteFromCustomBoard = Start + 211, /// /// 设置预警条件 /// OpenAlarmCondition = Start + 212, /// /// 用于触发鼠标事件 /// OpenMouseEvent = Start + 213, /// /// 用于触发点击工具栏 /// OpenClickExportData = Start + 214, /// /// 位置商品信息 /// UNKNOWN_WARE_INFO = Start + 215, /// /// 图表放大 /// View_ZOOM_IN = Start + 216, /// /// 图表缩小 /// View_ZOOM_OUT = Start + 217, } public enum ChartCycleType { /// /// 未定义 /// Unknow = -1, /// /// 即时线 /// None = 0, /// /// 1分钟线 /// OneMinute = 1, /// /// 分时图 /// MinuteTik = 2, /// /// 3分钟线 /// ThreeMinute = 3, /// /// 5分钟线 /// FiveMinute = 5, /// /// 10分钟线 /// TenMinute = 10, /// /// 15分钟线 /// FifteenMinute = 15, /// /// 30分钟线 /// ThirtyMinute = 30, /// /// 60分钟线(1小时线) /// Hour = 60, /// /// 90分钟线(1个半小时线) /// OneHalfHour = 90, /// /// 120分钟线(两小时线) /// TowHour = 120, /// /// 180分钟线(3小时线) /// ThreeHour = 180, /// /// 240分钟线(4小时线) /// FourHour = 240, /// /// 日线 /// Day = 1120, /// /// 周线 /// Week = 1140, /// /// 月线 /// Month = 1150, /// /// 季度线 /// Quarter = 1160, /// /// 年线 /// Year = 1170 } //分时图均线的计算模式 public enum MA_TIK_CALC_MODE { MA_TIK_CALC_MODE_TURNOVER_VOLUME = 1, //按成交金额和成交量计算 MA_TIK_CALC_MODE_PRECLOSE, //按昨收计算 }; }