UserDefineWindowsMessage.cs 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. //----------------------------------------------------------------
  6. //Module Name: $safeprojectname$
  7. //Purpose:
  8. //CopyRight: Muchinfo
  9. //History:
  10. //----------------------------------------------------------------
  11. //DateTime 2017/2/3 14:32:40
  12. //Author
  13. //Description Create
  14. //----------------------------------------------------------------
  15. namespace Muchinfo.MTPClient.Data.Chart
  16. { /// <summary>
  17. /// 自定义消息枚举
  18. /// </summary>
  19. public enum UserDefineWindowsMessage : int
  20. {
  21. /// <summary>
  22. ///
  23. /// </summary>
  24. None = 0,
  25. /// <summary>
  26. /// 消息开始
  27. /// </summary>
  28. Start = 1024,
  29. /// <summary>
  30. /// 样式
  31. /// </summary>
  32. ChangeStyleCycle = Start + 100,
  33. /// <summary>
  34. /// 画线
  35. /// </summary>
  36. DrawLine = Start + 101,
  37. /// <summary>
  38. /// 周期
  39. /// </summary>
  40. ChangeViewCycle = Start + 102,
  41. /// <summary>
  42. /// 复权
  43. /// </summary>
  44. ChangeViewFQ = Start + 105,
  45. /// <summary>
  46. /// 控制显示区域
  47. /// </summary>
  48. Set_ShowRect = Start + 106,
  49. /// <summary>
  50. /// 是否绘制
  51. /// </summary>
  52. SetEnableDraw = Start + 107,
  53. /// <summary>
  54. /// 删除指标
  55. /// </summary>
  56. SetDeleteIndex = Start + 108,
  57. /// <summary>
  58. /// 添加指标
  59. /// </summary>
  60. SetAddIndex = Start + 109,
  61. /// <summary>
  62. /// 清空所有指标
  63. /// </summary>
  64. SetRemoveAllIndex = Start + 110,
  65. /// <summary>
  66. /// 获取当前指标个数
  67. /// </summary>
  68. GetCurIndexCount = Start + 111,
  69. /// <summary>
  70. /// 是否允许处理鼠标事件 参数与LButton和RButton 一起使用
  71. /// </summary>
  72. SetMouseEvent = Start + 112,
  73. /// <summary>
  74. /// 用于设定显示的交易日
  75. /// </summary>
  76. SetTradeDate = Start + 113,
  77. /// <summary>
  78. /// 用于设置昨收
  79. /// </summary>
  80. SetPreclose = Start + 114,
  81. /// <summary>
  82. /// 用于调用右键菜单功能
  83. /// </summary>
  84. SetMouseButtonRightUp = Start + 115,
  85. /// <summary>
  86. /// 自定义消息,用于叠加商品
  87. /// </summary>
  88. SetAddWare = Start + 116,
  89. /// <summary>
  90. /// 刻度
  91. /// </summary>
  92. SetSacle = Start + 117,
  93. /// <summary>
  94. /// 取消叠加
  95. /// </summary>
  96. DelAppendWare = Start + 118,
  97. /// <summary>
  98. /// 设定量的单位
  99. /// </summary>
  100. SetVolumeUnit = Start + 119,
  101. /// <summary>
  102. /// 设定开盘价
  103. /// </summary>
  104. SetOpenPrice = Start + 122,
  105. /// <summary>
  106. /// 设置叠加商品的昨收价
  107. /// </summary>
  108. SetAppendWareClosePrice = Start + 123,
  109. /// <summary>
  110. /// 指标信息
  111. /// </summary>
  112. FormulaInfo = Start + 124,
  113. /// <summary>
  114. /// 显示指标公式管理器
  115. /// </summary>
  116. ShowFormula = Start + 125,
  117. /// <summary>
  118. /// 用于设定交易时间延时间隔
  119. /// </summary>
  120. TRADEHOURDELAY = Start + 126,
  121. /// <summary>
  122. /// 用于设定开盘时间
  123. /// </summary>
  124. OPENPRICETIME = Start + 127,
  125. /// <summary>
  126. /// 用于设定是否显示分时图的均线
  127. /// </summary>
  128. SHOWMATIK = Start + 128,
  129. /// <summary>
  130. /// 设置量的单位
  131. /// </summary>
  132. TIKVOLUMEUNIT = Start + 129,
  133. /// <summary>
  134. /// 均线计算方式
  135. /// </summary>
  136. MeanType = Start + 130,
  137. /// <summary>
  138. /// 图表平移
  139. /// </summary>
  140. ViewPY = Start + 132,
  141. /// <summary>
  142. /// 画线开关
  143. /// </summary>
  144. DrawIsdisplay = Start + 133,
  145. /// <summary>
  146. /// 设置行情跳动
  147. /// </summary>
  148. SetAutoScroll = Start + 134,
  149. /// <summary>
  150. /// 清除当前商品的所有投资日志
  151. /// </summary>
  152. ClearInvestLog = Start + 136,
  153. /// <summary>
  154. /// 设置坐标轴显示
  155. /// </summary>
  156. SetAxisShow = Start + 137,
  157. /// <summary>
  158. /// 通过句柄删除该图的日志显示
  159. /// </summary>
  160. ClearInvestLogByViewHandler = Start + 138,
  161. /// <summary>
  162. /// 销毁图标
  163. /// </summary>
  164. ChartDispose = Start + 139,
  165. /// <summary>
  166. /// 关闭图表统计窗口
  167. /// </summary>
  168. CloseStatFrom = Start + 140,
  169. /// <summary>
  170. /// 创建一个定时器,用于在规定时间后进行历史数据的请求
  171. /// </summary>
  172. CreateTime = Start + 141,
  173. /// <summary>
  174. /// 清空图表缓存
  175. /// </summary>
  176. ClearCache = Start + 151,
  177. /// <summary>
  178. /// 用于订单信息
  179. /// </summary>
  180. OpenOrder = Start + 200,
  181. /// <summary>
  182. /// 用于信息地雷
  183. /// </summary>
  184. OpenMine = Start + 201,
  185. /// <summary>
  186. /// 用于调用画线工具
  187. /// </summary>
  188. OpenDrawTool = Start + 202,
  189. /// <summary>
  190. /// 用于调用自定义板块
  191. /// </summary>
  192. AddToCustomBoard = Start + 203,
  193. /// <summary>
  194. /// 用于调用隐藏图表
  195. /// </summary>
  196. OpenChartHide = Start + 204,
  197. /// <summary>
  198. /// 用于调用鼠标移出事件
  199. /// </summary>
  200. OpenMouseOut = Start + 205,
  201. /// <summary>
  202. /// 用于调用鼠标移入事件
  203. /// </summary>
  204. OpenMouseIn = Start + 206,
  205. /// <summary>
  206. /// 用于变化周期
  207. /// </summary>
  208. OpenCycle = Start + 207,
  209. /// <summary>
  210. /// 历史数据变化
  211. /// </summary>
  212. OpenReceiveHistory = Start + 208,
  213. /// <summary>
  214. /// 请求信息地雷
  215. /// </summary>
  216. OpenRequestMine = Start + 209,
  217. /// <summary>
  218. /// 用于双击K线节点
  219. /// </summary>
  220. OpenKLineNode = Start + 210,
  221. /// <summary>
  222. /// 用于删除自定义板块
  223. /// </summary>
  224. DeleteFromCustomBoard = Start + 211,
  225. /// <summary>
  226. /// 设置预警条件
  227. /// </summary>
  228. OpenAlarmCondition = Start + 212,
  229. /// <summary>
  230. /// 用于触发鼠标事件
  231. /// </summary>
  232. OpenMouseEvent = Start + 213,
  233. /// <summary>
  234. /// 用于触发点击工具栏
  235. /// </summary>
  236. OpenClickExportData = Start + 214,
  237. /// <summary>
  238. /// 位置商品信息
  239. /// </summary>
  240. UNKNOWN_WARE_INFO = Start + 215,
  241. /// <summary>
  242. /// 图表放大
  243. /// </summary>
  244. View_ZOOM_IN = Start + 216,
  245. /// <summary>
  246. /// 图表缩小
  247. /// </summary>
  248. View_ZOOM_OUT = Start + 217,
  249. }
  250. public enum ChartCycleType
  251. {
  252. /// <summary>
  253. /// 未定义
  254. /// </summary>
  255. Unknow = -1,
  256. /// <summary>
  257. /// 即时线
  258. /// </summary>
  259. None = 0,
  260. /// <summary>
  261. /// 1分钟线
  262. /// </summary>
  263. OneMinute = 1,
  264. /// <summary>
  265. /// 分时图
  266. /// </summary>
  267. MinuteTik = 2,
  268. /// <summary>
  269. /// 3分钟线
  270. /// </summary>
  271. ThreeMinute = 3,
  272. /// <summary>
  273. /// 5分钟线
  274. /// </summary>
  275. FiveMinute = 5,
  276. /// <summary>
  277. /// 10分钟线
  278. /// </summary>
  279. TenMinute = 10,
  280. /// <summary>
  281. /// 15分钟线
  282. /// </summary>
  283. FifteenMinute = 15,
  284. /// <summary>
  285. /// 30分钟线
  286. /// </summary>
  287. ThirtyMinute = 30,
  288. /// <summary>
  289. /// 60分钟线(1小时线)
  290. /// </summary>
  291. Hour = 60,
  292. /// <summary>
  293. /// 90分钟线(1个半小时线)
  294. /// </summary>
  295. OneHalfHour = 90,
  296. /// <summary>
  297. /// 120分钟线(两小时线)
  298. /// </summary>
  299. TowHour = 120,
  300. /// <summary>
  301. /// 180分钟线(3小时线)
  302. /// </summary>
  303. ThreeHour = 180,
  304. /// <summary>
  305. /// 240分钟线(4小时线)
  306. /// </summary>
  307. FourHour = 240,
  308. /// <summary>
  309. /// 日线
  310. /// </summary>
  311. Day = 1120,
  312. /// <summary>
  313. /// 周线
  314. /// </summary>
  315. Week = 1140,
  316. /// <summary>
  317. /// 月线
  318. /// </summary>
  319. Month = 1150,
  320. /// <summary>
  321. /// 季度线
  322. /// </summary>
  323. Quarter = 1160,
  324. /// <summary>
  325. /// 年线
  326. /// </summary>
  327. Year = 1170
  328. }
  329. //分时图均线的计算模式
  330. public enum MA_TIK_CALC_MODE
  331. {
  332. MA_TIK_CALC_MODE_TURNOVER_VOLUME = 1, //按成交金额和成交量计算
  333. MA_TIK_CALC_MODE_PRECLOSE, //按昨收计算
  334. };
  335. }