|
@@ -1,5 +1,3 @@
|
|
|
-import { EnumType } from './index'
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 图表周期类型
|
|
* 图表周期类型
|
|
|
*/
|
|
*/
|
|
@@ -24,20 +22,32 @@ export enum ChartSeriesType {
|
|
|
CCI,
|
|
CCI,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export const chartCycleTypeList: EnumType[] = [
|
|
|
|
|
- { label: '分时', value: ChartCycleType.time },
|
|
|
|
|
- { label: '1分钟', value: ChartCycleType.minutes },
|
|
|
|
|
- { label: '5分钟', value: ChartCycleType.minutes5 },
|
|
|
|
|
- { label: '30分钟', value: ChartCycleType.minutes30 },
|
|
|
|
|
- { label: '60分钟', value: ChartCycleType.minutes60 },
|
|
|
|
|
- { label: '2小时', value: ChartCycleType.hours2 },
|
|
|
|
|
- { label: '4小时', value: ChartCycleType.Hours4 },
|
|
|
|
|
- { label: '日线', value: ChartCycleType.days },
|
|
|
|
|
-]
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * 获取图表周期类型列表
|
|
|
|
|
+ * @returns
|
|
|
|
|
+ */
|
|
|
|
|
+export function getChartCycleTypeList() {
|
|
|
|
|
+ return [
|
|
|
|
|
+ { label: '分时', value: ChartCycleType.time },
|
|
|
|
|
+ { label: '1分钟', value: ChartCycleType.minutes },
|
|
|
|
|
+ { label: '5分钟', value: ChartCycleType.minutes5 },
|
|
|
|
|
+ { label: '30分钟', value: ChartCycleType.minutes30 },
|
|
|
|
|
+ { label: '60分钟', value: ChartCycleType.minutes60 },
|
|
|
|
|
+ { label: '2小时', value: ChartCycleType.hours2 },
|
|
|
|
|
+ { label: '4小时', value: ChartCycleType.Hours4 },
|
|
|
|
|
+ { label: '日线', value: ChartCycleType.days },
|
|
|
|
|
+ ]
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
-export const chartSeriesTypeList: EnumType[] = [
|
|
|
|
|
- { label: 'MACD', value: ChartSeriesType.MACD },
|
|
|
|
|
- { label: 'VOL', value: ChartSeriesType.VOL },
|
|
|
|
|
- { label: 'KDJ', value: ChartSeriesType.KDJ },
|
|
|
|
|
- { label: 'CCI', value: ChartSeriesType.CCI },
|
|
|
|
|
-]
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * 获取图表指标类型列表
|
|
|
|
|
+ * @returns
|
|
|
|
|
+ */
|
|
|
|
|
+export function getChartSeriesTypeList() {
|
|
|
|
|
+ return [
|
|
|
|
|
+ { label: 'MACD', value: ChartSeriesType.MACD },
|
|
|
|
|
+ { label: 'VOL', value: ChartSeriesType.VOL },
|
|
|
|
|
+ { label: 'KDJ', value: ChartSeriesType.KDJ },
|
|
|
|
|
+ { label: 'CCI', value: ChartSeriesType.CCI },
|
|
|
|
|
+ ]
|
|
|
|
|
+}
|