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